Problem setting up ROOT 5.34 in LXPLUS

Dear ROOT experts.

I want to use the ROOT version 5.34 that is at

/afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.26/x86_64-slc6-gcc48-opt/

I have the following script in my .tcshrc

Setting ROOT 5.34

if ( -r /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.26/x86_64-slc6-gcc48-opt/root/bin/thisroot.csh ) then
echo "Loading ROOT 5.34"
cd /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.26/x86_64-slc6-gcc48-opt/root/; source bin/thisroot.csh
endif

The script loads normaly, however, when I do

root-config --incdir

it returns

/usr/include/root

The problem is that the PATH variable contains a wrong ROOT directory (that was set by the script inside .tcshrc)

PATH= … /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.26/x86_64-slc6-gcc48-opt/bin …

but the right path should be

PATH= … /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.26/x86_64-slc6-gcc48-opt/root/bin

Should I execute another script to set-up LXPLUS to work with root v 5.34?

Thanks!
Javier

Hi,

the recommended way to set up the environment is

. /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.26/
. /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.26/x86_64-slc6-gcc48-opt/root/bin/thisroot.sh          

Cheers,
Danilo

I cannot reproduce de the problem. You need to ensure that ROOTSYS is not set, in particular not set to empty.

$ unsetenv ROOTSYS
$ source /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.26/x86_64-slc6-gcc48-opt/root/bin/thisroot.csh
$ echo $PATH /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.26/x86_64-slc6-gcc48-opt/root/bin:...

$ root-config --incdir
/afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.26/x86_64-slc6-gcc48-opt/root/include

Do NOT “unsetenv ROOTSYS” (nor “unset ROOTSYS” in “[b][ak]sh”). The “bin/thisroot.[c]sh” scripts are expected to remove any “old” existing ROOT related entries in all relevant environment variables before adding “new” ones.

Unfortunately the .csh script suffers from a bug when ROOTSYS is defined but empty, which is my case. I agree that in general you do not need to do it.

I created a bug report:
sft.its.cern.ch/jira/browse/ROOT-7477