Hi, On Tue, Feb 22, 2011 at 5:14 PM, JP <[email protected]> wrote: > I've installed Atlas, Numpy, Boostand everything works fine until I try: > cmake .. -DBOOST_ROOT=/share/apps/boost_1_45_0/ > sudo make VERBOSE=1 > At which point everything fails as follows:: > [ 3%] Building CXX object Code/RDBoost/CMakeFiles/RDBoost.dir/Wrap.cpp.o > cd /share/apps/RDKit_2010_12_1/build/Code/RDBoost && /usr/bin/c++ > -DRDBoost_EXPORTS -O3 -DNDEBUG -fPIC -I/usr/local/include/python2.7 > -I/usr/local/lib/python2.7/site-packages/numpy/core/include > -I/share/apps/boost_1_45_0/include -I/share/apps/RDKit_2010_12_1/Code > -Wno-deprecated -Wno-unused-function -fno-strict-aliasing -fPIC -o > CMakeFiles/RDBoost.dir/Wrap.cpp.o -c > /share/apps/RDKit_2010_12_1/Code/RDBoost/Wrap.cpp > Linking CXX shared library ../../lib/libRDBoost.so > cd /share/apps/RDKit_2010_12_1/build/Code/RDBoost && /usr/local/bin/cmake -E > cmake_link_script CMakeFiles/RDBoost.dir/link.txt --verbose=1 > /usr/bin/c++ -fPIC -O3 -DNDEBUG -shared -Wl,-soname,libRDBoost.so.1 -o > ../../lib/libRDBoost.so.1.2010.12.1 CMakeFiles/RDBoost.dir/Wrap.cpp.o > -L/usr/local/lib/libpython2.7.a -L/share/apps/boost_1_45_0/lib > /usr/local/lib/libpython2.7.a > /share/apps/boost_1_45_0/lib/libboost_python.so > -Wl,-rpath,/usr/local/lib/libpython2.7.a:/share/apps/boost_1_45_0/lib: > /usr/bin/ld: /usr/local/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 > /usr/local/lib/libpython2.7.a: could not read symbols: Bad value > collect2: ld returned 1 exit status > make[2]: *** [lib/libRDBoost.so.1.2010.12.1] Error 1 > make[2]: Leaving directory `/share/apps/RDKit_2010_12_1/build' > make[1]: *** [Code/RDBoost/CMakeFiles/RDBoost.dir/all] Error 2 > make[1]: Leaving directory `/share/apps/RDKit_2010_12_1/build' > make: *** [all] Error 2
The problem is that python was built incorrectly (not your fault). >From an message from Kirk a while ago (http://www.mail-archive.com/[email protected]/msg01371.html): > CentOS's Python installation is v2.4.1, so I built and installed 2.7. Due > to errors found later in the process, I built this with the -fPIC switch and > also enabled Unicode UCS4 support > > ./configure CFLAGS=-fPIC --enable-unicode=ucs4 after you do that, rebuild and reinstall python. -greg ------------------------------------------------------------------------------ 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 _______________________________________________ Rdkit-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

