Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.99k stars 11.35k forks source link

Error: Homebrew doesn't know what compiler versions ship with your version of Xcode #16554

Closed sorgnardt closed 11 years ago

sorgnardt commented 11 years ago

When running homebrew on a formula, installation failed, and request to open an issue with config information.

See next :

$ brew install libdnet-python ==> Downloading http://libdnet.googlecode.com/files/libdnet-1.12.tgz

100,0%

==> ./configure --prefix=/usr/local/Cellar/libdnet-python/1.12 --mandir=/usr/loc ==> make ==> cd python && /usr/bin/python setup.py install running install running build running build_ext building 'dnet' extension creating build creating build/temp.macosx-10.7-intel-2.7 llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -O3 -w -pipe -arch i386 -arch x86_64 -pipe -I../include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c ./dnet.c -o build/temp.macosx-10.7-intel-2.7/./dnet.o creating build/lib.macosx-10.7-intel-2.7 llvm-gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -Wl,-F. -arch i386 -arch x86_64 -O3 -w -pipe build/temp.macosx-10.7-intel-2.7/./dnet.o ..//src/.libs/addr-util.o ..//src/.libs/addr.o ..//src/.libs/arp-bsd.o ..//src/.libs/blob.o ..//src/.libs/eth-bsd.o ..//src/.libs/fw-ipfw.o ..//src/.libs/intf.o ..//src/.libs/ip-util.o ..//src/.libs/ip.o ..//src/.libs/ip6.o ..//src/.libs/rand.o ..//src/.libs/route-bsd.o ..//src/.libs/tun-none.o -o build/lib.macosx-10.7-intel-2.7/dnet.so running install_lib copying build/lib.macosx-10.7-intel-2.7/dnet.so -> /Library/Python/2.7/site-packages error: /Library/Python/2.7/site-packages/dnet.so: Permission denied config.log was copied to /Users/thierrysorgnard/Library/Logs/Homebrew ==> Build Environment HOMEBREW_VERSION: 0.9.3 HEAD: 05db03fddc059f6e61663fff20b9c129a4db64bf CPU: 8-core 64-bit sandybridge OS X: 10.7.5-x86_64 Xcode: 4.5.2 CLT: 1.0.0.9000000000.1.1249367152 Error: Homebrew doesn't know what compiler versions ship with your version of Xcode. Please file an issue with the output of brew --config: https://github.com/mxcl/homebrew/issues

Thanks! /usr/local/Library/Homebrew/macos.rb:206:in compilers_standard?': undefined methodall?' for nil:NilClass (NoMethodError) from /usr/local/Library/Homebrew/cmd/--config.rb:102:in dump_build_config' from /usr/local/Library/Homebrew/exceptions.rb:123:indump' from /usr/local/bin/brew:114 MacBook-Pro-de-Thierry:Formula thierrysorgnard$ brew --config HOMEBREW_VERSION: 0.9.3 HEAD: 05db03fddc059f6e61663fff20b9c129a4db64bf HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar CPU: 8-core 64-bit sandybridge OS X: 10.7.5-x86_64 Xcode: 4.5.2 CLT: 1.0.0.9000000000.1.1249367152 GCC-4.0: N/A GCC-4.2: build 5666 LLVM: build 2336 Clang: 4.1 build 421 MacPorts or Fink? false X11: 2.7.4 in /opt/X11 System Ruby: 1.8.7-358 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

adamv commented 11 years ago

Please brew update to get a newer version of Homebrew.

sorgnardt commented 11 years ago

Thanks a lot! after brew update and fix on path, I still have a problem with permission.

$ brew install libdnet-python ==> Downloading http://libdnet.googlecode.com/files/libdnet-1.12.tgz Already downloaded: /Users/thierrysorgnard/Library/Caches/Homebrew/libdnet-python-1.12.tgz ==> ./configure --prefix=/usr/local/Cellar/libdnet-python/1.12 --mandir=/usr/loc ==> make ==> cd python && /usr/bin/python setup.py install creating build/lib.macosx-10.7-intel-2.7 llvm-gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -Wl,-F. -arch i386 -arch x86_64 -O3 -w -pipe build/temp.macosx-10.7-intel-2.7/./dnet.o ..//src/.libs/addr-util.o ..//src/.libs/addr.o ..//src/.libs/arp-bsd.o ..//src/.libs/blob.o ..//src/.libs/eth-bsd.o ..//src/.libs/fw-ipfw.o ..//src/.libs/intf.o ..//src/.libs/ip-util.o ..//src/.libs/ip.o ..//src/.libs/ip6.o ..//src/.libs/rand.o ..//src/.libs/route-bsd.o ..//src/.libs/tun-none.o -o build/lib.macosx-10.7-intel-2.7/dnet.so running install_lib copying build/lib.macosx-10.7-intel-2.7/dnet.so -> /Library/Python/2.7/site-packages error: /Library/Python/2.7/site-packages/dnet.so: Permission denied