Re: installing root 5 a user with gcc 4

From: Maurizio Panniello <>
Date: Mon, 29 May 2006 19:25:11 +0100

Thanks Christian,
I "solved" (root seem to work correctly) the problem including the path to in the LD_LIBRARY_PATH. I'm relatively sure that no enviroment variable points to the path /usr/local/lib/ so i can't imagine how root have found the existence of this library!

The library is only used in the ASImage libs (libASImageGui, libASImage and libASPluginGS)


bash-3.00$ ldd => /usr/lib/ (0xb7edd000) => /usr/lib/ (0xb7e91000) => /usr/lib/ (0xb7e6e000) => /usr/X11R6/lib/ (0xb7e5f000) => /usr/X11R6/lib/ (0xb7d98000) => /usr/local/lib/ (0xb7d36000) => /lib/tls/ (0xb7d12000) => 

/scratch/maurizio/local_install/programs/gcc-4.0.3/lib/ (0xb7d07000) => /lib/tls/ (0xb7bdd000) => /usr/lib/ (0xb7bcd000) => /usr/X11R6/lib/ (0xb7bbf000) => /lib/ (0xb7bba000)
        /lib/ (0x002e1000)


>Hi Maurizio,
>On Mon, 2006-05-29 at 12:59 +0100, Maurizio Panniello wrote:
>>Hi, i'm tring to install root 5.10/00 as user but using the gcc 4
>>(compiled as user too), so i set these envirmoent before compile root:
>>PATH gcc4path + "/bin"
>>LD_LIBRARY_PATH gcc4path + "/lib"
>>CPPFLAGS "-I" + gcc4path + "/include"
>>LDFLAGS "-L" + gcc4path + "/lib"
>>(this is pseudocode, not csh nor bash)
>>I'm on a RH 3.4 linux.
>>Than i configure root and than make, make cintdlls, make install, all as
>>It seem like root is stil searching for old std c++ libraries (dlopen
>>error: cannot open shared object file: No such file or
>>but it should not use thats (isn't it?)
>Perhaps a few lines from your build would be good.
>Also, try to compile a small program using your private GCC
>installation, and use the `-V' option to see all the stuff going on.
>So do something like
> cat > <<EOF
> #include <iostream>
> int main()
> {
> std::cout << "Hello, World" << std::endl;
> return 0;
> }
> g++ -V -o testit
>(no pseudo-code - the above is executable :-)
>And try to run the program. Also check with `ldd' that it depends on
>the proper Standard C++ library. If any of this fails, it's due to
>your build of GCC.
>>dlopen error: cannot open shared object file: No such
>>file or directory
>>Load Error: Failed to load Dynamic link library
>>Error in <TGComboBox::TGComboBox>: arrow_down.xpm not found
>>Error in <TPluginHandler::SetupCallEnv>: class TASImage not found in
>>plugin ASImage
>>Error in <TGVScrollBar::TGHScrollBar>: arrow_*.xpm not found
>>Error in <TGTreeLBEntry::TGTreeLBEntry>: icon not found for entry
>Aha, so it's because libASImage was compiled using the `older' GCC
>compiler (most likely at least). `ldd' libASImage to see the
>dependecies. Could be a problem in the ROOT build, or because a
>sub-shell. Check that you do not set PATH, LD_LIBRARY_PATH, or similar
>in `.bashrc', `.cshrc', `.tcshrc', or similar. also make sure that none
>of the system versions of these resets any of these environment
>Note to all: Setting environment variables should _only_ be done in
>login scripts. You may end up messing up your machine if you set
>environment variables in your `.bashrc', `.cshrc', `.tcshrc', or
Received on Mon May 29 2006 - 20:25:21 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET