Re: TSystem::Load doesn't process LD_LIBRARY_PATH (IRIX)

From: Pasha Murat (murat@cdfsga.fnal.gov)
Date: Sun Sep 28 1997 - 20:03:54 MEST


Fons Rademakers writes:
 > Hi Pasha,
 > 
 >    you can set the library search path for your root app in your
 > .rootrc file:
 > 
 > Unix.*.Root.DynamicPath:    .:~/rootlibs:$ROOTSYS/lib
 > 
 > I could add the LD_LIBRARY_PATH to it, but LD_LIBRARY_PATH is
 > not portable. AIX uses LIBPATH and HP-UX uses SHLIB_PATH.
 > 
 > I think with Root.DynamicPath you have more specific control.
 > However, if you really insist I can add LD_LIBRARY_PATH
 > to the Root.DynamicPath string.


	Hi Fons, 

what's wrong the example below then(I defined Unix*.Root.DynamicPath to include
LD_LIBRARY_PATH, however still am not able to load the library)?

				Thanks, Pasha
--------------------------------------------------------------------------------
/cdf/upgrade/tracking/murat/g3/test/evd>root
No default font loaded 
  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   1.03/03 12 September 1997   *
  *            Development version          *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************

CINT/ROOT C/C++ Interpreter version 5.13.24, Aug 24 1997
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] gSystem->Getenv("LD_LIBRARY_PATH")
(char* 0x7ffeef61)"/cdf/upgrade/root/v0_00/lib:/spool2/gnu/tcl/v8_0a2/lib:/spool2/gnu/tk/v8_0a2/lib:/spool2/gnu/python/Python-1.4/lib/python1.4/sharedmodules:/cdf/upgrade/tracking/murat/g3/test/lib/IRIX6/shared"
root [1] gEnv->Print()                     
Unix.*.Root.MacroPath:    : .:~/root_macros:$ROOTSYS/macros:$ROOTSYS/tutorials [User]
Unix*.Root.DynamicPath:   : .:~/rootlibs:$LD_LIBRARY_PATH [User]
Root.Html.OutputDir:      : /cdf/upgrade/tracking/murat/g3/test/linalg/Root/html [User]
Root.Html.SourceDir:      : .:$ROOTSYS/source            [User]
root [2] gSystem->Exec("ls -l /cdf/upgrade/tracking/murat/g3/test/lib/IRIX6/shared")
total 5653
-rw-r--r--    1 murat    cdfupg_d  144068 Sep 28 10:48 ACppcmodule.so
-rw-r--r--    1 murat    cdfupg_d  259860 Sep 28 10:57 cotcmodule.so
-rw-r--r--    1 murat    cdfupg_d  790872 Sep 28 11:42 libevd_s.so
-rw-r--r--    1 murat    cdfupg_d 1157276 Sep 21 21:31 liblinalg.so
-rw-r--r--    1 murat    cdfupg_d  222884 Sep 28 10:48 tryboscmodule.so
-rw-r--r--    1 murat    cdfupg_d  317832 Sep 28 10:48 yboscmodule.so
(Int_t)0
root [3] gSystem->Load("liblinalg.so")
(int)1
--------------------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:21 MET