# ROOT instalation Error & Make j-4 not Running

**URL:** <https://root-forum.cern.ch/t/root-instalation-error-make-j-4-not-running/48444>\
**Category:** Newbie\
**Created:** [January 19, 2022, 5:11am UTC](https://root-forum.cern.ch/t/root-instalation-error-make-j-4-not-running/48444 "2022-01-19T05:11:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danish\_Malik](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danish_malik/32/28518_2.png) [@Danish\_Malik](https://root-forum.cern.ch/u/Danish_Malik)\
**Post date:** [January 19, 2022, 5:11am UTC](https://root-forum.cern.ch/t/root-instalation-error-make-j-4-not-running/48444/1 "2022-01-19T05:11:06Z")

</div>

I properly installed all libraries, dependencies & Prerequisties for the installation of CERN Root on my Ubuntu but unfortunately my installation stucks on make -j4 command  
i tried make-j, make -j2,  
make -j3,  
make -j4,  
make -j5,  
make -j6,  
make -j7,  
make -j8,  
make -j9,

but unfortunately i saw the same error which is mentioned:

CMake Error at /home/rat/ROOT/root-6.20.02/rootnew/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build-Release.cmake:49 (message):  
Command failed: 2

‘make’

See also

```
/home/rat/ROOT/root-6.20.02/rootnew/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build-*.log

```

make[2]: \*\*\* [CMakeFiles/AFTERIMAGE.dir/build.make:130: AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build] Error 1  
make[1]: \*\*\* [CMakeFiles/Makefile2:7525: CMakeFiles/AFTERIMAGE.dir/all] Error 2  
make[1]: \*\*\* Waiting for unfinished jobs…  
[27%] Built target hist2workspaceMan  
[27%] Built target rootclingMan  
[54%] Built target move\_artifacts  
make: \*\*\* [Makefile:171: all] Error 2

kindly guide me how to solve this in simple and easy way.  
in case if i need to install anything else then please share the procedure from scrap

 ![Screenshot from 2022-01-19 04-58-08](https://root-forum.cern.ch/uploads/default/original/3X/1/b/1bd3fca75c35118b99df0dff6d649f8205e8e57e.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:** [January 19, 2022, 8:02am UTC](https://root-forum.cern.ch/t/root-instalation-error-make-j-4-not-running/48444/2 "2022-01-19T08:02:03Z")

</div>

Hi,

Welcome to the ROOT forum.

What was your `cmake` command ?

---

<div class="post-metadata">

**Author:** ![Danish\_Malik](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danish_malik/32/28518_2.png) [@Danish\_Malik](https://root-forum.cern.ch/u/Danish_Malik)\
**Post date:** [January 19, 2022, 2:53pm UTC](https://root-forum.cern.ch/t/root-instalation-error-make-j-4-not-running/48444/3 "2022-01-19T14:53:21Z")

</div>

cmake … is my command . execution is fine

---

<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:** [January 19, 2022, 3:51pm UTC](https://root-forum.cern.ch/t/root-instalation-error-make-j-4-not-running/48444/4 "2022-01-19T15:51:55Z")

</div>

you do not have any options passed to the `cmake` command ?

---

<div class="post-metadata">

**Author:** ![Danish\_Malik](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danish_malik/32/28518_2.png) [@Danish\_Malik](https://root-forum.cern.ch/u/Danish_Malik)\
**Post date:** [January 19, 2022, 5:22pm UTC](https://root-forum.cern.ch/t/root-instalation-error-make-j-4-not-running/48444/5 "2022-01-19T17:22:41Z")

</div>

i followed following commands:

mkdir root

cd root  
cmake …  
all thing are fine then

make -j4 etc is showing error

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [January 19, 2022, 5:28pm UTC](https://root-forum.cern.ch/t/root-instalation-error-make-j-4-not-running/48444/6 "2022-01-19T17:28:35Z")

</div>

What exactly did you use as “`…`”.

---

<div class="post-metadata">

**Author:** ![Danish\_Malik](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danish_malik/32/28518_2.png) [@Danish\_Malik](https://root-forum.cern.ch/u/Danish_Malik)\
**Post date:** [January 19, 2022, 5:30pm UTC](https://root-forum.cern.ch/t/root-instalation-error-make-j-4-not-running/48444/7 "2022-01-19T17:30:00Z")

</div>

i used cmake … nd its working good but i have problem about make -j4

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [January 19, 2022, 5:51pm UTC](https://root-forum.cern.ch/t/root-instalation-error-make-j-4-not-running/48444/8 "2022-01-19T17:51:05Z")

</div>

The building output explicitly says that you should inspect “`AFTERIMAGE-build-*.log`” files, which may contain hints about what went wrong.

Actually, ROOT 6.20/02 is quite old.  
You may have more luck if you try the [latest release](https://root.cern.ch/).

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [January 19, 2022, 6:00pm UTC](https://root-forum.cern.ch/t/root-instalation-error-make-j-4-not-running/48444/9 "2022-01-19T18:00:06Z")

</div>

I have seen this type of error often when updating my git repo and then building again.  
I solve it by calling make clean and then make again. Maybe is something else, but worth a try.
