-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Issue with Command Line Tools for Xcode #10245
Comments
I just tried running Edit: More specifically it appears to get stuck running |
Same issue on a clean 10.7 install with no Xcode. |
I suspect a condition that doesn't continue, nor exit. Ed1t: One trick is to set the xcode-select path to a different location which doesn't need to be a "Xcode-path". This will make Homebrew run, but xcrun to fail. E.g |
I had this issue and ran |
@beerlington I think we have a winner! Running it with |
As described above. You set a directory which doesn't contain Xcode. If you run
It seems with this error, Homebrew is able to complete its tasks. |
The difference is that Of course, it really should check the return codes and act more appropriately, but it looks like homebrew generally does not check return codes from system calls. |
Do you have to run this if you just install the command line tools from a clean install? "sudo xcode-select -switch /usr/bin" |
Fixes Homebrew#10245. Fixes Homebrew#10248. Conflicts: Library/Homebrew/utils.rb
This worked for me:
Note that giving xcode-select any path with a trailing slash causes xcrun to lock up. Don't know why. |
So, trying to install ntfs-3g, this seems to be a showstopper. I installed Command Line Tools for XCode on a clean 10.7.3 install. If I run "sudo xcode-select -switch /", then brew doctor is happy, but the build process stops at I select /usr/bin, /usr or anything else, it fails ... |
I believe brew doctor tells you not to set xcode-select to /. It exposes a bug in xcode-select that causes it to hang forever. Now you need to unset it. I forget how. |
Yes, brew doctor told me that no setting would work for command line only installs yet. (Then I Googled and found this thread.) But it did fail also before I disobeyed brew doctor and tried setting something ... So, is this something I should just wait for, then? |
Please report a new bug once you have unset xcode-select. |
One way to unset xcode-select is remove the file that was created when you used the -switch option:
|
so what should we do with ntfs-3g? it still fails on 10.7 clean install with XCode command line tools... |
@sha1dy Please don't bump unrelated issues. Unfortunately ntfs-3g doesn't work with just the command line tools - that's not something we can fix. For now, you need a full Xcode to build it. |
Fixes Homebrew#10245. Fixes Homebrew#10248.
What @notahat said worked fine for me with Xcode 4.4.1 |
fwiw, this was a super easy solution that worked for me: http://stackoverflow.com/questions/13041525/osx-10-8-xcrun-no-such-file-or-directory |
Fixes Homebrew#10245. Fixes Homebrew#10248.
After running the uninstaller for Xcode (
sudo /Developer/Library/uninstall-devtools –mode=all
) and installing the command line tools from apple, I see the following error whenever I run brew install:I took a look at the ruby code running here and it looks like it is failing to understand the output of:
which it runs in
/usr/local/Library/Homebrew/utils.rb
line 270 or whereabouts.I do have
cc
and friends:Other info:
It looks like this is being discussed over in #9179 though its not clear what the solution is.
The text was updated successfully, but these errors were encountered: