Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Homebrew failing to install git #12325

Closed
mbbroberg opened this issue May 19, 2012 · 9 comments
Closed

Homebrew failing to install git #12325

mbbroberg opened this issue May 19, 2012 · 9 comments

Comments

@mbbroberg
Copy link

Hey folks - total new guy here so apologies if I'm missing some prerequisites.

I'm trying to use cinderella - http://www.atmos.org/cinderella/ - but homebrew believes that git isn't installed. I'm running brew install git and getting this kind of output towards the failure message:

HOMEBREW_PREFIX: /Users/vader/Developer
CPU: dual-core 64-bit penryn
MacOS: 10.7.3-x86_64
Xcode: 4.3.2
CC: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/llvm-g++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -Os -w -pipe -march=core2 -msse4.1
CXXFLAGS: -Os -w -pipe -march=core2 -msse4.1
CPPFLAGS: -isystem /Users/vader/Developer/include
LDFLAGS: -L/Users/vader/Developer/lib
MAKEFLAGS: -j2
Error: Failed executing: make CC=/usr/bin/llvm-gcc CFLAGS=-Os\ -w\ -pipe\ -march=core2\ -msse4.1 (git.rb:57)
These existing issues may help you:
#8643
#9023
#9618
#10544
#11481
Otherwise, please report the bug:
https://github.com/mxcl/homebrew/wiki/reporting-bugs
vader:~ vader$

Looking over the issues found here I'm not finding anything of help. Much appreciative of feedback and 101 guidance.

@mistydemeo
Copy link
Member

Could you do brew install git -v and paste the output to gist.github.com?

@MikeMcQuaid
Copy link
Member

And generally follow the instructions here please: https://github.com/mxcl/homebrew/wiki/reporting-bugs

@mistydemeo I wonder if that message isn't obvious enough; it sounds like it's just going to be the bug reporting page.

@mistydemeo
Copy link
Member

@MikeMcQuaid Yeah, might be better as something like "Please read the following troubleshooting instructions before reporting the bug:"

@2bits
Copy link
Contributor

2bits commented May 20, 2012

@mjbrender welcome to Homebrew! The basic idea is that things just work when you install Homebrew to /usr/local. The second thing that people can miss is that Xcode-4.3+ installs as an app and works the best when three things happen: you uninstall the previous Xcode first; you use Xcode Preferences, Downloads, Components to install the Command Line Tools; and you run
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
On my iTouch atm, hope I got that right. If u can do those things, life will be a thousand times easier for you. Follow Mike & Misty's advice. Let us know how things go.

@frankhmiv
Copy link

I've also had this problem and found it to typically be fixed by following @2bits instructions to uninstall the previous Xcode, install the new Xcode command line tools, and use xcode-select to point to the new dev tools contents.

It may also be that re-running xcode-select after upgrading to a new app-store installed Xcode helps.

@samueljohn
Copy link
Contributor

It would be cool, if homebrew could work without the hassle of installing the command line tools..
Oh, wait...
This might be a good place to advertise my proposal which you can find in the pull request: #10510

I could need some help in terms of testing and reviewing over there :-)

@mbbroberg
Copy link
Author

Thanks so much everyone! Apologies for the delay as well.. I was away presenting at a tech conference and had to refocus.

The thing with cinderella is that it expects I'll be developing in my ~/Developer/ folder, so brew doctor shows some errors.. does anyone here use cinderella?

Thanks again.

@adamv
Copy link
Contributor

adamv commented May 31, 2012

Ping @atmos

@atmos
Copy link
Contributor

atmos commented May 31, 2012

@mjbrender You get git from the the xcode command line tools but homebrew goes on to manage its own after that. Please direct this over to https://github.com/atmos/cinderella/issues and I can give you a hand getting things working.

@adamv adamv closed this as completed Jun 11, 2012
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants