mxcl/homebrew — Issue #10651: Upgrade/Install Issue
Author: drewrockshard
Created: 2012-03-02 21:35:41+00:00
State: open

While running `brew upgrade` (after `brew update`), I was unable to get gtk+ installed, it keeps failing. So, I removed it, and then trying reinstalling again. I still get the same error. Here's the error:

```
dyld: Library not loaded: /usr/local/lib/libpixman-1.0.22.2.dylib
Referenced from: /usr/local/Cellar/cairo/1.10.2/lib/libcairo.2.dylib
Reason: image not found
/bin/sh: line 1: 3854 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 im-viqr.la im-xim.la > gtk.immodules
make[2]: *** [gtk.immodules] Error 133
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/gtk+.rb#L27
```

The configuration/environment is:
```
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: 15f0a2d2c9418c363b1f6c6f9e0fea38bfb9f4a6
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: quad-core 64-bit arrandale
OS X: 10.7.3
Kernel Architecture: x86_64
Xcode: 4.3
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2335
Clang: 2.1 build 163
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/local/bin/ruby => /usr/local/Cellar/ruby/1.9.2-p290/bin/ruby
==> Build Flags
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CPPFLAGS: -I/usr/local/Cellar/cairo/1.10.2/include -I/usr/local/Cellar/libffi/3.0.10/include -I/usr/local/Cellar/gettext/0.18.1.1/include
LDFLAGS: -L/usr/local/Cellar/cairo/1.10.2/lib -L/usr/local/Cellar/libffi/3.0.10/lib -L/usr/local/Cellar/gettext/0.18.1.1/lib
MAKEFLAGS: -j4
PKG_CONFIG_PATH: /usr/local/Cellar/cairo/1.10.2/lib/pkgconfig:/usr/local/Cellar/libffi/3.0.10/lib/pkgconfig
```

I've made sure that homebrew is up-to-date as well as xcode (4.3) and the Java Update for 10.7 (Lion). Still no worky.