Building RDKit 2011.09.1 on CentOs 5.6 (final) - share my pain
(And having seen http://code.google.com/p/rdkit/wiki/BuildingOnCentOS)
Using python 2.7 which is in /opt which comes with the distribution
(this is the ROCKS, Centos distirbution) (I would not like to rebuild
this -- if possible I would like to use this version out of the box)
Both
cmake -D PYTHON_LIBRARY=/opt/python/lib/libpython2.7.a -D
PYTHON_INCLUDE_DIR=/opt/python/include/python2.7 -D
CMAKE_C_FLAGS="-fPIC" -D CMAKE_CXX_FLAGS="-fPIC"..
and
cmake -D PYTHON_LIBRARY=/opt/python/lib/libpython2.7.a -D
PYTHON_INCLUDE_DIR=/opt/python/include/python2.7 ..
from the build dir - fail with the same error (at 4% with)
[ 4%] Building CXX object Code/RDBoost/CMakeFiles/RDBoost.dir/Wrap.cpp.o
Linking CXX shared library ../../lib/libRDBoost.so
/usr/bin/ld: /opt/python/lib/libpython2.7.a(exceptions.o): relocation
R_X86_64_32 against `_Py_NoneStruct' can not be used when making a
shared object; recompile with -fPIC
/opt/python/lib/libpython2.7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/libRDBoost.so.1.2011.09.1] Error 1
make[1]: *** [Code/RDBoost/CMakeFiles/RDBoost.dir/all] Error 2
make: *** [all] Error 2
And also - I am using boost 1_48_0
As a possibly unrelated sidenote the -DBoost_USE_STATIC_LIBS=OFF
suggested in the INSTALL instructions does not work: Message on cmake:
Manually-specified variables were not used by the project:
Boost_USE_STATIC_LIBS
-
Jean-Paul Ebejer
Early Stage Researcher
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss