# Failure to build 6.22.06

**URL:** <https://root-forum.cern.ch/t/failure-to-build-6-22-06/42868>\
**Category:** ROOT\
**Tags:** build\
**Created:** [December 26, 2020, 6:32pm UTC](https://root-forum.cern.ch/t/failure-to-build-6-22-06/42868 "2020-12-26T18:32:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sara\_Fanigliulo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/sara_fanigliulo/32/24416_2.png) [@Sara\_Fanigliulo](https://root-forum.cern.ch/u/Sara_Fanigliulo)\
**Post date:** [December 26, 2020, 6:32pm UTC](https://root-forum.cern.ch/t/failure-to-build-6-22-06/42868/1 "2020-12-26T18:32:43Z")

</div>

_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?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [December 27, 2020, 9:07am UTC](https://root-forum.cern.ch/t/failure-to-build-6-22-06/42868/2 "2020-12-27T09:07:36Z")

</div>

Welcome to the ROOT Forum! Why not trying to [install the binaries](https://root.cern/install/) instead?

---

<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:** [January 10, 2021, 9:07am UTC](https://root-forum.cern.ch/t/failure-to-build-6-22-06/42868/3 "2021-01-10T09:07:37Z")

</div>

Closed on January 10, 2021, 9:07am UTC

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