[ROOT] running root in batch

From: Edward Moyse (edward.moyse@cern.ch)
Date: Mon Jun 30 2003 - 16:51:14 MEST


Hi,

I'm trying to run ROOT in batch, but I get the following error:
/afs/cern.ch/sw/root/v3.05.05/rh73_gcc296/root/bin/root.exe: relocation error: 
/
afs/cern.ch/sw/root/v3.05.05/rh73_gcc296/root/lib/libCore.so: undefined 
symbol:
__dynamic_cast_2

Does anyone know why?

I've enclosed the script below, and it was submitted using 

bsub -q8nm batchElectrons.sh

Needless to say it works fine when run locally (or I wouldn't be so confused). 

Cheers,

Ed
-------------------------- batchElectrons.sh

#!/bin/zsh

cat /etc/redhat-release

export ROOTSYS=/afs/cern.ch/sw/root/v3.05.05/rh73_gcc296/root
export PATH=$PATH:$ROOTSYS/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib


echo "Copying files"
cp 
/afs/cern.ch/user/e/emoyse/public/analysis/Trigger/TrigAnalysis/TrigNtEgamma/
TrigNtEgamma-00-00-10/Root/Analysis* ./
cp 
/afs/cern.ch/user/e/emoyse/public/analysis/Trigger/TrigAnalysis/TrigNtEgamma/
TrigNtEgamma-00-00-10/Root/*.C ./



echo directory
pwd
ls

echo "starting ROOT"
root -b batchElectrons.C

ls

echo "copying outputted file"
cp *.root /afs/cern.ch/user/e/emoyse/scratch0


--------------- batchElectrons.C
{
gROOT->LoadMacro("Analysis.C");
Analysis* s = new Analysis;
s->Loop();
}



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET