Dear ROOT Team,
I am trying to install root version V6-30-00 with Pythia6 library on Fedora33 Machine and I am getting the following error, please help me to fix the issue:
[ 88%] Built target G__GuiHtml
[ 88%] Linking CXX shared library …/…/lib/libEGPythia6.so
Scanning dependencies of target G__Recorder
[ 88%] Building CXX object gui/recorder/CMakeFiles/G__Recorder.dir/G__Recorder.cxx.o
/usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function TPythia6::GenerateEvent()': TPythia6.cxx:(.text+0x75): undefined reference to
pyevnt_’
/usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function TPythia6::TPythia6()': TPythia6.cxx:(.text+0x6b8): undefined reference to
pythia6_common_address’
/usr/bin/ld: TPythia6.cxx:(.text+0x6c8): undefined reference to pythia6_common_address' /usr/bin/ld: TPythia6.cxx:(.text+0x6d8): undefined reference to
pythia6_common_address’
/usr/bin/ld: TPythia6.cxx:(.text+0x6e8): undefined reference to pythia6_common_address' /usr/bin/ld: TPythia6.cxx:(.text+0x6f8): undefined reference to
pythia6_common_address’
/usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o:TPythia6.cxx:(.text+0x708): more undefined references to pythia6_common_address' follow /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::OpenFortranFile(int, char*)‘:
TPythia6.cxx:(.text+0xa80): undefined reference to tpythia6_open_fortran_file_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::CloseFortranFile(int)’:
TPythia6.cxx:(.text+0xa9e): undefined reference to tpythia6_close_fortran_file_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pyinit(char*, char*, char*, double)‘:
TPythia6.cxx:(.text+0xb03): undefined reference to pyinit_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pycomp(int)’:
TPythia6.cxx:(.text+0xd3e): undefined reference to pycomp_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pyedit(int)‘:
TPythia6.cxx:(.text+0xd62): undefined reference to pyedit_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pyhepc(int)’:
TPythia6.cxx:(.text+0xdde): undefined reference to pyhepc_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pylist(int)‘:
TPythia6.cxx:(.text+0xdfe): undefined reference to pylist_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pyname(int, char*)’:
TPythia6.cxx:(.text+0xe2a): undefined reference to pyname_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pyr(int)‘:
TPythia6.cxx:(.text+0xe4e): undefined reference to pyr_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pyrget(int, int)’:
TPythia6.cxx:(.text+0xe77): undefined reference to pyrget_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pyrset(int, int)‘:
TPythia6.cxx:(.text+0xe97): undefined reference to pyrset_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pystat(int)’:
TPythia6.cxx:(.text+0xeae): undefined reference to pystat_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pytest(int)‘:
TPythia6.cxx:(.text+0xece): undefined reference to pytest_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pytune(int)’:
TPythia6.cxx:(.text+0xeee): undefined reference to pytune_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pyupda(int, int)‘:
TPythia6.cxx:(.text+0xf17): undefined reference to pyupda_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pymass(int)’:
TPythia6.cxx:(.text+0xf2e): undefined reference to pymass_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pychge(int)‘:
TPythia6.cxx:(.text+0xf4e): undefined reference to pychge_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Py1ent(int, int, double, double, double)’:
TPythia6.cxx:(.text+0xf95): undefined reference to py1ent_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pydiff()‘:
TPythia6.cxx:(.text+0xd81): undefined reference to pydiff_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pyevnt()’:
TPythia6.cxx:(.text+0xd91): undefined reference to pyevnt_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pyexec()‘:
TPythia6.cxx:(.text+0xda1): undefined reference to pyexec_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TPythia6.cxx.o: in function
TPythia6::Pygive(char const*)’:
TPythia6.cxx:(.text+0xdc4): undefined reference to pygive_' /usr/bin/ld: CMakeFiles/EGPythia6.dir/src/TMCParticle.cxx.o: in function
TMCParticle::GetName() const’:
TMCParticle.cxx:(.text+0xb5): undefined reference to `pyname_’
collect2: error: ld returned 1 exit status
gmake[2]: *** [montecarlo/pythia6/CMakeFiles/EGPythia6.dir/build.make:150: lib/libEGPythia6.so] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:41373: montecar
Here is my configuration command :
cmake -DCMAKE_INSTALL_PREFIX=/opt/root_install/ /opt/root/ -Dmathmore=ON -Dpythia6=ON -DPYTHIA6_INCLUDE_DIR=/opt/Pythia6/v6_428/inc/ -DPYTHIA6_LIBRARY=/opt/Pythia6/v6_428/lib/ -Dxrootd=OFF -Dwebgui=OFF -Dtmva-pymva=OFF -Dtmva=OFF -Dtmva-cpu=OFF