Dear Jef, On Thu, Sep 16, 2010 at 7:39 AM, Jef K <althusser...@hotmail.fr> wrote: > > I am using a Linux machine which has an old version of boost. > I am trying to install RDKit following these instructions > > http://code.google.com/p/rdkit/wiki/BuildingWithCmake > > Everything went OK in the "Building the Code" section. > I did : > > ./bootstrap.sh --with-libraries=python,regex --prefix=/home/me/progs/ > ./bjam address-model=64 cflags=-fPIC cxxflags=-fPIC install
This look ok so far. To be sure though, what is in /home/me/progs? > Then I set the environment variables in my bash_profile file. > > ===================== > # > PATH=$HOME/progs/bin:$PATH > > # RDKIT > export RDBASE=$RDBASE:/home/me/download/RDKit_Q22010_1 > export > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$RDBASE/bin:/home/me/download/boost_1_44_0:/home/me/progs/ This probably isn't causing the problems you're having, but I think the correct one would be: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$RDBASE/bin:/home/me/progs/lib > # python > export > PYTHONPATH=$PYTHONPATH:/home/me/work/code/python/general:/home/me/work/code/python:/home/me/progs/lib/python2.5/site-packages:$RDBASE > that looks fine. > Then I tried > > cmake .. > cmake -DBOOST_ROOT=/home/me/progs/ .. > cmake -DBOOST_ROOT=/home/me/download/boost_1_44_0 .. Based on what you have above, I think either of the second two of these should have worked. > I also tried to set the BOOST_ROOT variable in my bach_profile. > > All of these attempts gave the same error message > > ============================ > > CMake Error at /home/me/progs/share/cmake-2.8/Modules/FindBoost.cmake:910 > (message): > Unable to find the requested Boost libraries. > > Boost version: 1.33.1 > > Boost include path: /usr/include > > Detected version of Boost is too old. Requested version was 1.39 (or > newer). > > The following Boost libraries could not be found: > > boost_python > > No Boost libraries were found. You may need to set Boost_LIBRARYDIR to the > directory containing Boost libraries or BOOST_ROOT to the location of > Boost. > Call Stack (most recent call first): > CMakeLists.txt:47 (find_package) > > > CMake Error at /home/me/progs/share/cmake-2.8/Modules/FindBoost.cmake:910 > (message): > Unable to find the requested Boost libraries. > > Boost version: 1.33.1 > > Boost include path: /usr/include > > Detected version of Boost is too old. Requested version was 1.39 (or > newer). > > The following Boost libraries could not be found: > > boost_regex > > No Boost libraries were found. You may need to set Boost_LIBRARYDIR to the > directory containing Boost libraries or BOOST_ROOT to the location of > Boost. > Call Stack (most recent call first): > Code/GraphMol/SLNParse/CMakeLists.txt:5 (find_package) > > > -- Configuring incomplete, errors occurred! > > ============================ > > So cmake does not find my boost libraries. This is a very trivial error, > but I can't figure out what I did wrong in the installation instructions. I'm going to guess that the problem has to do with static vs dynamic versions of the regex library. This has been fixed in the svn version of the code (and will be in the next release) but for now what you can do is edit the file $RDBASE/Code/GraphMol/SLNParse/CMakeLists.txt. Towards the top of that file you will find the line: set(Boost_USE_STATIC_LIBS ON) and towards the bottom you will find: set(Boost_USE_STATIC_LIBS OFF) delete both of those lines and then try re-running cmake. % cmake -DBOOST_ROOT=/home/me/progs/ .. Best Regards, -greg ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rdkit-discuss