Re: [Rdkit-devel] Building rdkit to avoid using LD_LIBRARY_PATH

2013-08-03 Thread Gianluca Sforna
On Sat, Aug 3, 2013 at 12:50 AM, Richard West  wrote:
> (eg. some CMake options I couldn't find or understand)

googling for cmake+rpath gives this:

http://www.cmake.org/Wiki/CMake_RPATH_handling

looks promising, but I am not sure if it is possible to use it without
changes to the project's cmake files


-- 
Gianluca Sforna

http://morefedora.blogspot.com
http://identi.ca/giallu - http://twitter.com/giallu

--
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


[Rdkit-devel] Building rdkit to avoid using LD_LIBRARY_PATH

2013-08-02 Thread Richard West
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/comochengPhone: 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