GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » error starting Pandaroot and running macros (root command was not recognized by the terminal)
error starting Pandaroot and running macros [message #23945] Thu, 16 May 2019 07:28 Go to next message
AbTomer is currently offline  AbTomer
Messages: 2
Registered: April 2019
Location: Surat
occasional visitor
From: 14.139.121*
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/b uildPanda$ ./config.sh
System during compilation: Ubuntu 18.04.2 LTS
x86_64
System now : Ubuntu 18.04.2 LTS
x86_64
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/b uildPanda$ echo SIMPATH
SIMPATH
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/b uildPanda$ echo $SIMPATH

newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/b uildPanda$ echo $FAIRROOTPATH

newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/b uildPanda$ cd ..
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot$ cd tutorials/rho
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ ./tut_runall.sh
./tut_runall.sh: line 24: root: command not found
./tut_runall.sh: line 25: root: command not found
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ root -l -b -q tut_sim.C

Command 'root' not found, did you mean:

command 'roo' from snap roo (2.0.3)
command 'toot' from snap toot (0.20.0)
command 'rott' from deb rott
command 'rootv' from deb xawtv
command 'proot' from deb proot

See 'snap info <snapname>' for additional versions.

newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ ~/fair/buildFairSoft/bin/root
------------------------------------------------------------
| Welcome to ROOT 6.12/06 http://root.cern.ch |
| (c) 1995-2017, The ROOT Team |
| Built for linuxx8664gcc |
| From tags/v6-12-06@v6-12-06, Apr 03 2019, 14:45:00 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------

root [0] tut_sim.C
input_line_11:2:3: error: use of undeclared identifier 'tut_sim'
(tut_sim)
^
Error in <HandleInterpreterException>: Error evaluating expression (tut_sim).
Execution of your code was aborted.
root [1] .x tut_sim.C
In file included from input_line_12:1:
/home/newapd/fair/fairsoft_may18/pandaroot/tutorials/rho/tut_sim.C:26:3: error: unknown type name 'PndMasterRunSim'
PndMasterRunSim *fRun = new PndMasterRunSim();
^
/home/newapd/fair/fairsoft_may18/pandaroot/tutorials/rho/tut_sim.C:26:31 : error: unknown type name 'PndMasterRunSim'
PndMasterRunSim *fRun = new PndMasterRunSim();
^
/home/newapd/fair/fairsoft_may18/pandaroot/tutorials/rho/tut_sim.C:40:3: error: unknown type name 'FairFilteredPrimaryGenerator'
FairFilteredPrimaryGenerator *primGen = fRun->GetFilteredPrimaryGenerator();
^
root [2]


QCD
Re: error starting Pandaroot and running macros [message #23947 is a reply to message #23945] Thu, 16 May 2019 07:42 Go to previous messageGo to next message
Tobias Stockmanns is currently offline  Tobias Stockmanns
Messages: 489
Registered: May 2007
first-grade participant
From: *nc.de
Your path name looks suspicious with a space in "b uildPanda".
In addition you have to source the config.sh by calling ". ./config.sh"
Your SIMPATH and your FAIRROOTPATH are not set.
Re: error starting Pandaroot and running macros [message #23949 is a reply to message #23945] Thu, 16 May 2019 08:09 Go to previous message
AbTomer is currently offline  AbTomer
Messages: 2
Registered: April 2019
Location: Surat
occasional visitor
From: 14.139.121*
I exported all the commands in config.sh. ran config.sh as well, then started rootshell to find the FairRoot commands not being recognized. TBrowser opened fine.
How to make sure root recognize FariRoot commands.

commands on the terminal to export all the path in config.sh
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export SIMPATH="/home/newapd/fair/buildFairSoft"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export ROOTSYS="/home/newapd/fair/buildFairSoft/bin"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export FAIRROOTPATH="/home/newapd/fair/fairsoft_may18/installFairRoot-v18.0.4/ "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT4_LIBRARY_DIR="/home/newapd/fair/buildFairSoft/lib"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT4_INCLUDE_DIR=" /home/newapd/fair/buildFairSoft/include/Geant4:/home/newapd/fair/buildFa irSoft//transport/geant4/source/interfaces/common/include:/home/newapd/f air/buildFairSoft//transport/geant4/physics_lists/hadronic/Packaging/inc lude:/home/newapd/fair/buildFairSoft//transport/geant4/physics_lists/had ronic/QGSP/include "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT4VMC_INCLUDE_DIR="/home/newapd/fair/buildFairSoft/include/geant4vmc "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT4VMC_LIBRARY_DIR="/home/newapd/fair/buildFairSoft/lib"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT4VMC_MACRO_DIR="GEANT4VMC_MACRO_DIR-NOTFOUND"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export CLHEP_INCLUDE_DIR="/home/newapd/fair/buildFairSoft/include/Geant4"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export CLHEP_LIBRARY_DIR="/home/newapd/fair/buildFairSoft/lib"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export CLHEP_BASE_DIR=""
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export PLUTO_LIBRARY_DIR=""
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export PLUTO_INCLUDE_DIR=""
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export PYTHIA6_LIBRARY_DIR="/home/newapd/fair/buildFairSoft/lib"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G3SYS="/home/newapd/fair/buildFairSoft/share/geant3"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT3_INCLUDE_DIR="/home/newapd/fair/buildFairSoft/include/TGeant3"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT3_LIBRARY_DIR="/home/newapd/fair/buildFairSoft/lib"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT3_LIBRARIES="/home/newapd/fair/buildFairSoft/lib/libgeant321.so"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export USE_VGM="1"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export PYTHIA8DATA="/home/newapd/fair/buildFairSoft//share/pythia8/xmldoc"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export CLASSPATH=""
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4LEDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/G4EMLOW"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4LEVELGAMMADATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/PhotonEvaporation "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4NeutronHPCrossSections="/home/newapd/fair/buildFairSoft/share/Geant4/data/G4NDL "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4NEUTRONHPDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/G4NDL "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4NEUTRONXSDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/G4NEUTRONXS "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4PIIDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/G4PII"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4RADIOACTIVEDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/RadioactiveDecay "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4REALSURFACEDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/RealSurface "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4SAIDXSDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/G4SAIDDATA "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4ENSDFSTATEDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/G4ENSDFSTATE "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ echo $SIMPATH
/home/newapd/fair/buildFairSoft
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export ROOT_LIBRARY_DIR="/home/newapd/fair/buildFairSoft/lib/root"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export ROOT_LIBRARIES="-L/home/newapd/fair/buildFairSoft/lib/root -lGui -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -pthread -Wl,-rpath,/home/newapd/fair/buildFairSoft/lib/root -lm -ldl -rdynamic"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export ROOT_INCLUDE_DIR="/home/newapd/fair/buildFairSoft/include/root"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export ROOT_INCLUDE_PATH=" /home/newapd/fair/buildFairSoft/include/TGeant3:/home/newapd/fair/fairso ft_may18/installFairRoot-v18.0.4/include "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export VMCWORKDIR="/home/newapd/fair/fairsoft_may18/pandaroot"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export FAIRLIBDIR="/home/newapd/fair/fairsoft_may18/pandaroot/buildPanda/lib"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export PYTHONPATH=" /home/newapd/fair/fairsoft_may18/pandaroot/python:/home/newapd/fair/buil dFairSoft//lib:/home/newapd/fair/buildFairSoft//lib/root:/home/newapd/fa ir/buildFairSoft//lib/Geant4:/home/newapd/fair/buildFairSoft//lib/g4py "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ ~/fair/buildFairSoft/bin/root
------------------------------------------------------------
| Welcome to ROOT 6.12/06 http://root.cern.ch |
| (c) 1995-2017, The ROOT Team |
| Built for linuxx8664gcc |
| From tags/v6-12-06@v6-12-06, Apr 03 2019, 14:45:00 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------

root [0] .x tut_sim.C
In file included from input_line_10:1:
/home/newapd/fair/fairsoft_may18/pandaroot/tutorials/rho/tut_sim.C:26:3: error: unknown type name 'PndMasterRunSim'
PndMasterRunSim *fRun = new PndMasterRunSim();
^
/home/newapd/fair/fairsoft_may18/pandaroot/tutorials/rho/tut_sim.C:26:31 : error: unknown type name 'PndMasterRunSim'
PndMasterRunSim *fRun = new PndMasterRunSim();
^
/home/newapd/fair/fairsoft_may18/pandaroot/tutorials/rho/tut_sim.C:40:3: error: unknown type name 'FairFilteredPrimaryGenerator'
FairFilteredPrimaryGenerator *primGen = fRun->GetFilteredPrimaryGenerator();
^
root [1] TBrowser t
(TBrowser &) Name: Browser Title: ROOT Object Browser
root [2] .q


QCD
Previous Topic: Error in PandaRoot_18p1 installation
Next Topic: NYX phases out
Goto Forum:
  


Current Time: Fri Nov 22 09:46:23 CET 2024

Total time taken to generate the page: 0.00644 seconds