# Installing ROOT with PYTHIA6 support

**URL:** <https://root-forum.cern.ch/t/installing-root-with-pythia6-support/62416>\
**Category:** ROOT\
**Created:** [December 7, 2024, 2:05pm UTC](https://root-forum.cern.ch/t/installing-root-with-pythia6-support/62416 "2024-12-07T14:05:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhashin\_krishna](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/3d9bf3/32.png) [@dhashin\_krishna](https://root-forum.cern.ch/u/dhashin_krishna)\
**Post date:** [December 7, 2024, 2:05pm UTC](https://root-forum.cern.ch/t/installing-root-with-pythia6-support/62416/1 "2024-12-07T14:05:50Z")

</div>

_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

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [December 7, 2024, 5:41pm UTC](https://root-forum.cern.ch/t/installing-root-with-pythia6-support/62416/2 "2024-12-07T17:41:05Z")

</div>

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](https://root.cern/install/dependencies/#required-packages-1) ?

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![dhashin\_krishna](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/3d9bf3/32.png) [@dhashin\_krishna](https://root-forum.cern.ch/u/dhashin_krishna)\
**Post date:** [December 8, 2024, 4:33am UTC](https://root-forum.cern.ch/t/installing-root-with-pythia6-support/62416/3 "2024-12-08T04:33:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [December 8, 2024, 8:28am UTC](https://root-forum.cern.ch/t/installing-root-with-pythia6-support/62416/4 "2024-12-08T08:28:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dhashin\_krishna](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/3d9bf3/32.png) [@dhashin\_krishna](https://root-forum.cern.ch/u/dhashin_krishna)\
**Post date:** [December 10, 2024, 7:12am UTC](https://root-forum.cern.ch/t/installing-root-with-pythia6-support/62416/5 "2024-12-10T07:12:55Z")

</div>

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.

 ![Screenshot](https://root-forum.cern.ch/uploads/default/original/3X/9/6/96a4115967f945c680a955adc386532e1b11cb16.png)

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [December 24, 2024, 7:13am UTC](https://root-forum.cern.ch/t/installing-root-with-pythia6-support/62416/6 "2024-12-24T07:13:21Z")

</div>

Closed on December 24, 2024, 7:13am UTC

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