Created
June 20, 2012 13:26
-
-
Save Linusstrom/2959868 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
→ brew install git | |
==> Downloading http://git-core.googlecode.com/files/git-1.7.11.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/git-1.7.11.tar.gz | |
==> make prefix=/usr/local/Cellar/git/1.7.11 CC=/usr/bin/llvm-gcc CFLAGS=-Os -w -pipe -march=core2 -msse4 LDFLAGS= install | |
==> make CC=/usr/bin/llvm-gcc CFLAGS=-Os -w -pipe -march=core2 -msse4 LDFLAGS= | |
/usr/bin/llvm-gcc -c -Os -w -pipe -march=core2 -msse4 git-credential-osxkeychain.c | |
git-credential-osxkeychain.c:4:31: error: Security/Security.h: No such file or directory | |
git-credential-osxkeychain.c:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘protocol’ | |
git-credential-osxkeychain.c:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘port’ | |
git-credential-osxkeychain.c:50: error: expected ‘)’ before ‘item’ | |
git-credential-osxkeychain.c: In function ‘find_internet_password’: | |
git-credential-osxkeychain.c:69: error: ‘UInt32’ undeclared (first use in this function) | |
git-credential-osxkeychain.c:69: error: (Each undeclared identifier is reported only once | |
git-credential-osxkeychain.c:69: error: for each function it appears in.) | |
git-credential-osxkeychain.c:69: error: expected ‘;’ before ‘len’ | |
git-credential-osxkeychain.c:70: error: ‘SecKeychainItemRef’ undeclared (first use in this function) | |
git-credential-osxkeychain.c:70: error: expected ‘;’ before ‘item’ | |
git-credential-osxkeychain.c:72: error: ‘port’ undeclared (first use in this function) | |
git-credential-osxkeychain.c:72: error: ‘protocol’ undeclared (first use in this function) | |
git-credential-osxkeychain.c:72: error: ‘kSecAuthenticationTypeDefault’ undeclared (first use in this function) | |
git-credential-osxkeychain.c:72: error: ‘len’ undeclared (first use in this function) | |
git-credential-osxkeychain.c:72: error: ‘item’ undeclared (first use in this function) | |
git-credential-osxkeychain.c: In function ‘delete_internet_password’: | |
git-credential-osxkeychain.c:84: error: ‘SecKeychainItemRef’ undeclared (first use in this function) | |
git-credential-osxkeychain.c:84: error: expected ‘;’ before ‘item’ | |
git-credential-osxkeychain.c:91: error: ‘protocol’ undeclared (first use in this function) | |
git-credential-osxkeychain.c:94: error: ‘port’ undeclared (first use in this function) | |
git-credential-osxkeychain.c:94: error: ‘kSecAuthenticationTypeDefault’ undeclared (first use in this function) | |
git-credential-osxkeychain.c:94: error: ‘item’ undeclared (first use in this function) | |
git-credential-osxkeychain.c: In function ‘add_internet_password’: | |
git-credential-osxkeychain.c:103: error: ‘protocol’ undeclared (first use in this function) | |
git-credential-osxkeychain.c:107: error: ‘port’ undeclared (first use in this function) | |
git-credential-osxkeychain.c:107: error: ‘kSecAuthenticationTypeDefault’ undeclared (first use in this function) | |
git-credential-osxkeychain.c: In function ‘read_credential’: | |
git-credential-osxkeychain.c:131: error: ‘protocol’ undeclared (first use in this function) | |
git-credential-osxkeychain.c:131: error: ‘kSecProtocolTypeHTTPS’ undeclared (first use in this function) | |
git-credential-osxkeychain.c:133: error: ‘kSecProtocolTypeHTTP’ undeclared (first use in this function) | |
git-credential-osxkeychain.c:141: error: ‘port’ undeclared (first use in this function) | |
make: *** [git-credential-osxkeychain.o] Error 1 | |
==> Build Environment | |
CPU: quad-core 64-bit sandybridge | |
MacOS: 10.7.3-x86_64 | |
Xcode: 4.3.3 | |
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 | |
CXXFLAGS: -Os -w -pipe -march=core2 -msse4 | |
MAKEFLAGS: -j4 | |
Error: Failed executing: make CC=/usr/bin/llvm-gcc CFLAGS=-Os\ -w\ -pipe\ -march=core2\ -msse4 LDFLAGS= (git.rb:57) | |
These existing issues may help you: | |
https://github.com/mxcl/homebrew/issues/8643 | |
https://github.com/mxcl/homebrew/issues/9618 | |
https://github.com/mxcl/homebrew/issues/10544 | |
https://github.com/mxcl/homebrew/issues/11481 | |
https://github.com/mxcl/homebrew/issues/12344 | |
https://github.com/mxcl/homebrew/issues/12814 | |
https://github.com/mxcl/homebrew/issues/12897 | |
Otherwise, please report the bug: | |
https://github.com/mxcl/homebrew/wiki/reporting-bugs | |
I tried running:
brew doctor
Which told me to:
Error: Your compilers are different from the standard versions for your Xcode.
If you have Xcode 4.3 or newer, you should install the Command Line Tools for
Xcode from within Xcode's Download preferences.
Otherwise, you should reinstall Xcode.
Which worked!
Thanks. This fixed my "brew install git" error. The command line tools from the Apple's developer site fixed it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you get to the bottom of this one? I'm experiencing the same issue.
Cheers,
Dave