Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Installation Issue #14511

RoarkToohey opened this Issue · 9 comments

5 participants


I have a clean install of 10.7.4 and Xcode 4.4.1.

When run:
ruby <(curl -fsSkL

I get the following error:
xcodebuild: error: 'init' not found.
xcrun: error: /Applications/ failed with exit code 17664
Failed during: xcrun git init -q

Please advise


@RoarkToohey The installation script runs fine for me. The problem seems to be that xcrun -find git fails.
Could you provide the following information code-select -print-path?
Mine points to /Applications/

Another idea (from the return code). Did you fire up xcode once to agree to the license? People reported it is possible to
xcodebuild -license too. (perhaps sudo is needed here).
I found this thread over at our friends from MacPorts.


Also your xcodebuild -version might be of help. I have "Xcode 4.4.1 Build version 4F1003".


xcodebuild: error: 'init' not found.

Wondering if there's a problem with the way xcrun is interpeting the command? The code in question is expanding to:

git = %w[xcrun git]
system git, "init", "-q"

But it sounds like xcrun is expecting init to be a file argument and not an argument to git. (It should work as written though.)


@samueljohn This is the second person I've seen today having the same issue.

ping @mxcl


My bad.

@mxcl mxcl closed this issue from a commit
@mxcl mxcl Fix xcrun usage
Fixes #14511.
@mxcl mxcl closed this in 9615b76

Uninstalled xcode, reinstalled it, making sure to view and agree to license prior to running homebrew installation. Worked.


Uninstalled xcode, reinstalled it,

oh what a pain :)
No one of use has actually tested that license issue because we all use Xcode here and there (I guess).

Is this license thing actually a problem, or was it just that meanwhile you reinstalled Xcode and then tried again, @mxcl has already fixed it?


@samueljohn I believe the issue is that must be run at least once in order that xcode-select be set. I'm not certain.

superenv is not activated until Xcode is run at least once. But I don't think stdenv handles it either.

@jbrains jbrains referenced this issue from a commit
@mxcl mxcl Fix xcrun usage
Fixes #14511.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.