Hi rooters,
I am trying to run Pythia 8 as a plug in to root.
I am using Mac OS X Yosemite.
I downloaded and installed pythia with following commands
./configure --enable shared
make
and then even ran an example and it worked well.
Then I installed root with following commands
./configure --enable-pythia8 --with-pythia8-incdir=$PYTHIA8/include --with-pythia8-libdir=$PYTHIA8/lib
make
it all worked well, root starts and runs demos perfectly and then I tried to run an example of Pythia under tutorials directory by the command
$root /root/tutorials/pythia/pythia8.C
following is the list of errors generated
root [0]
Processing /Users/Umang/pythia_root/root/tutorials/pythia/pythia8.C…
cling::DynamicLibraryManager::loadLibrary(): dlopen(/Users/Umang/root_pythia/root/lib/libEGPythia8.so, 9): Library not loaded: libpythia8.dylib
Referenced from: /Users/Umang/root_pythia/root/lib/libEGPythia8.so
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libEGPythia8.so for TPythia8
cling::DynamicLibraryManager::loadLibrary(): dlopen(/Users/Umang/root_pythia/root/lib/libEGPythia8.so, 9): Library not loaded: libpythia8.dylib
Referenced from: /Users/Umang/root_pythia/root/lib/libEGPythia8.so
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libEGPythia8.so for TPythia8
cling::DynamicLibraryManager::loadLibrary(): dlopen(/Users/Umang/root_pythia/root/lib/libEGPythia8.so, 9): Library not loaded: libpythia8.dylib
Referenced from: /Users/Umang/root_pythia/root/lib/libEGPythia8.so
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libEGPythia8.so for TPythia8
cling::DynamicLibraryManager::loadLibrary(): dlopen(/Users/Umang/root_pythia/root/lib/libEGPythia8.so, 9): Library not loaded: libpythia8.dylib
Referenced from: /Users/Umang/root_pythia/root/lib/libEGPythia8.so
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libEGPythia8.so for TPythia8
cling::DynamicLibraryManager::loadLibrary(): dlopen(/Users/Umang/root_pythia/root/lib/libEGPythia8.so, 9): Library not loaded: libpythia8.dylib
Referenced from: /Users/Umang/root_pythia/root/lib/libEGPythia8.so
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libEGPythia8.so for TPythia8
In file included from input_line_9:1:
/Users/Umang/pythia_root/root/tutorials/pythia/pythia8.C:47:4: error: unknown
type name 'TPythia8’
TPythia8* pythia8 = new TPythia8();
^
/Users/Umang/pythia_root/root/tutorials/pythia/pythia8.C:47:28: error: unknown
type name 'TPythia8’
TPythia8* pythia8 = new TPythia8();
^
/Users/Umang/pythia_root/root/tutorials/pythia/pythia8.C:65:10: error: unknown
type name 'TParticle’
TParticle* part = (TParticle*) particles->At(ip);
^
/Users/Umang/pythia_root/root/tutorials/pythia/pythia8.C:65:29: error: use of
undeclared identifier 'TParticle’
TParticle* part = (TParticle*) particles->At(ip);
^
/Users/Umang/pythia_root/root/tutorials/pythia/pythia8.C:65:39: error: expected
expression
TParticle* part = (TParticle*) particles->At(ip);
^
/Users/Umang/pythia_root/root/tutorials/pythia/pythia8.C:70:27: error: use of
undeclared identifier 'TDatabasePDG’
Float_t charge = TDatabasePDG::Instance()->GetParticle(pdg)->Charge();
^
root [1]
please help friends.
Thanks