GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » dlopen error
dlopen error [message #12949] Mon, 23 January 2012 08:09 Go to next message
Ajay Kumar is currently offline  Ajay Kumar
Messages: 102
Registered: December 2011
Location: indore
continuous participant

From: *

Now I installed pandaroot version whatever given by you still I am getting that dlopen error:-
dlopen error: cannot open shared object file: No such file or directory
Load Error: Failed to load Dynamic link library /home/physiclab4/fairsoft2/tools/root/lib/

then i have added the following line

gSystem->Load("/home/physiclab4/fairsoft2/generator/lib/") in the file run_sim_tpccombi.C

then that above error is not there. But I am getting the following error-

Processing run_sim_tpccombi.C...
Error: Symbol FairRunSim is not defined in current scope run_sim_tpccombi.C:14:
Error: Symbol FairRunSim is not defined in current scope run_sim_tpccombi.C:14:
Error: type FairRunSim not defined FILE:/home/physiclab4/pandaroot3/tutorials/charmonium/jul10/./run_sim_tp ccombi.C LINE:14
Warning: Automatic variable FairRunSim*fRun is allocated run_sim_tpccombi.C:14:
Error: Undeclared variable FairRunSim*fRun run_sim_tpccombi.C:14:

So where is the problem?

Research scholar
Indian Institute of Technology Indore,Indore
Madhya Pradesh
Re: dlopen error [message #12950 is a reply to message #12949] Mon, 23 January 2012 08:13 Go to previous messageGo to next message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: *

Just to make sure: Did you load the

It contains the library paths to your pandaroot installation.


[Updated on: Mon, 23 January 2012 08:13]

Report message to a moderator

Re: dlopen error [message #12951 is a reply to message #12949] Mon, 23 January 2012 09:40 Go to previous message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *

you probably have already checked if the Pythia library exist. If is where you expect the library to be, please check if expect the library at that location. This can be done on Linux using ldd

ldd /home/physiclab4/fairsoft2/tools/root/lib/

on Mac OS us otool

otool -L /home/physiclab4/fairsoft2/tools/root/lib/

The output looks like => (0x00007fff3d3ff000) => not found => /usr/lib/ (0x00007f884d032000) => /lib/ (0x00007f884cdaf000) => /lib/ (0x00007f884cb99000) => /lib/ (0x00007f884c838000)
/lib64/ (0x00007f884d598000)

You can get from this some info. First of all there are fixed libraries, e.g. the c library which are expected at a defined location here in /lib and there are
libraries as which are not expected at a defined location. In our example isn't found because I did not set the LD_LIBRAY_PATH. If I add the directory where the is located to the LD_LIBRAY_PATH I get the following output as result of ldd => (0x00007fff09dff000) => /data.local1/fairsoft/fairsoft_may11/generators/lib/ (0x00007fe69cd7a000) => /usr/lib/ (0x00007fe69ca4d000) => /lib/ (0x00007fe69c7ca000) => /lib/ (0x00007fe69c5b4000) => /lib/ (0x00007fe69c253000) => /usr/lib/ (0x00007fe69bf66000)
/lib64/ (0x00007fe69d684000)

Now the dynamic linker can find the library. Please check where the dynamic linker expect your I can imagine two problems. Either the directory where your can be found isn't in the LD_LIBRARY_PATH, or you have a fixed location where to look for the library which is wrong.

Hope this helps to find the problem.


Previous Topic: /d/panda02 FULL!!
Next Topic: E/p vs p + energy and momentum
Goto Forum:

Current Time: Tue May 21 09:38:00 CEST 2024

Total time taken to generate the page: 0.00888 seconds