Skip to content

Instantly share code, notes, and snippets.

@ralphsaunders
Created November 6, 2012 01:31
Show Gist options
  • Save ralphsaunders/4021880 to your computer and use it in GitHub Desktop.
Save ralphsaunders/4021880 to your computer and use it in GitHub Desktop.
I broke Homebrew
ralph:~ ralphsaunders$ brew install postgresql
==> Downloading http://ftp.postgresql.org/pub/source/v9.2.1/postgresql-9.2.1.tar.bz2
Already downloaded: /Users/ralphsaunders/Library/Caches/Homebrew/postgresql-9.2.1.tar.bz2
==> Patching
patching file src/pl/plpython/Makefile
patching file contrib/uuid-ossp/uuid-ossp.c
==> ./configure --prefix=/usr/local/Cellar/postgresql/9.2.1 --datadir=/usr/local/Cellar/postgresql/9.2.1/share/postgresql --docdir=/usr/local/C
checking for inflate in -lz... no
configure: error: zlib library not found
If you have zlib already installed, see config.log for details on the
failure.  It is possible the compiler isn't looking in the proper directory.
Use --without-zlib to disable zlib support.

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

These open issues may also help:
    https://github.com/mxcl/homebrew/issues/14616
    https://github.com/mxcl/homebrew/issues/14775
    https://github.com/mxcl/homebrew/issues/15038



ralph:~ ralphsaunders$ brew doctor
Warning: Some directories in /usr/local/share/man aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `chown` them:

    /usr/local/share/man/de
    /usr/local/share/man/de/man1
Warning: gettext was detected in your PREFIX.
The gettext provided by Homebrew is "keg-only", meaning it does not
get linked into your PREFIX by default.

If you `brew link gettext` then a large number of brews that don't
otherwise have a `depends_on 'gettext'` will pick up gettext anyway
during the `./configure` step.

If you have a non-Homebrew provided gettext, other problems will happen
especially if it wasn't compiled with the proper architectures.
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/libatk-1.0.0.2209.1.dylib    /usr/local/lib/libgdk-x11-2.0.0.1200.0.dylib    /usr/local/lib/libgdk_pixbuf-2.0.0.1200.0.dylib    /usr/local/lib/libgdk_pixbuf_xlib-2.0.0.1200.0.dylib    /usr/local/lib/libGLEW.1.5.0.dylib    /usr/local/lib/libglib-2.0.0.1600.0.dylib    /usr/local/lib/libgmodule-2.0.0.1600.0.dylib    /usr/local/lib/libgobject-2.0.0.1600.0.dylib    /usr/local/lib/libgthread-2.0.0.1600.0.dylib    /usr/local/lib/libgtk-x11-2.0.0.1200.0.dylib    /usr/local/lib/libintl.3.4.3.dylib    /usr/local/lib/libintl.3.dylib    /usr/local/lib/libintl.8.0.2.dylib    /usr/local/lib/libjpeg.62.dylib    /usr/local/lib/libpango-1.0.0.2100.0.dylib    /usr/local/lib/libpangocairo-1.0.0.2100.0.dylib    /usr/local/lib/libpangoft2-1.0.0.2100.0.dylib    /usr/local/lib/libpangox-1.0.0.2100.0.dylib    /usr/local/lib/libpangoxft-1.0.0.2100.0.dylib    /usr/local/lib/libSDL-1.2.0.11.2.dylib    /usr/local/lib/libz.1.2.3.dylib    /usr/local/lib/libzzip-0.13.dylib    /usr/local/lib/libzzipfseeko-0.13.dylib    /usr/local/lib/libzzipmmapped-0.13.dylib    /usr/local/lib/libzzipwrap-0.13.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .la files:
    /usr/local/lib/libatk-1.0.la    /usr/local/lib/libgdk-x11-2.0.la    /usr/local/lib/libgdk_pixbuf-2.0.la    /usr/local/lib/libgdk_pixbuf_xlib-2.0.la    /usr/local/lib/libglib-2.0.la    /usr/local/lib/libgmodule-2.0.la    /usr/local/lib/libgobject-2.0.la    /usr/local/lib/libgthread-2.0.la    /usr/local/lib/libgtk-x11-2.0.la    /usr/local/lib/libintl.la    /usr/local/lib/libjpeg.la    /usr/local/lib/libpango-1.0.la    /usr/local/lib/libpangocairo-1.0.la    /usr/local/lib/libpangoft2-1.0.la    /usr/local/lib/libpangox-1.0.la    /usr/local/lib/libpangoxft-1.0.la    /usr/local/lib/libSDL.la    /usr/local/lib/libzzip.la    /usr/local/lib/libzzipfseeko.la    /usr/local/lib/libzzipmmapped.la    /usr/local/lib/libzzipwrap.la
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
    /usr/local/lib/libGLEW.a    /usr/local/lib/libintl.a    /usr/local/lib/libjpeg.a    /usr/local/lib/libSDL.a    /usr/local/lib/libSDLmain.a    /usr/local/lib/libz.a    /usr/local/lib/libzzip.a    /usr/local/lib/libzzipfseeko.a    /usr/local/lib/libzzipmmapped.a    /usr/local/lib/libzzipwrap.a
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:

    nmap
@ralphsaunders
Copy link
Author

ralph:lib ralphsaunders$ ls | grep libz
libz.1.2.3.dylib
libz.1.dylib
libz.a
libz.dylib
libzzip*.so.10
libzzip*.so.11
libzzip*.so.12
libzzip-0.13.dylib
libzzip.a
libzzip.dylib
libzzip.la
libzzipfseeko-0.13.dylib
libzzipfseeko.a
libzzipfseeko.dylib
libzzipfseeko.la
libzzipmmapped-0.13.dylib
libzzipmmapped.a
libzzipmmapped.dylib
libzzipmmapped.la
libzzipwrap-0.13.dylib
libzzipwrap.a
libzzipwrap.dylib
libzzipwrap.la

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment