Homebrew / legacy-homebrew

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

build fails on latest osx/xcode #15835

Closed tobsn closed 11 years ago

tobsn commented 11 years ago

dyld: Library not loaded: /usr/local/lib/libpixman-1.0.24.4.dylib [33/1933] Referenced from: /usr/local/Cellar/cairo/1.10.2/lib/libcairo.2.dylib Reason: image not found /bin/sh: line 1: 75482 Trace/BPT trap: 5 ../../gtk/gtk-query-immodules-2.0 im-am-et.la im-cedilla.la im-cyrillic-translit.la im-inuktitut.la im-ipa.la im-multipress.la im-thai.la im-ti-er.la im-ti-et.la i m-viqr.la im-xim.la > gtk.immodules make[2]: * [gtk.immodules] Error 133 make[1]: * [install-recursive] Error 1 make: *\ [install-recursive] Error 1 config.log was copied to /Users/tobias/Library/Logs/Homebrew ==> Build Environment HOMEBREW_VERSION: 0.9.2 HEAD: 36b31aca5d9016753651456b95bd8dd639235954 CPU: quad-core 64-bit sandybridge OS X: 10.8.2-x86_64 Xcode: 4.5.2 CLT: 4.4.0.0.1.1249367152 Error: Homebrew doesn't know what compiler versions ship with your ver sion of Xcode. Please file an issue with the output of brew --config: https://github.com/mxcl/homebrew/issues

Thanks! Error: undefined method all?' for nil:NilClass Please report this bug: [8/1933] https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist /usr/local/Library/Homebrew/macos.rb:211:incompilers_standard?' /usr/local/Library/Homebrew/cmd/--config.rb:98:in dump_build_config' /usr/local/Library/Homebrew/exceptions.rb:123:indump' /usr/local/Library/Homebrew/cmd/upgrade.rb:76:in upgrade_formula' /usr/local/Library/Homebrew/cmd/upgrade.rb:51:inupgrade' /usr/local/Library/Homebrew/cmd/upgrade.rb:50:in each' /usr/local/Library/Homebrew/cmd/upgrade.rb:50:inupgrade' /usr/local/bin/brew:80:in `send' /usr/local/bin/brew:80 ╭─ ~ ╰─$ brew --config 1 ↵ HOMEBREW_VERSION: 0.9.2 HEAD: 36b31aca5d9016753651456b95bd8dd639235954 HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar CPU: quad-core 64-bit sandybridge OS X: 10.8.2-x86_64 Xcode: 4.5.2 CLT: 4.4.0.0.1.1249367152 GCC-4.0: N/A GCC-4.2: N/A LLVM: build 2336 Clang: 4.0 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: /Users/tobias/.rvm/rubies/ruby-1.9.3-p194/bin/ruby

2bits commented 11 years ago

Hello. Homebrew only functions well when you run this command:

brew update

That brings in all the changes that are frequently made. Your ouput indicates that you either never did this or haven't done it in 7 months. I suggest you do it each day before you try to brew something, or once a week if at all possible. After you do that, I suggest you run XCode and go into preferences and install the Command Line Tools or allow them to autoupdate. The CLT does not autoupdate until you run XCode at least once after an App Store update.

After you update Homebrew and XCode's CLT, I suggest you rebrew everything because things have changed so much. Run a

brew list

and make a note of all the programs you have brewed. The remove and reinstall them. That will fix this problem for you and get you up to speed.

brew rm -f `brew list`
brew install pkg-config pixman

and whatever else you want. Your other good option instead removing and reinstalling is to move /usr/local to a backup name like /usr/local.bak then create a new /usr/local and install Homebrew from scratch. That way you could always switch back and/or have your old setup handy. Let us know how it goes.

adamv commented 11 years ago

Please brew update; version 0.9.2 is very old at this point. 2bits has good advice here.