On 23/06/12 04:39, Greg Landrum wrote:
> On Fri, Jun 22, 2012 at 5:46 PM, Leonardo Trabuco<[email protected]> wrote:
>> Thanks for following up. Below is the output you asked for. Looks like an
>> import error in the boost library. Any ideas?
> Based on what I've been able to find on the 'net, the error is typical
> for a version mismatch between the python you're using and the one
> that boost was linked against. You can check this with ldd;
> % ldd
> /net/netfile2/ag-russell/install/CentOS-5.8-x86_64/boost/lib/libboost_python.so.1.49.0
>
> If it is using the wrong version of python, I'm afraid you'll have to
> re-build boost. There's documentation here that describes how to
> ensure the correct python version is being used:
> http://www.boost.org/doc/libs/1_49_0/libs/python/doc/building.html#python-configuration-parameters
>
> An aside: my successful (and easy) build of the RDKit on CenOS 5.7
> used a self-installed version of python 2.7. It's documented here:
> http://code.google.com/p/rdkit/wiki/BuildingOnCentOS57
>
>
FWIW, on my 64-bit Centos 5.7 machine, using cmake 2.6 failed to pick up
the correct version of boost python libs (IIRC). I built from source
python-2.7, boost 1.48, cmake-2.8.7 (and hence flex-2.5.35) and that worked.
I compile boost like this:
./bootstrap.sh --prefix=$install_top_dir
--with-libraries=python,regex --without-icu
./bjam address-model=64 cflags=-fPIC cxxflags=-fPIC install
and RDKit like this:
cd build
cmake -DRDK_INSTALL_INTREE=0 -DBOOST_ROOT=$install_top_dir \
-DBoost_USE_STATIC_LIBS=OFF \
-DBoost_INCLUDE_DIR=$install_top_dir/include \
-DBoost_LIBRARY_DIRS=$install_top_dir/lib \
-DPYTHON_LIBRARY=$install_top_dir/lib/libpython2.7.so \
-DCMAKE_INSTALL_PREFIX=$install_top_dir ..
I had to contend with unicode vs python vs gobject/gtk issues - if you
do encounter such, your solution may be somewhat simpler.
HTH,
Paul.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss