# Cannot build ROOT from source

**URL:** <https://root-forum.cern.ch/t/cannot-build-root-from-source/51100>\
**Category:** Newbie\
**Created:** [August 8, 2022, 5:16am UTC](https://root-forum.cern.ch/t/cannot-build-root-from-source/51100 "2022-08-08T05:16:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HungBuiTien](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/hungbuitien/32/27609_2.png) [@HungBuiTien](https://root-forum.cern.ch/u/HungBuiTien)\
**Post date:** [August 8, 2022, 5:16am UTC](https://root-forum.cern.ch/t/cannot-build-root-from-source/51100/1 "2022-08-08T05:16:01Z")

</div>

Dear all,  
I’m new in ROOT. I have built the source with some following commands

```auto
# The latest stable branch gets updated automatically on each release.
# You may update your local copy by issuing a `git pull` command from within `root_src/`.
$ git clone --branch latest-stable --depth=1 https://github.com/root-project/root.git root_src
$ mkdir root_build root_install && cd root_build
$ cmake -DCMAKE_INSTALL_PREFIX=../root_install ../root_src # && check cmake configuration output for warnings or errors
$ cmake --build . -- install -j4 # if you have 4 cores available for compilation
$ source ../root_install/bin/thisroot.sh # or thisroot.{fish,csh}

```

But It always show the error and stop at 28% processing.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/c/9/c936f2852609ed2108e6dc21ad3a3ecbedc718b3.png)

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [August 8, 2022, 9:01am UTC](https://root-forum.cern.ch/t/cannot-build-root-from-source/51100/2 "2022-08-08T09:01:06Z")

</div>

Welcome to the ROOT forum.

This screen copy does not tell a lot.  
Can you copy/paste here the full log you get? in particular, what gives the first `cmake` command?

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [August 8, 2022, 3:35pm UTC](https://root-forum.cern.ch/t/cannot-build-root-from-source/51100/3 "2022-08-08T15:35:53Z")

</div>

Also try:

```auto
cmake --build . -- install -j1

```
