# Trouble with cmake (installing ROOT from source)

**URL:** <https://root-forum.cern.ch/t/trouble-with-cmake-installing-root-from-source/42298>\
**Category:** Newbie\
**Created:** [November 13, 2020, 10:08pm UTC](https://root-forum.cern.ch/t/trouble-with-cmake-installing-root-from-source/42298 "2020-11-13T22:08:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aggelos\_T](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/aggelos_t/32/23987_2.png) [@Aggelos\_T](https://root-forum.cern.ch/u/Aggelos_T)\
**Post date:** [November 13, 2020, 10:08pm UTC](https://root-forum.cern.ch/t/trouble-with-cmake-installing-root-from-source/42298/1 "2020-11-13T22:08:10Z")

</div>

Hello! I’m trying to install ROOT from source to my system (Linux Mint 19.3 Cinnamon), since I encountered some problems trying to install it differently (see [post](https://root-forum.cern.ch/t/problem-with-the-installation-of-root-unable-to-locate-package-libtinfo6/42294) here).

Now, I’m following the steps found [here](https://root.cern/install/build_from_source/#quick-start). I downloaded root\_v6.22.02.source.tar.gz and I completed the first 3 steps. However, I don’t understand what I have to do in the fourth step. I don’t believe just running

> cmake --build . --target install [--]

does anything, so I run

> cmake --build . --target install [–

and

> cmake --build . --target install

to no avail, as the output was

> make: \*\*\* No rule to make target ‘install’. Stop.

and

> Unknown argument [–rootInstall  
> Usage: cmake --build [options] [-- [native-options]]  
> Options:
> 
> = Project binary directory to be built. --target = Build instead of default targets. May only be specified once. --config = For multi-configuration tools, choose . --clean-first = Build target 'clean' first, then build. (To clean only, use --target 'clean'.) --use-stderr = Ignored. Behavior is default in CMake \>= 3.0. -- = Pass remaining options to the native tool.

I don’t understand how to continue and the instructions aren’t clear. Can anybody help me, please? Thank you in advance!

---

<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:** [November 14, 2020, 2:31pm UTC](https://root-forum.cern.ch/t/trouble-with-cmake-installing-root-from-source/42298/2 "2020-11-14T14:31:37Z")

</div>

Hi,  
you need to run `cmake --build .` (which starts the build) in the same directory where you ran `cmake <sourcedir>` (which configured the build). This directory must be a new directory that you created for this purpose (in particular, the build directory must be different from ROOT’s source directory).

Note that you can also install ROOT e.g. via conda without having to compile it (and with the conda package you will not have the issues described in the other post, that are most likely due to an incompatibility between your system (Linux Mint 19.3) and the system the package was built for (Ubuntu 20 or 18).

Hope this helps!  
Enrico

---

<div class="post-metadata">

**Author:** ![Aggelos\_T](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/aggelos_t/32/23987_2.png) [@Aggelos\_T](https://root-forum.cern.ch/u/Aggelos_T)\
**Post date:** [November 14, 2020, 6:30pm UTC](https://root-forum.cern.ch/t/trouble-with-cmake-installing-root-from-source/42298/3 "2020-11-14T18:30:12Z")

</div>

I actually went ahead and installed ROOT via conda. It took some time, but now it is finally working! Thank you!

Link to instructions for installation via conda:

> **[Installing ROOT](https://root.cern/install/)**
>
> Data Analysis Framework

  
and  

> **[ROOT on Conda Forge](https://iscinumpy.gitlab.io/post/root-conda/)**
>
> Linux and macOS packages for Python 2.7, 3.6, 3.7, and 3.8
