Re: [ROOT] error while loading shared libraries

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Mon Feb 10 2003 - 15:07:35 MET


Hi Jens Ivar, 

Jens Ivar Jordre <jensivar.jordre@fi.uib.no> wrote concerning
  Re: [ROOT] error while loading shared libraries [Mon, 10 Feb 2003 13:07:51 +0100] 
----------------------------------------------------------------------
> Hi Tanja.
> 
> I had the same problem some time ago. I found at least three solutions 
> to the problem. You should choose only one of them.

That's a little surprising :-) 
 
> Reconfigure ROOT and add option --libdir=<some std. libdir>. By <some 
> std. libdir> I mean some directory specified in your system's 
> /etc/ld.so.conf. By default ROOT places library files into 
> <prefix>/lib/root, which is also by default not listed in your 
> /etc/ld.so.conf. If your system's /etc/ld.so.conf has /usr/local/lib 
> included that would be the natural directory to specify with --libdir.

Erhm, I'd like to warn against that.  ROOT contains a library called
`libMatrix' which unfortunately is a quite common name - hence you
could unknowingly install the ROOT library over some other packages'
library.   Be wary of these names clashes (Also, libCore, libNew,
libTable, libGeom, and so on ... pretty common names).  Hence we
(Fons and I) opted for the `namespace' of `<prefix>/lib/root'.  

> With superuser privileges you can update your /etc/ld.so.conf with a 
> line containing /usr/local/lib/root. Thereafter you have to rerun 
> ldconfig. Nothing more should be necessary to do.

If people decide to install ROOT into system directories like `/usr'
or `/usr/local', and don't care to have more than I version of `root'
(the executable) installed at a given time, I'd strongly recommend
that you use RPMs or DEBs (whatever appropriate for your GNU/Linux
distro) - it makes management much easier. 

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