* can't install on OS X
@ 2015-10-02 6:50 Spencer Graves
2015-10-02 12:02 ` Mike Rappazzo
[not found] ` <2000572217.2086743.1443793295009.JavaMail.zimbra@genarts.com>
0 siblings, 2 replies; 6+ messages in thread
From: Spencer Graves @ 2015-10-02 6:50 UTC (permalink / raw)
To: git
What's the procedure for installing Git under OS X 10.11?
I downloaded "git-2.5.3-intel-universal-mavericks.dmg" per
instructions. When I tried to install it, I first had trouble because
it wasn't from the Mac App Store nor an "identified developer". I
ultimately found "System Preferences" > "Security & Privacy" > "Click
the lock to make changes" > entered password > AND clicked to "Allow
apps downloaded from: Anywhere". Then the install appeared to run and
proclaimed, "The installation was successful." However, git is not
listed under "Applications", and RStudio says, "Git was not detected on
the system path."
"README.txt" says I need "sudo mv /usr/bin/git /usr/bin/git-system". I
tried that and got, "mv: rename /usr/bin/git to /usr/bin/git-system:
Operation not permitted" (after entering my password). [My directory
now includes "/usr/local/git", and "/usr/bin" includes git,
git-cvsserver, git-receive-pack, git-shell, git-upload-archive, and
git-upload-pack.]
Suggestions? Thanks, Spencer Graves
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: can't install on OS X
2015-10-02 6:50 can't install on OS X Spencer Graves
@ 2015-10-02 12:02 ` Mike Rappazzo
2015-10-02 13:10 ` Spencer Graves
[not found] ` <2000572217.2086743.1443793295009.JavaMail.zimbra@genarts.com>
1 sibling, 1 reply; 6+ messages in thread
From: Mike Rappazzo @ 2015-10-02 12:02 UTC (permalink / raw)
To: Spencer Graves; +Cc: Git List
Looks like you have it installed properly. The typical usage is from
the terminal, (try `git --version` to be sure). There is also a
pretty great UI packaged with git called git-gui. You should be able
to make a link or an alias to it in your Applications folder (or
invoke it from the terminal `git gui`).
On Fri, Oct 2, 2015 at 2:50 AM, Spencer Graves
<spencer.graves@prodsyse.com> wrote:
> What's the procedure for installing Git under OS X 10.11?
>
>
> I downloaded "git-2.5.3-intel-universal-mavericks.dmg" per instructions.
> When I tried to install it, I first had trouble because it wasn't from the
> Mac App Store nor an "identified developer". I ultimately found "System
> Preferences" > "Security & Privacy" > "Click the lock to make changes" >
> entered password > AND clicked to "Allow apps downloaded from: Anywhere".
> Then the install appeared to run and proclaimed, "The installation was
> successful." However, git is not listed under "Applications", and RStudio
> says, "Git was not detected on the system path."
>
>
> "README.txt" says I need "sudo mv /usr/bin/git /usr/bin/git-system". I
> tried that and got, "mv: rename /usr/bin/git to /usr/bin/git-system:
> Operation not permitted" (after entering my password). [My directory now
> includes "/usr/local/git", and "/usr/bin" includes git, git-cvsserver,
> git-receive-pack, git-shell, git-upload-archive, and git-upload-pack.]
>
>
> Suggestions? Thanks, Spencer Graves
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: can't install on OS X
2015-10-02 12:02 ` Mike Rappazzo
@ 2015-10-02 13:10 ` Spencer Graves
0 siblings, 0 replies; 6+ messages in thread
From: Spencer Graves @ 2015-10-02 13:10 UTC (permalink / raw)
To: Mike Rappazzo; +Cc: Git List
On 10/2/2015 7:02 AM, Mike Rappazzo wrote:
> Looks like you have it installed properly. The typical usage is from
> the terminal, (try `git --version` to be sure).
a-MacBook-Pro:~ sbgraves$ git --version
xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun
???
> There is also a
> pretty great UI packaged with git called git-gui. You should be able
> to make a link or an alias to it in your Applications folder (or
> invoke it from the terminal `git gui`).
How?
Thanks very much for the reply.
Spencer Graves
>
> On Fri, Oct 2, 2015 at 2:50 AM, Spencer Graves
> <spencer.graves@prodsyse.com> wrote:
>> What's the procedure for installing Git under OS X 10.11?
>>
>>
>> I downloaded "git-2.5.3-intel-universal-mavericks.dmg" per instructions.
>> When I tried to install it, I first had trouble because it wasn't from the
>> Mac App Store nor an "identified developer". I ultimately found "System
>> Preferences" > "Security & Privacy" > "Click the lock to make changes" >
>> entered password > AND clicked to "Allow apps downloaded from: Anywhere".
>> Then the install appeared to run and proclaimed, "The installation was
>> successful." However, git is not listed under "Applications", and RStudio
>> says, "Git was not detected on the system path."
>>
>>
>> "README.txt" says I need "sudo mv /usr/bin/git /usr/bin/git-system". I
>> tried that and got, "mv: rename /usr/bin/git to /usr/bin/git-system:
>> Operation not permitted" (after entering my password). [My directory now
>> includes "/usr/local/git", and "/usr/bin" includes git, git-cvsserver,
>> git-receive-pack, git-shell, git-upload-archive, and git-upload-pack.]
>>
>>
>> Suggestions? Thanks, Spencer Graves
>> --
>> To unsubscribe from this list: send the line "unsubscribe git" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: can't install on OS X
[not found] ` <2000572217.2086743.1443793295009.JavaMail.zimbra@genarts.com>
@ 2015-10-02 13:41 ` Stephen Bash
2015-10-02 19:06 ` Spencer Graves
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Bash @ 2015-10-02 13:41 UTC (permalink / raw)
To: Spencer Graves; +Cc: Git Mailing List
----- Original Message -----
> From: "Spencer Graves" <spencer.graves@prodsyse.com>
> Sent: Friday, October 2, 2015 2:50:30 AM
> Subject: can't install on OS X
>
> I downloaded "git-2.5.3-intel-universal-mavericks.dmg" per
> instructions. When I tried to install it, I first had trouble because
> it wasn't from the Mac App Store nor an "identified developer".
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.
> "README.txt" says I need "sudo mv /usr/bin/git /usr/bin/git-system". I
> tried that and got, "mv: rename /usr/bin/git to /usr/bin/git-system:
> Operation not permitted" (after entering my password). [My directory
> now includes "/usr/local/git", and "/usr/bin" includes git,
> git-cvsserver, git-receive-pack, git-shell, git-upload-archive, and
> git-upload-pack.]
>
> Suggestions?
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].
[1] https://developer.apple.com/library/prerelease/mac/releasenotes/MacOSX/WhatsNewInOSX/Articles/MacOSX10_11.html
[2] https://forums.developer.apple.com/thread/3981
[3] https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md#if-usrlocal-does-not-exist
HTH,
Stephen
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: can't install on OS X
2015-10-02 13:41 ` Stephen Bash
@ 2015-10-02 19:06 ` Spencer Graves
2015-10-11 16:43 ` krist333
0 siblings, 1 reply; 6+ messages in thread
From: Spencer Graves @ 2015-10-02 19:06 UTC (permalink / raw)
To: Stephen Bash; +Cc: Git Mailing List
On 10/2/2015 8:41 AM, Stephen Bash wrote:
> ----- Original Message -----
>> From: "Spencer Graves" <spencer.graves@prodsyse.com>
>> Sent: Friday, October 2, 2015 2:50:30 AM
>> Subject: can't install on OS X
>>
>> I downloaded "git-2.5.3-intel-universal-mavericks.dmg" per
>> instructions. When I tried to install it, I first had trouble because
>> it wasn't from the Mac App Store nor an "identified developer".
> 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.
>
>> "README.txt" says I need "sudo mv /usr/bin/git /usr/bin/git-system". I
>> tried that and got, "mv: rename /usr/bin/git to /usr/bin/git-system:
>> Operation not permitted" (after entering my password). [My directory
>> now includes "/usr/local/git", and "/usr/bin" includes git,
>> git-cvsserver, git-receive-pack, git-shell, git-upload-archive, and
>> git-upload-pack.]
>>
>> Suggestions?
> 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].
>
> [1] https://developer.apple.com/library/prerelease/mac/releasenotes/MacOSX/WhatsNewInOSX/Articles/MacOSX10_11.html
> [2] https://forums.developer.apple.com/thread/3981
> [3] https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md#if-usrlocal-does-not-exist
Thanks. That helped. I will summarize here what seemed to work for me
(skipping the wailing, gnashing of teeth, Apple tech support, etc.):
[step 1] download and install "git-2.5.3-intel-universal-mavericks.dmg"
as normal, ending with "Install successful". Confirm that git is still
not properly installed. Shut down or restart.
[step 2] Boot into the Recovery partition by holding down <cmd>+R while
power on and boot.
[step 3] Utilities > Terminal
[step 4] $ scrutil disable
[step 5] Restart normally > Terminal > sudo mv /usr/git /usr/bin/git-system
[step 6] Shut down and reboot into the Recovery partition as above.
[step 7] Utilities > Terminal
[step 8] $ scrutil enable
[step 9] Restart normally ...
*** Git now seems to be installed. I'm still having trouble getting it
to work properly with a private GitHub repository. However, RStudio
recognizes git, and I've confirmed that /usr/bin includes a subdirectory
git-system and NOT simply git. My problems now seem to be GitHub and
RStudio issues. Thanks again for your help. I hope this summary might
help others. Spencer Graves
> HTH,
> Stephen
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: can't install on OS X
2015-10-02 19:06 ` Spencer Graves
@ 2015-10-11 16:43 ` krist333
0 siblings, 0 replies; 6+ messages in thread
From: krist333 @ 2015-10-11 16:43 UTC (permalink / raw)
To: git
Thanks for the summary. I have been googling this for a while until I found
this and it worked for me.
Just one note (possibly a minor typo): it should be *csrutil* disable/enable
not scrutil
reference:
https://developer.apple.com/library/prerelease/mac/documentation/Security/Conceptual/System_Integrity_Protection_Guide/ConfiguringSystemIntegrityProtection/ConfiguringSystemIntegrityProtection.html
<https://developer.apple.com/library/prerelease/mac/documentation/Security/Conceptual/System_Integrity_Protection_Guide/ConfiguringSystemIntegrityProtection/ConfiguringSystemIntegrityProtection.html>
--
View this message in context: http://git.661346.n2.nabble.com/can-t-install-on-OS-X-tp7640609p7641041.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-10-11 16:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-02 6:50 can't install on OS X Spencer Graves
2015-10-02 12:02 ` Mike Rappazzo
2015-10-02 13:10 ` Spencer Graves
[not found] ` <2000572217.2086743.1443793295009.JavaMail.zimbra@genarts.com>
2015-10-02 13:41 ` Stephen Bash
2015-10-02 19:06 ` Spencer Graves
2015-10-11 16:43 ` krist333
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).