Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

10.7 and Xcode 4.3 git install errors #10244

Closed
roryf opened this Issue · 9 comments

5 participants

@roryf

I've just performed a clean install of OS X 10.7 and installed Xcode from the App Store. I ran the Java Developer Update.

Upon running brew install git I am getting the output in this gist.

brew doctor says:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:685: command not found: git status -s     Library/Homebrew/
You have no /usr/bin/cc. This will cause numerous build issues. Please
reinstall Xcode.
"Git" was not found in your path.

Homebrew uses Git for several internal functions, and some formulae
use Git checkouts instead of stable tarballs.

You may want to install git:
  brew install git

It appears that you are using the osx-gcc-installer.

This is unsupported, and software that require headers and other
resources that are normally provided by Xcode will fail to compile.

We recommend that you install Xcode.

Xcode is installed to /Applications only, there is no /Developer directory. Looking at the install output it appears homebrew correctly locates gcc from Xcode.app.

Is this setup supported yet or do I need to perform further steps to intall the devtools? I've read some of #9179 but there didn't seem to be a conclusion.

@mxcl
Collaborator

Try updating and trying again. This configuration is certainly supported.

@roryf

brew update simply says Please 'brew install git' first.

@mxcl
Collaborator

Reinstall. However I'm not sure if it will help. Homebrew is correctly locating everything. The error is a fundamental compile error which is confusing.

The only thing updating will fix is using clang rather than llvm. And I can't say I think that will fix it. Not sure what the problem is at this point.

@mxcl mxcl referenced this issue from a commit
@mxcl mxcl Remove OSX-GCC from brew-doctor
Also fix undesired output if git isn't installed.

Refs #10244.
ec4f21e
@roryf

Just re-ran install script, now getting Error: No such file or directory - /Applications/Xcode.app/Contents/Developer/usr/bin/cc.

Neither Xcode version from App Store or download from Apple developer site seems to contain user/bin/cc.

@kelso

I just solved same problem this way:

After installing xcode
1. open Xcode
2. go to Preferences
3. select tab Downloads and click Install for Command Line Toold (about 130 MB).

screen

@roryf

Installing the command line tools worked for me, hadn't found that option before. I notice there was a series of other changes over night that I picked up on reinstalling, unsure if any of those where in this area.

Assuming I should close this now, but I'd suggest it could still use some work to improve the initial experience. Happy to help test anything or provide more information.

@roryf roryf closed this
@mxcl
Collaborator

I just pushed a bunch of stuff that should avoid this error for future users, thanks for the report.

@etehtsea etehtsea referenced this issue from a commit in etehtsea/homebrew
@mxcl mxcl Remove OSX-GCC from brew-doctor
Also fix undesired output if git isn't installed.

Refs #10244.
Conflicts:

	Library/Homebrew/cmd/doctor.rb
a09a447
@mtandersson mtandersson referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@Crazor Crazor referenced this issue from a commit
@mxcl mxcl Remove OSX-GCC from brew-doctor
Also fix undesired output if git isn't installed.

Refs #10244.
6eddfaa
@Sharpie Sharpie referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@bric3 bric3 referenced this issue from a commit
@mxcl mxcl Remove OSX-GCC from brew-doctor
Also fix undesired output if git isn't installed.

Refs #10244.
acb56a7
@RichardBronosky

I used Charles Proxy to see what is actually being downloaded when following kelso's advice. I wonder if people who wanto to use homebrew, but do not care for Xcode, could get away with simply installing:
http://adcdownload.apple.com/Developer_Tools/command_line_tools_for_xcode__march_2012/command_line_tools_for_xcode.dmg

I'd like to give that a shot on a fresh OS install, but I have had to reinstall my OS 3 times in the past week and I'm pretty sick of it.

@Sharpie
Collaborator

I wonder if people who want to use homebrew, but do not care for Xcode, could get away with simply installing:

Most things will work with just the command line tools, However anything that uses xcodebuild or SDKs other than the 10.7 SDK, will fail or be buggy without a full Xcode install---this includes build tools like CMake that use xcodebuild to detect versions and header paths.

@MNeise MNeise referenced this issue from a commit
@mxcl mxcl Remove OSX-GCC from brew-doctor
Also fix undesired output if git isn't installed.

Refs #10244.
a26bda4
@cacoco cacoco referenced this issue from a commit
@mxcl mxcl Remove OSX-GCC from brew-doctor
Also fix undesired output if git isn't installed.

Refs #10244.
6ca9cd4
@Sharpie Sharpie referenced this issue from a commit in Sharpie/homebrew
@mxcl mxcl Remove OSX-GCC from brew-doctor
Also fix undesired output if git isn't installed.

Refs #10244.
825e33c
@snakeyroc3 snakeyroc3 referenced this issue from a commit in snakeyroc3/homebrew
@mxcl mxcl Remove OSX-GCC from brew-doctor
Also fix undesired output if git isn't installed.

Refs #10244.
3911263
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.