Error in building ROOT test programs

I installed ROOT on Fedora 5 with gcc 4.1. When I work with ROOT interactively, everything seems working fine. However, when I went into root/test directory and typed “gmake”, then I received the following error messages:

g++ -O -Wall -fPIC -pthread -I/cern/root/include -c Event.cxx
Generating dictionary EventDict.cxx…
rootcint: error while loading shared libraries: libCint.so: cannot open shared object file: No such file or directory
gmake: *** [EventDict.cxx] Error 127

Initially I have tried to build ROOT using root_v5.12.00.source.tar.gz file.
Yes, I tried to execute “gmake cintdlls” twice but I am still getting the same error messages. I have even used the binary download of Intel x86 Linux for Redhat FC5 and gcc 4.1, version 5.12/00 but still getting the same error.

Any comments? Thanks so much.

Hyo

My .bash_profile has the following setup:

export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH

Isn’t this enough? Thanks.

Hyo

After

export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH could you

echo $LD_LIBRARY_PATH to make sure that you do not have multiple ROOT version defined in your path?

Rene

Thank you very much for your help! The following is the one I have for LD_LIBRARY_PATH.

[heahn@linux ~]$ echo $LD_LIBRARY_PATH
/cern/root/lib:/cern/clhep/1.9.2.3/CLHEP/lib:/cern/lib:/usr/local/lib:

However, sometime, strangely I do have nothing for LD_LIBRARY_PATH.
If I do source .bash_profile, then it is working o.k.
Yes, if the LD_LIBRARY_PATH variable is set, then the error disappears.
Do you have any ideas why .bash_profile is working sometimes and not working other time? My bash_profile is shown below. Thanks.

Hyo


.bash_profile

Get the aliases and functions

if [ -f ~/.bashrc ]; then

    . ~/.bashrc

fi

User specific environment and startup programs

PATH=$PATH:$HOME/bin:/cern/bin:usr/local/lib

LIBRARY_PATH=/cern/lib:/usr/local/lib:$LIBRARY_PATH

LD_LIBRARY_PATH=$LIBRARY_PATH

######################### GEANT4 ############################

source /cern/geant4/geant4.8.1.p01/env.sh

export G4WORKDIR=$HOME/g4work

export G4BIN=$HOME/g4work/bin

export PATH=$HOME/g4work/bin/$G4SYSTEM:$PATH

export LD_LIBRARY_PATH=$CLHEP_BASE_DIR/lib:$LD_LIBRARY_PATH

######################### ROOT ##############################

#export ROOTINCLUDE=/cern/root/include

export ROOTSYS=/cern/root

export PATH=$ROOTSYS/bin:$PATH

export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH

#############################################################

unset USERNAME