[Rdkit-devel] Building rdkit to avoid using LD_LIBRARY_PATH
Open-Source Cheminformatics and Machine Learning
Brought to you by:
glandrum
|
From: Richard W. <r.h...@gm...> - 2013-08-02 22:50:51
|
I am using RDKit as part of a web app, and when running on a shared web server I do not have control over the LD_LIBRARY_PATH of the Apache process. This made it rather hard to get working using the regular installation instructions, leading to lots of undefined symbol ImportErrors. I tried various CMake options, but couldn't get it to set or leave the RPATH intact when installing. I finally found a way, using patchelf (http://nixos.org/patchelf.html) to re-set the RPATH on each of the compiled library files. Something like: $ cd $RDBASE $ find . -name \*.so -exec patchelf --set-rpath $RDBASE/lib {} \; and have finally got it working. Is there a better way to do this? (eg. some CMake options I couldn't find or understand) Thanks, Richard -- Richard H. West, Ph.D. r....@ne... Assistant Professor, Chemical Engineering Department, Northeastern University, 360 Huntington Ave, Boston, MA 02115 http://neu.edu/comocheng Phone: 617-373-5163 |