Pythia8 and Delphes not working: libCore.so.6.24: cannot open shared object file: No such file or directory

Hi I have a problem when installing Pythia8 and Delphes, sorry the subject is not directly related to ROOT but I didnt know where to submit it. I followed this tutorial in how to install Delphes and Pythia:

(I couldnt put the link in the post so I upload a picture of it):

But when I check that the binaries are there this error appears:

./DelphesPythia8: error while loading shared libraries: libCore.so.6.24: cannot open shared object file: No such file or directory

I believe the problem is related to the .bashrc since one of the installation steps is “echo PYTHIA8=\”$HOME/Pythia8\” >> $HOME/.bashrc”, I did include that line in the .bashrc file but whenever I open a new terminal I get this messsage:

bash: “$HOME/Pythia8”: No such file or directory
(being $HOME the path to the Pythia8 folder). Ive checked with readlink -f and the path is correct so I dont know what the issue might be.

Thanks in advance for the help.
Liliana.

Welcome to the ROOT Forum!

So your $HOME/.bashrc file should contain this line:

PYTHIA8=”$HOME/Pythia8”

And how/where did you install ROOT?

Cheers, Bertrand.

Hi so I could fix the .bashrc issue so there are no errors when I open the terminal but I still get this error:

./DelphesPythia8: error while loading shared libraries: libCore.so.6.24: cannot open shared object file: No such file or directory

when running “./DelphesPythia8 cards/delphes_card_CMS.tcl examples/Pythia8/configNoLHE.cmnd delphes_nolhe.root”

I installed ROOT using this tutorial:

And my root folder is located in the Desktop. For example, the .bashrc path to the thisroot.sh is as follows:

source /home/liliana/Desktop/root_v6.24.06.Linux-ubuntu20-x86_64-gcc9.3/root/bin/thisroot.sh

Thanks for the reply :slight_smile:

And can you start ROOT from the terminal?

Yes it doesn’t matter the folder I’m in I can type “root” and ROOT opens and works just fine.

OK, but that’s weird, this error:

Tells there is no libCore.so.6.24… Can you check what ls $ROOTSYS/lib/libCore.* says?

It says:

Desktop/root_v6.24.06.Linux-ubuntu20-x86_64-gcc9.3/root/lib/libCore.so
Desktop/root_v6.24.06.Linux-ubuntu20-x86_64-gcc9.3/root/lib/libCore.so.6.24
Desktop/root_v6.24.06.Linux-ubuntu20-x86_64-gcc9.3/root/lib/libCore.so.6.24.06

So it should work… One more thing, what is the output of echo $LD_LIBRARY_PATH?

I get this: /home/liliana/Desktop/root_v6.24.06.Linux-ubuntu20-x86_64-gcc9.3/root/lib

Sorry for the late reply and thanks for all your help :slight_smile:

Then it should work… BTW,

Do you run this from a terminal? Can you post the content of this file? And can you post the complete error message (all the lines)?

Yes I do run this from a terminal. The delphes_card_CMS.tcl is just a regular delphes card with all the parameters and the configNoLHE.cmnd file has this:


! 1) Settings used in the main program.
Main:numberOfEvents = 1000 ! number of events to generate
Main:timesAllowErrors = 3 ! how many aborts before run stops

! 2) Settings related to output in init(), next() and stat().
Init:showChangedSettings = on ! list changed settings
Init:showChangedParticleData = off ! list changed particle data
Next:numberCount = 100 ! print message every n events
Next:numberShowInfo = 1 ! print event information n times
Next:numberShowProcess = 1 ! print process record n times
Next:numberShowEvent = 0 ! print event record n times

! 3) Beam parameter settings. Values below agree with default ones.
Beams:idA = 2212 ! first beam, p = 2212, pbar = -2212
Beams:idB = 2212 ! second beam, p = 2212, pbar = -2212
Beams:eCM = 14000. ! CM energy of collision

! 4) Settings for the hard-process generation.

Top:gg2ttbar = on ! g g → t tbar
Top:qqbar2ttbar = on ! q qbar → t tbar

! 5) Switch on/off the key event generation steps.
#PartonLevel:MPI = off ! no multiparton interactions
#PartonLevel:ISR = off ! no initial-state radiation
#PartonLevel:FSR = off ! no final-state radiation
#HadronLevel:Hadronize = off ! no hadronization
#HadronLevel:Decay = off ! no decays

