Hi Tanja,
Tanja Striepling <tanja@ikp.uni-koeln.de> wrote concerning
Re: [ROOT] error while loading shared libraries [Mon, 10 Feb 2003 11:41:10 +0100 (CET)]
----------------------------------------------------------------------
> As I have said I install ROOt in /usr/local,thus I assume that $ROOTSYS
> then must be /usr/local, and therefor LD_LIBRARY_PATH should be /usr/local/lib.
> Unfortunatly, that does not work.
>
> Any suggestions, what's wrong?
It depends on how you configure the ROOT source tree. If you do
./configure linux ...
Then you need to set ROOTSYS and LD_LIBRARY_PATH appropriately.
However, if you do
./configure linux --prefix=/usr/local ...
You need to make the loader aware of /usr/local/lib/root. There are 3
ways of doing that (in order of priority):
1) Add the directory `/usr/local/lib/root' to your `/etc/ld.so.conf'
2) Add the directory in runtime path of the executables. Do that by
configuring the ROOT source tree with
./configure linux --prefix=/usr/local --enable-rpath ...
3) Set the environment variable LD_LIBRARY_PATH to contain
`/usr/local/lib/root'.
If you build RPMs of ROOT, then ROOT is installed in `/usr' and 1) is
done automatically for you. Basically, you need to do
make redhat
(cd .. && (mv root root-3.xx.yy && \
tar -czf root-3.xx.yy.source.tar.gz root-3.xx.yy && \
rpm -ta root-3.xx.yy.source.tar.gz root-3.xx.yy/root.spec))
but please refer to `README/INSTALL' for more details.
Yours,
___ | Christian Holm Christensen
|_| | -------------------------------------------------------------
| | Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91
_| DK-2200 Copenhagen N Cell: (+45) 24 61 85 91
_| Denmark Office: (+45) 353 25 305
____| Email: cholm@nbi.dk Web: www.nbi.dk/~cholm
| |
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET