# Installing ROOT 5 from Source

**URL:** <https://root-forum.cern.ch/t/installing-root-5-from-source/13647>\
**Category:** ROOT\
**Created:** [January 21, 2012, 9:18am UTC](https://root-forum.cern.ch/t/installing-root-5-from-source/13647 "2012-01-21T09:18:43Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [January 21, 2012, 9:18am UTC](https://root-forum.cern.ch/t/installing-root-5-from-source/13647/1 "2012-01-21T09:18:43Z")

</div>

The [https://root.cern.ch/build-root-old-method](https://root.cern.ch/build-root-old-method) does NOT mention “`ROOTSYS`” at all.  
A newcomer has no chance to learn that the following sequence works (the “`/Where/I/Unpacked/The/Source/Code/Of/root`” subdirectory must be different from the “`ROOTSYS=/Where/I/Want/To/Install/root`” subdirectory):

```bash
cd /Where/I/Unpacked/The/Source/Code/Of/root
export ROOTSYS=/Where/I/Want/To/Install/root
./configure [<arch>] --enable-soversion --all
(g)make
(g)make install # may need "sudo"

```

The “`./configure --help`” does NOT mention this feature either.

[Note that building ROOT 6 requires the usage of the new CMake based building method](https://root.cern.ch/building-root).

---

_[View the full topic](https://root-forum.cern.ch/t/installing-root-5-from-source/13647)._
