i like this post (click again to cancel)
1
i dont like this post (click again to cancel) remove favorite mark from this question (click again to restore mark)

Having SciPy build problems on Mac OS X of the following form:

dyld: lazy symbol binding failed: Symbol not found: _iconv_open 
Referenced from: /usr/lib/libaprutil-1.0.dylib 
Expected in: /opt/local/lib/libiconv.2.dylib

dyld: Symbol not found: _iconv_open 
Referenced from: /usr/lib/libaprutil-1.0.dylib 
Expected in: /opt/local/lib/libiconv.2.dylib
flag offensive community wiki
add comment
1 Answers:
i like this answer (click again to cancel)
1
i dont like this answer (click again to cancel)

Whenever you see a problem with /opt/local in the error message, MacPorts is usually involved.

The problem above is that the Apple-shipped version of libaprutil in /usr/lib is trying to access symbols from libiconv. Normally, this would be fine, since libiconv is also shipped with OS X. However, because /opt/local/lib is in DYLD_LIBRARY_PATH, the dynamic linker first finds the MacPorts version of libiconv, which is apparently incompatible and doesn't export the symbol _iconv_open.

The community recommendation is to use the Python for Mac OS X binaries distributed by Python.org, these tend to be the most reliable and easiest for you to obtain support with. The Enthought Python Distribution includes Python, NumPy, SciPy, and all sorts of other useful packages, but is commercial (but is free for academic use).

If you're using a Python installed with MacPorts, the recommended way is to install SciPy using MacPorts as well. The ports file should take care of making sure the right libraries get linked.

permanent link | flag offensive
asked 2009-08-21 17:23:35
dwf's gravatar image
81
comments (3)
Your answer:
You are now not logged in but you can answer first and then login
toggle preview

Made with Django.