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.w...@neu.edu
Assistant Professor, Chemical Engineering Department,
Northeastern University, 360 Huntington Ave, Boston, MA 02115
http://neu.edu/comocheng    Phone: 617-373-5163
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Rdkit-devel mailing list
Rdkit-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-devel

Reply via email to