Created
March 4, 2012 08:32
-
-
Save arguskao/1971366 to your computer and use it in GitHub Desktop.
我想問關於安裝git的問題
This file contains 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.9.2.tar.gz | |
File already downloaded in /Users/arguskao/Library/Caches/Homebrew | |
==> make prefix=/usr/local/Cellar/git/1.7.9.2 CC=/Applications/Xcode.app/Content | |
GIT_VERSION = 1.7.9.2 | |
* new build flags or prefix | |
* new link flags | |
./generate-cmdlist.sh > common-cmds.h+ && mv common-cmds.h+ common-cmds.h | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o hex.o -c -MF ./.depend/hex.o.d -MMD -MP -Os -w -pipe -march=native -Qunused-arguments -I. -DUSE_ST_TIMESPEC -DNO_GETTEXT -DHAVE_DEV_TTY -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM hex.c | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o ident.o -c -MF ./.depend/ident.o.d -MMD -MP -Os -w -pipe -march=native -Qunused-arguments -I. -DUSE_ST_TIMESPEC -DNO_GETTEXT -DHAVE_DEV_TTY -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM ident.c | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o kwset.o -c -MF ./.depend/kwset.o.d -MMD -MP -Os -w -pipe -march=native -Qunused-arguments -I. -DUSE_ST_TIMESPEC -DNO_GETTEXT -DHAVE_DEV_TTY -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM kwset.c | |
In file included from hex.c:1: | |
In file included from ./cache.h:4: | |
./git-compat-util.h:93:10: fatal error: 'unistd.h' file not found | |
#include <unistd.h> | |
^ | |
In file included from ident.c:8: | |
In file included from ./cache.h:4: | |
./git-compat-util.h:93:10: fatal error: 'unistd.h' file not found | |
#include <unistd.h> | |
^ | |
In file included from kwset.c:37: | |
In file included from ./cache.h:4: | |
./git-compat-util.h:93:10: fatal error: 'unistd.h' file not found | |
#include <unistd.h> | |
^ | |
1 error generated. | |
1 error generated. | |
make: *** [ident.o] Error 1 | |
make: *** Waiting for unfinished jobs.... | |
make: *** [hex.o] Error 1 | |
1 error generated. | |
make: *** [kwset.o] Error 1 | |
==> Exit Status: 2 | |
http://github.com/mxcl/homebrew/blob/master/Library/Formula/git.rb#L47 | |
==> Environment | |
HOMEBREW_VERSION: 0.8.1 | |
HEAD: 0e8ea8aae9dadda53d0dc0cf680d383981770be9 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
Hardware: quad-core 64-bit sandybridge | |
OS X: 10.7.3 | |
Kernel Architecture: x86_64 | |
Xcode: 3.2.2 | |
GCC-4.0: N/A | |
GCC-4.2: N/A | |
LLVM: build 2336 | |
Clang: N/A | |
MacPorts or Fink? false | |
X11: /usr/X11 | |
System Ruby: 1.8.7-249 | |
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby | |
Which Perl: /usr/bin/perl | |
Which Python: /usr/bin/python | |
Which Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby | |
==> Build Flags | |
CC: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang | |
CXX: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ => /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang | |
LD: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang | |
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments | |
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments | |
MAKEFLAGS: -j4 | |
Error: Failed executing: make prefix=/usr/local/Cellar/git/1.7.9.2 CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang CFLAGS=-Os\ -w\ -pipe\ -march=native\ -Qunused-arguments LDFLAGS= install | |
These existing issues may help you: | |
https://github.com/mxcl/homebrew/issues/9023 | |
https://github.com/mxcl/homebrew/issues/9618 | |
https://github.com/mxcl/homebrew/issues/10225 | |
https://github.com/mxcl/homebrew/issues/10544 | |
Otherwise, please report the bug: | |
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
via: https://plus.google.com/104380466827791159788/posts/CZctybpv92u