I am trying to install ROOT on Linux Mint 21.2 Cinnamon, but I always encounter an error. I have tried versions 6.22 through 6.32.02, but none of them can be installed, whether using the binary or the source.
During the cmake .. -build . -j4 command, the following error occurs: Here is the Error display in case of source 6.32.02.
[ 74%] Building CXX object core/clingutils/CMakeFiles/ClingUtils.dir/src/TClingUtils.cxx.o
CMake Error at /home/mohamed/Packages/Root_Dir/root-6.32.02/build/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-build-Release.cmake:37 (message):
Command failed: 2
– stdout output is:
[ 0%] Built target intrinsics_gen
[ 3%] Building CXX object lib/Differentiator/CMakeFiles/cladDifferentiator.dir/BaseForwardModeVisitor.cpp.o
– stderr output is:
gmake[4]: *** read jobs pipe: Bad file descriptor. Stop.
gmake[4]: *** Waiting for unfinished jobs…
gmake[5]: *** read jobs pipe: Bad file descriptor. Stop.
gmake[5]: *** Waiting for unfinished jobs…
gmake[4]: *** [CMakeFiles/Makefile2:266: lib/Differentiator/CMakeFiles/cladDifferentiator.dir/all] Error 2
gmake[3]: *** [Makefile:136: all] Error 2
CMake Error at /home/mohamed/Packages/Root_Dir/root-6.32.02/build/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-build-Release.cmake:47 (message):
Stopping after outputting logs.
– stdout output is:
[ 0%] Built target intrinsics_gen
[ 3%] Building CXX object lib/Differentiator/CMakeFiles/cladDifferentiator.dir/ReverseModeForwPassVisitor.cpp.o
– stderr output is:
gmake[4]: *** read jobs pipe: Bad file descriptor. Stop.
gmake[4]: *** Waiting for unfinished jobs…
gmake[5]: *** read jobs pipe: Bad file descriptor. Stop.
gmake[5]: *** Waiting for unfinished jobs…
gmake[4]: *** [CMakeFiles/Makefile2:266: lib/Differentiator/CMakeFiles/cladDifferentiator.dir/all] Error 2
gmake[3]: *** [Makefile:136: all] Error 2
CMake Error at /home/mohamed/Packages/Root_Dir/root-6.32.02/build/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-build-Release.cmake:47 (message):
Stopping after outputting logs.
First I don’t think you can disable cling at all (i.e. -Dclad=OFF is good enough), then I don’t know if this will impact Delphes or Pythia under MadGraph
Just for a sanity check: what binary did you try to install? Mint 21.2 is based on Ubuntu 22.04, so I suppose you should try the binary for that version of Ubuntu (and also install the dependencies for Ubuntu), e.g. root_v6.32.04.Linux-ubuntu22.04-x86_64-gcc11.4.tar.gz for the latest.