{"thread":{"id":"40472","subject":"can't install on OS X","startedAt":"2015-10-02T06:50:30Z","lastAt":"2015-10-11T16:43:09Z","messageCount":6,"participants":["Spencer Graves","Mike Rappazzo","Stephen Bash","krist333"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"270996","messageId":"560E2936.6020101@prodsyse.com","threadId":"40472","inReplyTo":null,"subject":"can't install on OS X","fromName":"Spencer Graves","fromEmail":"spencer.graves@prodsyse.com","sentAt":"2015-10-02T06:50:30Z","receivedAt":"2015-10-02T06:50:30Z","isPatch":false,"sender":{"key":"spencer.graves@prodsyse.com","avatar":null},"body":"What's the procedure for installing Git under OS X 10.11?\n\n\nI downloaded \"git-2.5.3-intel-universal-mavericks.dmg\" per \ninstructions.  When I tried to install it, I first had trouble because \nit wasn't from the Mac App Store nor an \"identified developer\".  I \nultimately found \"System Preferences\" > \"Security & Privacy\" > \"Click \nthe lock to make changes\" > entered password > AND clicked to \"Allow \napps downloaded from: Anywhere\".  Then the install appeared to run and  \nproclaimed, \"The installation was successful.\"  However, git is not \nlisted under \"Applications\", and RStudio says, \"Git was not detected on \nthe system path.\"\n\n\n\"README.txt\" says I need \"sudo mv /usr/bin/git /usr/bin/git-system\".  I \ntried that and got, \"mv: rename /usr/bin/git to /usr/bin/git-system: \nOperation not permitted\" (after entering my password).  [My directory \nnow includes \"/usr/local/git\", and \"/usr/bin\" includes git, \ngit-cvsserver, git-receive-pack, git-shell, git-upload-archive, and \ngit-upload-pack.]\n\n\nSuggestions?  Thanks, Spencer Graves\n"},{"id":"271006","messageId":"CANoM8SWptQZPOJVwX48h6D8HEV1jo=gYzJcvsp2nc2BnX4TrKg@mail.gmail.com","threadId":"40472","inReplyTo":"560E2936.6020101@prodsyse.com","subject":"Re: can't install on OS X","fromName":"Mike Rappazzo","fromEmail":"rappazzo@gmail.com","sentAt":"2015-10-02T12:02:45Z","receivedAt":"2015-10-02T12:02:45Z","isPatch":false,"sender":{"key":"rappazzo@gmail.com","avatar":"https://avatars.githubusercontent.com/u/525287?v=4"},"body":"Looks like you have it installed properly.  The typical usage is from\nthe terminal, (try `git --version` to be sure).  There is also a\npretty great UI packaged with git called git-gui.  You should be able\nto make a link or an alias to it in your Applications folder (or\ninvoke it from the terminal `git gui`).\n\nOn Fri, Oct 2, 2015 at 2:50 AM, Spencer Graves\n<spencer.graves@prodsyse.com> wrote:\n> What's the procedure for installing Git under OS X 10.11?\n>\n>\n> I downloaded \"git-2.5.3-intel-universal-mavericks.dmg\" per instructions.\n> When I tried to install it, I first had trouble because it wasn't from the\n> Mac App Store nor an \"identified developer\".  I ultimately found \"System\n> Preferences\" > \"Security & Privacy\" > \"Click the lock to make changes\" >\n> entered password > AND clicked to \"Allow apps downloaded from: Anywhere\".\n> Then the install appeared to run and  proclaimed, \"The installation was\n> successful.\"  However, git is not listed under \"Applications\", and RStudio\n> says, \"Git was not detected on the system path.\"\n>\n>\n> \"README.txt\" says I need \"sudo mv /usr/bin/git /usr/bin/git-system\".  I\n> tried that and got, \"mv: rename /usr/bin/git to /usr/bin/git-system:\n> Operation not permitted\" (after entering my password).  [My directory now\n> includes \"/usr/local/git\", and \"/usr/bin\" includes git, git-cvsserver,\n> git-receive-pack, git-shell, git-upload-archive, and git-upload-pack.]\n>\n>\n> Suggestions?  Thanks, Spencer Graves\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"271007","messageId":"560E822F.3010802@prodsyse.com","threadId":"40472","inReplyTo":"CANoM8SWptQZPOJVwX48h6D8HEV1jo=gYzJcvsp2nc2BnX4TrKg@mail.gmail.com","subject":"Re: can't install on OS X","fromName":"Spencer Graves","fromEmail":"spencer.graves@prodsyse.com","sentAt":"2015-10-02T13:10:07Z","receivedAt":"2015-10-02T13:10:07Z","isPatch":false,"sender":{"key":"spencer.graves@prodsyse.com","avatar":null},"body":"\n\nOn 10/2/2015 7:02 AM, Mike Rappazzo wrote:\n> Looks like you have it installed properly.  The typical usage is from\n> the terminal, (try `git --version` to be sure).\n\n\na-MacBook-Pro:~ sbgraves$ git --version\nxcrun: error: invalid active developer path \n(/Library/Developer/CommandLineTools), missing xcrun at: \n/Library/Developer/CommandLineTools/usr/bin/xcrun\n\n\n???\n\n> There is also a\n> pretty great UI packaged with git called git-gui.  You should be able\n> to make a link or an alias to it in your Applications folder (or\n> invoke it from the terminal `git gui`).\n\n\n       How?\n\n\n       Thanks very much for the reply.\n\n\n       Spencer Graves\n>\n> On Fri, Oct 2, 2015 at 2:50 AM, Spencer Graves\n> <spencer.graves@prodsyse.com> wrote:\n>> What's the procedure for installing Git under OS X 10.11?\n>>\n>>\n>> I downloaded \"git-2.5.3-intel-universal-mavericks.dmg\" per instructions.\n>> When I tried to install it, I first had trouble because it wasn't from the\n>> Mac App Store nor an \"identified developer\".  I ultimately found \"System\n>> Preferences\" > \"Security & Privacy\" > \"Click the lock to make changes\" >\n>> entered password > AND clicked to \"Allow apps downloaded from: Anywhere\".\n>> Then the install appeared to run and  proclaimed, \"The installation was\n>> successful.\"  However, git is not listed under \"Applications\", and RStudio\n>> says, \"Git was not detected on the system path.\"\n>>\n>>\n>> \"README.txt\" says I need \"sudo mv /usr/bin/git /usr/bin/git-system\".  I\n>> tried that and got, \"mv: rename /usr/bin/git to /usr/bin/git-system:\n>> Operation not permitted\" (after entering my password).  [My directory now\n>> includes \"/usr/local/git\", and \"/usr/bin\" includes git, git-cvsserver,\n>> git-receive-pack, git-shell, git-upload-archive, and git-upload-pack.]\n>>\n>>\n>> Suggestions?  Thanks, Spencer Graves\n>> --\n>> To unsubscribe from this list: send the line \"unsubscribe git\" in\n>> the body of a message to majordomo@vger.kernel.org\n>> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"271009","messageId":"136388305.2086780.1443793308932.JavaMail.zimbra@genarts.com","threadId":"40472","inReplyTo":"2000572217.2086743.1443793295009.JavaMail.zimbra@genarts.com","subject":"Re: can't install on OS X","fromName":"Stephen Bash","fromEmail":"bash@genarts.com","sentAt":"2015-10-02T13:41:49Z","receivedAt":"2015-10-02T13:41:49Z","isPatch":false,"sender":{"key":"bash@genarts.com","avatar":null},"body":"----- Original Message -----\n> From: \"Spencer Graves\" <spencer.graves@prodsyse.com>\n> Sent: Friday, October 2, 2015 2:50:30 AM\n> Subject: can't install on OS X\n>\n> I downloaded \"git-2.5.3-intel-universal-mavericks.dmg\" per\n> instructions.  When I tried to install it, I first had trouble because\n> it wasn't from the Mac App Store nor an \"identified developer\".\n\nYou can also right click on the installer and select \"Open\" for a very similar dialog, but one that gives you the opportunity to run the installer anyway.\n\n> \"README.txt\" says I need \"sudo mv /usr/bin/git /usr/bin/git-system\".  I\n> tried that and got, \"mv: rename /usr/bin/git to /usr/bin/git-system:\n> Operation not permitted\" (after entering my password).  [My directory\n> now includes \"/usr/local/git\", and \"/usr/bin\" includes git,\n> git-cvsserver, git-receive-pack, git-shell, git-upload-archive, and\n> git-upload-pack.]\n> \n> Suggestions?\n\nSounds like you're running afoul of El Capitan's new System Integrity Protection (SIP) [1].  The git commands you're seeing there are probably Apple's thin wrappers that are mostly meant to provide instructions on installing XCode, but SIP is stopping you from modifying the /usr directory (ah, Apple's Infinite Wisdom).  There are discussions about working around SIP in the Apple forums [2] and Homebrew has some hints as well [3].\n\n[1] https://developer.apple.com/library/prerelease/mac/releasenotes/MacOSX/WhatsNewInOSX/Articles/MacOSX10_11.html\n[2] https://forums.developer.apple.com/thread/3981\n[3] https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md#if-usrlocal-does-not-exist\n\nHTH,\nStephen\n"},{"id":"271028","messageId":"560ED59F.7040604@prodsyse.com","threadId":"40472","inReplyTo":"136388305.2086780.1443793308932.JavaMail.zimbra@genarts.com","subject":"Re: can't install on OS X","fromName":"Spencer Graves","fromEmail":"spencer.graves@prodsyse.com","sentAt":"2015-10-02T19:06:07Z","receivedAt":"2015-10-02T19:06:07Z","isPatch":false,"sender":{"key":"spencer.graves@prodsyse.com","avatar":null},"body":"\n\nOn 10/2/2015 8:41 AM, Stephen Bash wrote:\n> ----- Original Message -----\n>> From: \"Spencer Graves\" <spencer.graves@prodsyse.com>\n>> Sent: Friday, October 2, 2015 2:50:30 AM\n>> Subject: can't install on OS X\n>>\n>> I downloaded \"git-2.5.3-intel-universal-mavericks.dmg\" per\n>> instructions.  When I tried to install it, I first had trouble because\n>> it wasn't from the Mac App Store nor an \"identified developer\".\n> You can also right click on the installer and select \"Open\" for a very similar dialog, but one that gives you the opportunity to run the installer anyway.\n>\n>> \"README.txt\" says I need \"sudo mv /usr/bin/git /usr/bin/git-system\".  I\n>> tried that and got, \"mv: rename /usr/bin/git to /usr/bin/git-system:\n>> Operation not permitted\" (after entering my password).  [My directory\n>> now includes \"/usr/local/git\", and \"/usr/bin\" includes git,\n>> git-cvsserver, git-receive-pack, git-shell, git-upload-archive, and\n>> git-upload-pack.]\n>>\n>> Suggestions?\n> Sounds like you're running afoul of El Capitan's new System Integrity Protection (SIP) [1].  The git commands you're seeing there are probably Apple's thin wrappers that are mostly meant to provide instructions on installing XCode, but SIP is stopping you from modifying the /usr directory (ah, Apple's Infinite Wisdom).  There are discussions about working around SIP in the Apple forums [2] and Homebrew has some hints as well [3].\n>\n> [1] https://developer.apple.com/library/prerelease/mac/releasenotes/MacOSX/WhatsNewInOSX/Articles/MacOSX10_11.html\n> [2] https://forums.developer.apple.com/thread/3981\n> [3] https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md#if-usrlocal-does-not-exist\n\n\nThanks.  That helped.  I will summarize here what seemed to work for me \n(skipping the wailing, gnashing of teeth, Apple tech support, etc.):\n\n\n[step 1] download and install \"git-2.5.3-intel-universal-mavericks.dmg\" \nas normal, ending with \"Install successful\".  Confirm that git is still \nnot properly installed. Shut down or restart.\n\n\n[step 2]  Boot into the Recovery partition by holding down <cmd>+R while \npower on and boot.\n\n\n[step 3] Utilities > Terminal\n\n\n[step 4] $ scrutil disable\n\n\n[step 5] Restart normally > Terminal > sudo mv /usr/git /usr/bin/git-system\n\n\n[step 6] Shut down and reboot into the Recovery partition as above.\n\n\n[step 7] Utilities > Terminal\n\n\n[step 8] $ scrutil enable\n\n\n[step 9] Restart normally ...\n\n\n*** Git now seems to be installed.  I'm still having trouble getting it \nto work properly with a private GitHub repository.  However, RStudio \nrecognizes git, and I've confirmed that /usr/bin includes a subdirectory \ngit-system and NOT simply git.  My problems now seem to be GitHub and \nRStudio issues.  Thanks again for your help.  I hope this summary might \nhelp others.  Spencer Graves\n\n> HTH,\n> Stephen\n>\n"},{"id":"271418","messageId":"1444581789465-7641041.post@n2.nabble.com","threadId":"40472","inReplyTo":"560ED59F.7040604@prodsyse.com","subject":"Re: can't install on OS X","fromName":"krist333","fromEmail":"krist.jin.apply@gmail.com","sentAt":"2015-10-11T16:43:09Z","receivedAt":"2015-10-11T16:43:09Z","isPatch":false,"sender":{"key":"krist.jin.apply@gmail.com","avatar":null},"body":"Thanks for the summary. I have been googling this for a while until I found\nthis and it worked for me.\n\nJust one note (possibly a minor typo): it should be *csrutil* disable/enable\nnot scrutil\n\nreference: \nhttps://developer.apple.com/library/prerelease/mac/documentation/Security/Conceptual/System_Integrity_Protection_Guide/ConfiguringSystemIntegrityProtection/ConfiguringSystemIntegrityProtection.html\n<https://developer.apple.com/library/prerelease/mac/documentation/Security/Conceptual/System_Integrity_Protection_Guide/ConfiguringSystemIntegrityProtection/ConfiguringSystemIntegrityProtection.html>  \n\n\n\n--\nView this message in context: http://git.661346.n2.nabble.com/can-t-install-on-OS-X-tp7640609p7641041.html\nSent from the git mailing list archive at Nabble.com.\n"}]}