! 6) Other settings. Can be expanded as desired.
#Tune:preferLHAPDF = off ! use internal PDFs when LHAPDF not linked
Tune:pp = 6 ! use Tune 4Cx
ParticleDecays:limitTau0 = on ! set long-lived particle stable …
ParticleDecays:tau0Max = 10 ! … if c*tau0 > 10 mm


When I run ./DelphesHepMC2 I get:

"
Usage: DelphesHepMC2 config_file output_file [input_file(s)]
config_file - configuration file in Tcl format,
output_file - output file in ROOT format,
input_file(s) - input file(s) in HepMC format,
with no input_file, or when input_file is -, read standard input.
"
And when running ./DelphesPythia8 cards/delphes_card_CMS.tcl examples/Pythia8/configNoLHE.cmnd delphes_nolhe.root I get the following error:
"
/DelphesPythia8: error while loading shared libraries: libpythia8.so: cannot open shared object file: No such file or directory
"

Sorry for my late reply, the last reply was deleted by the system, I was telling you that I do run this from the terminal. The delphes_card_CMS.tcl is just the regular delphes card with all the parameters and the configNoLHE.cmnd file has this:

! 1) Settings used in the main program.
Main:numberOfEvents = 1000 ! number of events to generate
Main:timesAllowErrors = 3 ! how many aborts before run stops

! 2) Settings related to output in init(), next() and stat().
Init:showChangedSettings = on ! list changed settings
Init:showChangedParticleData = off ! list changed particle data
Next:numberCount = 100 ! print message every n events
Next:numberShowInfo = 1 ! print event information n times
Next:numberShowProcess = 1 ! print process record n times
Next:numberShowEvent = 0 ! print event record n times

! 3) Beam parameter settings. Values below agree with default ones.
Beams:idA = 2212 ! first beam, p = 2212, pbar = -2212
Beams:idB = 2212 ! second beam, p = 2212, pbar = -2212
Beams:eCM = 14000. ! CM energy of collision

! 4) Settings for the hard-process generation.

Top:gg2ttbar = on ! g g → t tbar
Top:qqbar2ttbar = on ! q qbar → t tbar

! 5) Switch on/off the key event generation steps.
#PartonLevel:MPI = off ! no multiparton interactions
#PartonLevel:ISR = off ! no initial-state radiation
#PartonLevel:FSR = off ! no final-state radiation
#HadronLevel:Hadronize = off ! no hadronization
#HadronLevel:Decay = off ! no decays

! 6) Other settings. Can be expanded as desired.
#Tune:preferLHAPDF = off ! use internal PDFs when LHAPDF not linked
Tune:pp = 6 ! use Tune 4Cx
ParticleDecays:limitTau0 = on ! set long-lived particle stable …
ParticleDecays:tau0Max = 10 ! … if c*tau0 > 10 mm


Now when I run ./DelphesHepMC2 I get:

Usage: DelphesHepMC2 config_file output_file [input_file(s)]
config_file - configuration file in Tcl format,
output_file - output file in ROOT format,
input_file(s) - input file(s) in HepMC format,
with no input_file, or when input_file is -, read standard input.

And when running ./DelphesPythia8 cards/delphes_card_CMS.tcl
examples/Pythia8/configNoLHE.cmnd delphes_nolhe.root I get the error message:

./DelphesPythia8: error while loading shared libraries: libpythia8.so: cannot open shared object file: No such file or directory

But that’s different from what you reported before:

So I think you should add $PYTHIA8/lib in your LD_LIBRARY_PATH, and it should probably be something like this:

PYTHIA8DATA=$PYTHIA8/share/Pythia8/xmldoc
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PYTHIA8/lib

Hi sorry for the late reply I had some health issues and couldnt work for a few days. I tried checking why or how the error changed. No idea :face_with_monocle: but I wanted to ask you, and im sorry if this is a dumb question but when you say add $PYTHIA8/lib in your LD_LIBRARY_PATH I dont understand where to add that line. Like in my .bashrc? I just dont know what D_LIBRARY_PATH is.

Sorry to read that. Hope you’re doing better now

Yes. But you can also do it in the terminal to try if it works.

LD_LIBRARY_PATH is the PATH to find the shared libraries (.so files) like for example libCore.so in $ROOTSYS/lib, or libpythia8.so in $PYTHIA8/lib. If you type echo $LD_LIBRARY_PATH in the terminal, you should see at least Desktop/root_v6.24.06.Linux-ubuntu20-x86_64-gcc9.3/root/lib/

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.