mxcl/homebrew — Issue #9101: igraph install fails on mac os 10.6.8
Author: nikikz
Created: 2011-12-13 10:30:16+00:00
State: open

hey, i want to add igraph to my enthought python2.7 distribution (version 7.1) but cannot get the igraph c core installed.

the 'brew install -v' output:

git://gist.github.com/1471555.git

'brew doctor' returned

"""
$ brew doctor
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/libcharset.1.dylib
/usr/local/lib/libiconv.2.dylib

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/libcharset.a

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/libcharset.la
/usr/local/lib/libiconv.la
/usr/local/lib/libxml2.la

==> /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. This is an issue if you eg. brew installed Python.

Consider editing your .bashrc to put:
/usr/local/bin
ahead of /usr/bin in your $PATH.
Some "config" scripts were found in your path, but not in system or Homebrew folders.

`./configure` scripts often look for *-config scripts to determine if software packages
are installed, and what additional flags to use when compiling and linking.

Having additional scripts in your path can confuse software installed via Homebrew if
the config script overrides a system or Homebrew provided script of the same name.

/Library/Frameworks/Python.framework/Versions/Current/bin
python-config python2.7-config wx-config xml2-config xslt-config
/Library/Frameworks/Python.framework/Versions/2.7/bin
python-config python2.7-config
"""

so i deleted 'libiconv.2.dylib' and others mentioned, now 'brew doctor' returns :|

"""
Error: No such file or directory - /usr/local/lib/libiconv.2.dylib
"""

if i try to install from source, i also get this:

"""
libtool: link: warning: library `/Library/Frameworks/Python.framework/Versions/7.1/lib/libxml2.la' was moved.
grep: /usr/lib/libiconv.la: No such file or directory
sed: /usr/lib/libiconv.la: No such file or directory
libtool: link: `/usr/lib/libiconv.la' is not a valid libtool archive
make[2]: *** [libigraph.la] Error 1
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1
"""

thanks in advance, niklas