git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: can't install on OS X

From
SBStephen Bash <bash@genarts.com>
Date
Oct 2, 2015, 13:41 UTC
Message-ID
<136388305.2086780.1443793308932.JavaMail.zimbra@genarts.com>
In-Reply-To
<2000572217.2086743.1443793295009.JavaMail.zimbra@genarts.com>
----- Original Message -----
Show 7 quoted lines
> 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.
Show 8 quoted lines
> "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

Previous: Spencer GravesNext: Spencer Graves
Message 4 of 6 in “can't install on OS X”
  1. Spencer GravesOct 2, 2015
  2. Mike RappazzoOct 2, 2015
  3. Spencer GravesOct 2, 2015
  4. Stephen BashOct 2, 2015
  5. Spencer GravesOct 2, 2015
  6. krist333Oct 11, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.