Re: [ROOT] Error loading share libraries

From: Christian Holm Christensen (cholm@nbi.dk)
Date: Wed Oct 27 2004 - 02:20:21 MEST


Hi,

On Tue, 2004-10-26 at 23:34 +0200, Rene Brun wrote:
> Is the place where you installed the libraries in your LD_LIBRARY_PATH ?

Or is `/usr/local/lib/root' in the search path of the runtime linker
(ld.so on GNU/Linux, with search paths set in /etc/ld.so.conf, via the
environment variable LD_LIBRARY_PATH, or by setting the rpath on the
executable).  

> Rene Brun
> 
> On 
> Tue, 26 Oct 2004, Jorge A Benitez wrote:
> 
> > Hello,
> > I just installed root version 4.00/08. from source files. but when I try 
> > to run it giving me the following error message.
> > 
> > ./root.exe: error while loading shared libraries: libCore.so: cannot 
> > open shared object file: No such file or directory
> > 
> > the installation procedure was:
> > 
> > ./configure linux --prefix=/usr/local

Your probably also want to pass the option `--enable-rpath' to the
configure script.    But please read the README/INSTALL file for more on
this.   In particular, you should really also use the options
`--enable-soversion --enable-explicitlink' too.  Perhaps these two
options should be set by default when using `--prefix' installs, as
that's the behaviour that people expect from the normal 

	./configure --prefix=...
	make 
	make install 

installation sequence. 

In fact, I think --enable-soversion should be on by default. 

BTW, is there any plans for CINT to be allow loading of shared libraries
with filenames ending in something like `.so.4.01'?  If CINT could do
that, then one could have multiple version of the ROOT libraries
installed in the same directory - which can be quite useful sometimes. 

> > gmake
> > 
> > gmake install
> > 
> > Is there any way to solve this? or should I reinstall root.

Yes.  Clean the binaries and libraries with 

	cd <where your ROOT source tree is> 
	rm bin/* lib/* 
	
and do 

	./configure --prefix=/usr/local \
		    --enable-rpath \
		    --enable-explicitlink \
		    --enable-soversion 
	make 
	make install 

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 404
 ____|   Email:   cholm@nbi.dk               Web:    www.nbi.dk/~cholm
 | |



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET