# ROOT installation issues on Ubuntu 18.04

**URL:** <https://root-forum.cern.ch/t/root-installation-issues-on-ubuntu-18-04/33047>\
**Category:** Newbie\
**Created:** [March 6, 2019, 11:20am UTC](https://root-forum.cern.ch/t/root-installation-issues-on-ubuntu-18-04/33047 "2019-03-06T11:20:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sudeepan](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/df705f/32.png) [@Sudeepan](https://root-forum.cern.ch/u/Sudeepan)\
**Post date:** [March 6, 2019, 11:20am UTC](https://root-forum.cern.ch/t/root-installation-issues-on-ubuntu-18-04/33047/1 "2019-03-06T11:20:12Z")

</div>

Hi.  
I am trying to install ROOT for the first time on Ubuntu and I am running into some problems.  
I am following [this](http://boson.physics.sc.edu/~gothe/511-S15/rootlab/how-to-install-root.pdf) pdf to setup ROOT on my device.

When I used the command (after cd-ing into /usr/local/root):  
**./configure --all && make -j 4**

I encountered the following message:  
**ROOT is built with CMake, see [https://root.cern/building-root](https://root.cern/building-root)**  
\*\* Please run\*\*  
\*\* mkdir obj; cd obj; cmake …; make -j 4\*\*

So I oblige, and the process was upto 71% complete, when my device hung up (too many processes had been running simultaneously, for quite a while).

So I had to force reboot the device, with the hope that the building process would resume normally thereafter.

I cd into the same directory once again, and use the last command, and get the following result:  
The first two images show how the build process was initiated:

 ![root1](https://root-forum.cern.ch/uploads/default/original/3X/7/8/783279d031ab3a47b380fef752d178d278bb48cf.png)  
 ![root2](https://root-forum.cern.ch/uploads/default/original/3X/3/e/3e91529d992ee5b46b0fea15262383a9c5142adc.png)

Then I skip to the part of the build process where the error begins to show itself (that is what I think):

 ![root3](https://root-forum.cern.ch/uploads/default/original/3X/2/2/22ac8bd215daa26e31b176f47867a054b4fa7297.png)

And finally, after skipping through a long body of failed processes, I finally present the final error message:

 ![root4](https://root-forum.cern.ch/uploads/default/original/3X/8/2/82801d464ef62e7b1a7cd598877c1dbd51e0b9ab.png)

It is my first attempt to fully switch to Ubuntu, so it would be really helpful if someone could provide a solution guide for beginners.

Thanks!

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [March 6, 2019, 11:33am UTC](https://root-forum.cern.ch/t/root-installation-issues-on-ubuntu-18-04/33047/2 "2019-03-06T11:33:22Z")

</div>

Hi,  
you don’t have to compile ROOT from source on Ubuntu.  
You can [download pre-compiled binaries](https://root.cern/downloading-root) that you just need to uncompress, and a `source /path/to/ROOT/bin/thisroot.sh`) gives you a working ROOT.

Or you can use the `conda` package manager (you can install it by running `bash installer.sh` using the installer script that you can download [from here](https://www.anaconda.com/distribution/#linux)).  
With a working conda installation you can get ROOT with:

```auto
conda create -n cern-root -c conda-forge root

```

and whenever you need to use ROOT you just need to run `conda activate cern-root`.

If you want to compile ROOT from source, I suggest you remove your `obj` directory and restart a build from scratch, but with less cores, e.g. `make -j2` instead of `make -j4`.

Hope this helps,  
Enrico

---

<div class="post-metadata">

**Author:** ![Sudeepan](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/df705f/32.png) [@Sudeepan](https://root-forum.cern.ch/u/Sudeepan)\
**Post date:** [March 6, 2019, 11:34am UTC](https://root-forum.cern.ch/t/root-installation-issues-on-ubuntu-18-04/33047/3 "2019-03-06T11:34:31Z")

</div>

I see. I would definitely try out these alternatives. Thanks for the response!

---

<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:** [March 20, 2019, 11:34am UTC](https://root-forum.cern.ch/t/root-installation-issues-on-ubuntu-18-04/33047/4 "2019-03-20T11:34:42Z")

</div>

Closed on March 20, 2019, 11:34am UTC

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