Failure to build 6.22.06

ROOT Version: 6.22.06
Platform: Linux Mint 20
Compiler: gcc


I followed this procedure to install Root on a VM (with Linux, Ubuntu):

mkdir ROOT
cd ROOT/
mkdir build_Root
mkdir src
mkdir root
cd src/
cp …/…/Downloads/root_v6.22.06.source.tar.gz . > tar -zxvf root_v6.22.06.source.tar.gz
cd …/build_Root/
sudo apt-get install dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev python openssl-dev
sudo apt-get install gfortran libpcre3-dev xlibmesa-glu-dev libglew1.5-dev libftgl-dev libmysqlclient-dev libfftw3-dev libcfitsio-dev graphviz-dev libavahi-compat-libdnssd-dev libldap2-dev python-dev libxml2-dev libkrb5-dev libgsl0-dev qt5-default
cmake -DCMAKE_INSTALL_PREFIX=…/root/ …/src/root-6.22.06/ -Dall=ON -Dclad=OFF
cmake --build . --target install -j3 (I allocated 3 CPU’s)

and here I got this output

sara@sara-VirtualBox:~/ROOT/build_Root$ cmake --build . --target install -j3
[ 0%] Built target LZMA
[ 0%] Performing build step for ‘XROOTD’
[ 0%] Built target VDT
[ 0%] Built target AFTERIMAGE
[ 0%] Built target TBB
[ 0%] Built target VECCORE
[ 0%] Built target move_header_roofit_roostats
[ 0%] Built target copymodulemap
[ 0%] Built target PCRE
[ 1%] Built target zstd
[ 1%] Built target xxhash
[ 1%] Built target OPENSSL
[ 1%] Built target move_header_core_clib
[ 1%] Built target move_header_core_clingutils
[ 1%] Built target move_header_core_cont
[ 1%] Built target move_header_core_foundation
[ 1%] Built target move_header_core_gui
[ 2%] Built target move_header_core_meta
[ 2%] Built target move_header_core_multiproc
[ 2%] Built target move_header_core_rint
[ 2%] Built target move_header_core_textinput
[ 2%] Built target move_header_core_thread
[ 2%] Built target move_header_core_imt
[ 2%] Built target move_header_core_zip
[ 2%] Built target move_header_core_lzma
[ 2%] Built target move_header_core_lz4
[ 2%] Built target move_header_core_newdelete
[ 2%] Built target move_header_core_zstd
[ 4%] Built target move_header_core_base
[ 4%] Built target move_header_core_unix
[ 5%] Built target move_header_math_mathcore
[ 6%] Built target move_header_math_matrix
[ 6%] Built target move_header_math_minuit
[ 6%] Built target move_header_math_fumili
[ 7%] Built target move_header_math_minuit2
[ 7%] Built target move_header_math_mlp
[ 7%] Built target move_header_math_physics
[ 7%] Built target move_header_math_quadp
[ 7%] Built target move_header_math_foam
[ 8%] Built target move_header_math_smatrix
[ 8%] Built target move_header_math_splot
[ 9%] Built target move_header_math_genvector
[ 9%] Built target move_header_math_genetic
[ 9%] Built target move_header_math_unuran
[ 9%] Built target move_header_math_vecops
[ 10%] Built target move_header_hist_hist
[ 10%] Built target move_header_hist_histpainter
[ 10%] Built target move_header_hist_spectrum
[ 10%] Built target move_header_tree_tree
[ 10%] Built target move_header_hist_spectrumpainter
[ 10%] Built target move_header_tree_treeviewer
[ 11%] Built target move_header_tree_treeplayer
[ 12%] Built target move_header_tree_dataframe
[ 13%] Built target move_header_io_io
[ 13%] Built target move_header_io_sql
[ 14%] Built target move_header_net_net
[ 14%] Built target move_header_io_xml
[ 14%] Built target move_header_net_auth
[ 14%] Built target move_header_net_netx
[ 14%] Built target move_header_net_netxng
[ 14%] Built target move_header_net_httpsniff
[ 14%] Built target move_header_net_http
[ 14%] Built target move_header_graf2d_graf
[ 15%] Built target move_header_graf2d_gpad
CMake Error at /home/sara/ROOT/build_Root/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build-Release.cmake:49 (message):
Command failed: 2

‘/usr/bin/make’

See also

/home/sara/ROOT/build_Root/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build-*.log

make[2]: *** [CMakeFiles/XROOTD.dir/build.make:113: XROOTD-prefix/src/XROOTD-stamp/XROOTD-build] Error 1
make[1]: *** [CMakeFiles/Makefile2:6934: CMakeFiles/XROOTD.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 15%] Built target move_header_graf2d_postscript
[ 15%] Built target move_header_graf2d_x11
make: *** [Makefile:152: all] Error 2

so when I go on with

cd …/…
source ROOT/root/bin/thisroot.sh
root

root doesn’t run.
What’s wrong?

Welcome to the ROOT Forum! Why not trying to install the binaries instead?

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