Hello all,
I am using MG 2.6.5 and I am trying to install Pythia8 version 8.243. I need to have these two versions to cross-check the results. However, I am having some problems.
I first installed Py8 locally on my computer and I linked it to MG giving the path to the Py8 directory on the input/mg5_configuration.txt file. But, when trying to install the mg5amc_py8_interface I get
The version of HEPMC2 linked to Pythia8 seems not to include a static library.
This is necessary for the default compilation of MG5aMC_PY8_interface.
You can try again with the option --pythia8_makefile but HEPMC2 will need to be available at runtime.
I then tried to re-installed Py8 with the MG hepmc linked to it. However, I got the same error. I am using hepmc version 2.06.09. After checking some questions here at the launchpad, I tried a fresh installation and instead of using Py8 local installation, I installed it inside MG:
install pythia8 --pythia8_tarball=/storage/Maura/ML/AD/SignalGen/installations/pythia8243.tgz
But I also get an error:
Connecting to madgraph.phys.ucl.ac.be (madgraph.phys.ucl.ac.be)|130.104.1.243|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19542 (19K) [application/x-gzip]
Saving to: ‘MG5aMC_PY8_interface_V1.3.tar.gz’
MG5aMC_PY8_interface_V1.3.tar.gz 100%[========================================================================================>] 19,08K --.-KB/s in 0,05s
2024-03-13 09:46:11 (379 KB/s) - ‘MG5aMC_PY8_interface_V1.3.tar.gz’ saved [19542/19542]
Installing tool 'mg5amc_py8_interface'...
> Follow the installation progress by running the command below in a separate terminal)
> tail -f /storage/Maura/ML/AD/SignalGen/FreshInstallation_12032024/MG5_aMC_v2_6_5/HEPTools/MG5aMC_PY8_interface/mg5amc_py8_interface_install.log
A problem occured during the installation of 'mg5amc_py8_interface'.
Content of the installation log file '/storage/Maura/ML/AD/SignalGen/FreshInstallation_12032024/MG5_aMC_v2_6_5/HEPTools/MG5aMC_PY8_interface/mg5amc_py8_interface_install.log':
------------------------------------------------
MG5aMC_PY8_interface compilation output log:
g++ MG5aMC_PY8_interface.cc -o MG5aMC_PY8_interface /storage/Maura/ML/AD/SignalGen/FreshInstallation_12032024/MG5_aMC_v2_6_5/HEPTools/hepmc/include -I/storage/Maura/ML/AD/SignalGen/FreshInstallation_12032024/MG5_aMC_v2_6_5/HEPTools/pythia8//include -ldl -fPIC -lstdc++ -std=c++11 -O2 -DHEPMC2HACK -L/storage/Maura/ML/AD/SignalGen/FreshInstallation_12032024/MG5_aMC_v2_6_5/HEPTools/pythia8//lib -Wl,-rpath,/storage/Maura/ML/AD/SignalGen/FreshInstallation_12032024/MG5_aMC_v2_6_5/HEPTools/pythia8//lib -lpythia8 -ldl /storage/Maura/ML/AD/SignalGen/FreshInstallation_12032024/MG5_aMC_v2_6_5/HEPTools/hepmc/lib
In file included from MG5aMC_PY8_interface.cc:11:
/storage/Maura/ML/AD/SignalGen/FreshInstallation_12032024/MG5_aMC_v2_6_5/HEPTools/pythia8//include/Pythia8Plugins/HepMC2.h:17:10: fatal error: HepMC/IO_BaseClass.h: No such file or directory
17 | #include "HepMC/IO_BaseClass.h"
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile_mg5amc_py8_interface_static:8: MG5aMC_PY8_interface] Error 1
------------------------------------------------
Error during the compilation of MG5aMC_PY8_interface:
g++ MG5aMC_PY8_interface.cc -o MG5aMC_PY8_interface /storage/Maura/ML/AD/SignalGen/FreshInstallation_12032024/MG5_aMC_v2_6_5/HEPTools/hepmc/include -I/storage/Maura/ML/AD/SignalGen/FreshInstallation_12032024/MG5_aMC_v2_6_5/HEPTools/pythia8//include -ldl -fPIC -lstdc++ -std=c++11 -O2 -DHEPMC2HACK -L/storage/Maura/ML/AD/SignalGen/FreshInstallation_12032024/MG5_aMC_v2_6_5/HEPTools/pythia8//lib -Wl,-rpath,/storage/Maura/ML/AD/SignalGen/FreshInstallation_12032024/MG5_aMC_v2_6_5/HEPTools/pythia8//lib -lpythia8 -ldl /storage/Maura/ML/AD/SignalGen/FreshInstallation_12032024/MG5_aMC_v2_6_5/HEPTools/hepmc/lib
In file included from MG5aMC_PY8_interface.cc:11:
/storage/Maura/ML/AD/SignalGen/FreshInstallation_12032024/MG5_aMC_v2_6_5/HEPTools/pythia8//include/Pythia8Plugins/HepMC2.h:17:10: fatal error: HepMC/IO_BaseClass.h: No such file or directory
17 | #include "HepMC/IO_BaseClass.h"
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile_mg5amc_py8_interface_static:8: MG5aMC_PY8_interface] Error 1
I saw in other questions that the problem was solved by using this command but I don't manage to have it working. Do you have any solution for this?
Thank you!
Maura