> I have managed to compile OpenBabel with the python bindings on my Mac by
> following the instructions on the OpenBabel website. OpenBabel works fine
> form the command line, and I can import pybel into python. However whenever
> I try to use pybel I get a segmentation error For example:
Yes, I need to fix up the build script for the Mac python bindings (and
probably other scripting bindings as well). The problem is that the
openbabel.so build for the Python binding will link to the files in your build
directory, not the installed libopenbabel.dylib. :-(
So what you want to do is this:
otool -L /Library/Python/2.6/site-packages/_openbabel.so
You should see something like this:
/Library/Python/2.6/site-packages/_openbabel.so:
/Users/ghutchis/Devel/build/openbabel/lib/libopenbabel.4.dylib
(compatibility version 4.0.0, current version 4.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
version 7.9.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 125.2.1)
Make a note of the first path (to libopenbabel.dylib) and copy that text.
Then run:
sudo install_name_tool -change [old path] /usr/local/lib/libopenbabel.4.dylib
/Library/Python/2.6/site-packages/_openbabel.so
That should do it. If not, please let me know.
Hope that helps,
-Geoff
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss