Installing ROOT with PYTHIA6 support

ROOT Version: 6.30.08
Platform: Ubuntu 22.04.5

Hi Experts,
I am trying to install root with pythia6 support - required to install NuWro. The steps I follow:

mkdir ~/install
cd ~/install

tar xzf pythia6.tar.gz
cd pythia6
sed -i ‘s/g77/gfortran/g’ ./makePythia6.linux
bash ./makePythia6.linux
cd ~/install

tar zxf root_v6.30.08.source.tar.gz
mkdir ~/root
cd ~/root
mkdir ~/root/lib
cp ~/install/pythia6/libPythia6.so ~/root/lib
cmake -DPYTHIA6_LIBRARY=~/root/lib/libPythia6.so -Dpythia6=ON ~/install/root-6.30.08
make -j4

While running the make command, I am getting the following error

CMake Error at /home/name/root/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build-.cmake:49 (message):
Command failed: 2

‘make’

See also

/home/name/root/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build-*.log

The XROOT build error log file shows:

[I] No git repository info found. Trying to interpret VERSION_INFO
[I] The XrdVersion.hh file already exists
/usr/bin/ld: /usr/local/openssl-1.0.2u/lib/libcrypto.a(cms_sd.o): warning: relocation against CMS_Attributes_Sign_it' in read-only section .text’
/usr/bin/ld: /usr/local/openssl-1.0.2u/lib/libcrypto.a(v3_genn.o): relocation R_X86_64_PC32 against symbol `GENERAL_NAME_it’ can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[5]: *** [src/CMakeFiles/XrdUtils.dir/build.make:2229: src/libXrdUtils.so.3.0.0] Error 1
make[4]: *** [CMakeFiles/Makefile2:260: src/CMakeFiles/XrdUtils.dir/all] Error 2
make[3]: *** [Makefile:136: all] Error 2

Please let me know what should be done. Thank you!
Best regards,
Dhashin

Hi Dhashin,

Thanks for the post and welcome to the ROOT Community! I am sorry to read ROOT did not work out of the box for you.
It seems that there is a conflict on your system with the libcrypto installed in /user/local.
Have you tried installing the required packages as shown on the website Dependencies - ROOT ?

Cheers,
D

Hi @Danilo , Thanks for your reply

I checked the dependencies. The only error I find is
E: Unable to locate package libvdt-dev

Not sure if this is causing any issue. Other packages are already installed, including the most common optional packages

Thanks.

libvdt is indeed likely not to be part of the problem.
Can you confirm you installed with apt libssl-dev? The path usr/local looks suspicious for that package manager. Maybe I am wrong, but I think we are dealing with layered incomplete installations done with different package managers on your system: can this be the case?

Cheers,
D

Thank you for your reply @Danilo
I am unsure, but that could probably be the case (incomplete installations). But I am confused about what to remove or if there is a way to fix this. I checked - locate libcrypto and have attached the screenshot for your reference.

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