Problem running ROOT 5.27.06 on lxplus [RESOLVED]

Hi,

I am trying to setup ROOT 5.27.06 (need the latest RooFit) on lxplus as it says in this documentation page, and run into weird problems:

http://root.cern.ch/drupal/content/development-version-52706

My default shell is bash. I setup the environment by doing

[lxplus304] /afs/cern.ch/user/k/kukartse >  uname -a
Linux lxplus304.cern.ch 2.6.18-194.11.3.el5.cve20103081 #1 SMP Thu Sep 16 15:17:10 CEST 2010 x86_64 x86_64 x86_64 GNU/Linux

. /afs/cern.ch/sw/lcg/contrib/gcc/4.3/x86_64-slc5/setup.sh

. /afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.06/x86_64-slc5-gcc43-opt/root/bin/thisroot.sh

export PATH=/afs/cern.ch/sw/lcg/contrib/gcc/4.3.2/x86_64-slc5-gcc34-opt/bin:${PATH}

export LD_LIBRARY_PATH=/afs/cern.ch/sw/lcg/contrib/gcc/4.3.2/x86_64-slc5-gcc34-opt/lib:${LD_LIBRARY_PATH}

Now I have these PATH, LD_LIBRARY_PATH and PYTHONPATH:

[lxplus304] /afs/cern.ch/user/k/kukartse > echo $PATH
/afs/cern.ch/sw/lcg/contrib/gcc/4.3.2/x86_64-slc5-gcc34-opt/bin:/afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.06/x86_64-slc5-gcc43-opt/root/bin:autolist/gcc/4.3.2/x86_64-slc5-gcc34-opt/bin:/afs/cern.ch/user/k/kukartse:/afs/cern.ch/user/k/kukartse/bin:/afs/cern.ch/user/k/kukartse/scripts:/usr/sue/bin:/afs/cern.ch/cms/bin/amd64_linux26:/afs/cern.ch/cms/system/bin:/usr/local/bin:/usr/local/bin/X11:/usr/bin:/bin:/usr/bin/X11:/cern/pro/bin:/afs/cern.ch/cms/caf/scripts:/afs/cern.ch/cms/common:/afs/cern.ch/cms/bin:/afs/cern.ch/cms/utils:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin

[lxplus304] /afs/cern.ch/user/k/kukartse > echo $LD_LIBRARY_PATH
/afs/cern.ch/sw/lcg/contrib/gcc/4.3.2/x86_64-slc5-gcc34-opt/lib:/afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.06/x86_64-slc5-gcc43-opt/root/lib:autolist/gcc/4.3.2/x86_64-slc5-gcc34-opt/lib64:autolist/mpfr/2.3.1/x86_64-slc5-gcc34-opt/lib:autolist/gmp/4.2.2/x86_64-slc5-gcc34-opt/lib

[lxplus304] /afs/cern.ch/user/k/kukartse > echo $PYTHONPATH
/afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.06/x86_64-slc5-gcc43-opt/root/lib

I now try to run root and get

[lxplus304] /afs/cern.ch/user/k/kukartse > root -l
/afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.06/x86_64-slc5-gcc43-opt/root/bin/root.exe: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.06/x86_64-slc5-gcc43-opt/root/lib/libCore.so)

/afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.06/x86_64-slc5-gcc43-opt/root/bin/root.exe: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.06/x86_64-slc5-gcc43-opt/root/lib/libCint.so)

/afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.06/x86_64-slc5-gcc43-opt/root/bin/root.exe: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.06/x86_64-slc5-gcc43-opt/root/lib/libMathCore.so)

/afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.06/x86_64-slc5-gcc43-opt/root/bin/root.exe: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.06/x86_64-slc5-gcc43-opt/root/lib/libRint.so)

I check that I run the right root just in case:

[lxplus304] /afs/cern.ch/user/k/kukartse > which root

/afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.06/x86_64-slc5-gcc43-opt/root/bin/root

Basically, it tries to load libstdc++.so.6 from the system area no matter what I do. I have even tried to set LD_PRELOAD, and it says it cannot load from there. I’ve checked setuid/setgid, and they are not set, so it should pick up from LD_LIBRARY_PATH.

Any ideas what am I doing wrong?

Also, a friend of mine has tcsh as default and he configured successfully but even then it segfaults if he tries to run a pyROOT script, basically at the “import ROOT” statement

Hi,

the lib path that you add to LD_LIBRARY_PATH isn’t the correct one. Use:

/afs/cern.ch/sw/lcg/contrib/gcc/4.3.2/x86_64-slc5-gcc34-opt/lib64

instead (note the last dir is lib64, not lib).

Cheers,
Wim

Yep, that did it. Thanks again, Wim.