Problem installing ROOT with PYTHIA6 support

ROOT Version: 6.30.08
Platform: UBuntu 22.04.2
Dear experts,
I want to install ROOT with PYTHIA6 support ( I need this for installing NuWro). To do so, I am following steps, "
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". But while running the make command, I am getting an error, " /home/saa/install/root-6.30.08/net/netxng/inc/TNetXNGFile.h:27:10: fatal error: XrdCl/XrdClFileSystem.hh: No such file or directory
27 | #include <XrdCl/XrdClFileSystem.hh>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [net/netxng/CMakeFiles/G__NetxNG.dir/build.make:97: net/netxng/CMakeFiles/G__NetxNG.dir/G__NetxNG.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:36866: net/netxng/CMakeFiles/G__NetxNG.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…". I have tried various things, but I am not able to fix this. Also, I have tried with older versions of ROOT, but they all give different errors and versions newer than 6.30.08 are not compatible with PYTHIA6 support.
I would be really grateful if I could get some help regarding this.
Thank you,
Best Regards,
Rinchen.

Hi @Rinchen,

thank you for the question. My first question would be - have you installed all the necessary ROOT dependencies? Looks like you’re missing some, for example, see a similar issue here: Root 6.26.06 make error.

Cheers,
Marta

PS It was cool to learn about NuWro (I am originally from Wroclaw :slight_smile: )

Thank you very much @mczurylo for the reply, now I am getting a new error which says," make[2]: *** No rule to make target ‘builtins/davix/DAVIX-prefix/src/DAVIX-build/deps/curl-install/usr/lib/libcurl.a’, needed by ‘lib/libRDAVIX.so’. Stop.
make[1]: *** [CMakeFiles/Makefile2:36748: net/davix/CMakeFiles/RDAVIX.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…"
And libcurl libraries (libcurl.a and libcurl.so) are present on my system at /usr/lib/x86_64-linux-gnu/.

Try updating your environment paths then maybe?

Cheers,
Marta

Do you need davix? You can also disable it if you don’t need it and it blocks the build (-Ddavix=OFF -Dbuiltin_davix=OFF).

1 Like

Thanks @mczurylo.

Thanks a lot @jonas , disabling Ddavix did work, but now I am getting some error, while installing NuWro. " /usr/bin/ld: /home/sa/root/lib/libPythia6.so: undefined reference to `pyuppr_’
collect2: error: ld returned 1 exit status
make: *** [Makefile:51: bin/nuwro] Error 1".

Great! NuWro is not part of ROOT, so I think you have to ask somewhere else about your next error. Maybe your colleagues, collaborators, or on some NuWro support platform?

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