Hi Axel, this is done when building via ./configure linux --enable-rpath When dynamic loading via gSystem->Load() or the plugin manager $ROOTSYS/lib is used, however the system dynamic loader does not know anything about $ROOTSYS/lib unless set via LD_LIBRARY_PATH. -- Fons On Mon, 2003-03-17 at 15:02, Axel Naumann wrote: > Hi, > > I can't answer your question, but I can ask a related one: Is there a > reason why $ROOTSYS/lib is not searched for libraries during runtime? If I > remember correctly this feature was added to win32, but it seems to be > lacking in TUnixSystem. It would save the user from setting set > LD_LIBRARY_PATH. > > Cheers, Axel. > > Some time ago, Andy Buckley decided to write: > > > > I'm having the following problem when installing ROOT v3.05.03 from > > source on to a Linux (RedHat 7.3) PC with the following configure > > options (run in directory ~lhcb/tmp): > > > > ./configure linux --with-shift-libdir=/lhcb/sw/lib/rh73_gcc2952 > > --prefix=/lhcb/software/sw/packages/ROOT/v3.05.03/rh73_gcc2952/root > > > > all configures, compiles and installs happily but when I attempt to run > > ROOT I have problems: > > > > buckley@pcda:~$ root (this points to the newly installed version) > > /lhcb/software/sw/packages/ROOT/v3.05.03/rh73_gcc2952/root/bin/root.exe: > > error while loading shared libraries: libCore.so: cannot open shared > > object file: No such file or directory > > > > while the libCore.so file clearly exists: > > > > buckley@pcda:~$ ls > > /lhcb/software/sw/packages/ROOT/v3.05.03/rh73_gcc2952/root/lib/root/ > > libCint.so libGX11.so libMinuit.so libRLDAP.so > > libCore.so libGX11TTF.so libMySQL.so libThread.so > > libEG.so libHbook.so libNew.so libTreePlayer.so > > libGeomPainter.so libHistPainter.so libPhysics.so libTree.so > > libGeom.so libHist.so libPostscript.so libTreeViewer.so > > libGpad.so libHtml.so libProof.so libX3d.so > > libGraf3d.so libKrb5Auth.so libRFIO.so > > libGraf.so libMatrix.so libRGL.so > > libGui.so libMC.so libRint.so > > > > Any suggestions as to how I can fix this problem and make ROOT find its > > libraries at runtime? > > > > Cheers, > > Andy > > > > -- > > Andy Buckley, HEP Group, Cavendish Lab, Cambridge > > http://www.insectnation.co.uk -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET