# ROOTSYS and linux distribution installation

**URL:** <https://root-forum.cern.ch/t/rootsys-and-linux-distribution-installation/14173>\
**Category:** ROOT\
**Created:** [April 20, 2012, 6:00pm UTC](https://root-forum.cern.ch/t/rootsys-and-linux-distribution-installation/14173 "2012-04-20T18:00:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![wiso](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wiso/32/11120_2.png) [@wiso](https://root-forum.cern.ch/u/wiso)\
**Post date:** [April 20, 2012, 6:00pm UTC](https://root-forum.cern.ch/t/rootsys-and-linux-distribution-installation/14173/1 "2012-04-20T18:00:53Z")

</div>

Some linux distributions (fedora as an example) provide ROOT as a set of packages (root.x86\_64, root-reflex.x86\_64 ,root-graf-x11.x86\_64, …) . These are installed in the usual system location, for example the binaries (root, root-config, …) in /usr/bin, the libraries in /usr/lib64/root/ and so on.

This is different from the normal installation where everything is under $ROOTSYS.

This is a problem because some packages (PoD as an example, but also a lot of non official packages used in the analysis) require the $ROOTSYS directory.

The only workaround I’ve founded is to define a directory (like ~/.ROOTSYS) and create a lot of symlink inside it.

Do you have a better solution? Will you provide an official solution?

---

<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:** [April 20, 2012, 8:43pm UTC](https://root-forum.cern.ch/t/rootsys-and-linux-distribution-installation/14173/2 "2012-04-20T20:43:49Z")

</div>

Instead of relying upon ROOTSYS, use directly the output of:  
root-config --cflags  
root-config --libs  
(and so on -\> simply type “root-config” in order to see available flags).

---

<div class="post-metadata">

**Author:** ![wiso](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wiso/32/11120_2.png) [@wiso](https://root-forum.cern.ch/u/wiso)\
**Post date:** [April 21, 2012, 10:32pm UTC](https://root-forum.cern.ch/t/rootsys-and-linux-distribution-installation/14173/3 "2012-04-21T22:32:36Z")

</div>

[quote=“Pepe Le Pew”]Instead of relying upon ROOTSYS, use directly the output of:  
root-config --cflags  
root-config --libs  
(and so on -\> simply type “root-config” in order to see available flags).[/quote]

yes, I perfectly agree, but the problem is when I want to use a package that require that environment

---

<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:** [April 21, 2012, 11:23pm UTC](https://root-forum.cern.ch/t/rootsys-and-linux-distribution-installation/14173/4 "2012-04-21T23:23:18Z")

</div>

Well, you can install ROOT from scratch using for example: [url][Installing ROOT from Source](https://root-forum.cern.ch/t/installing-root-from-source/13647/1)

---

<div class="post-metadata">

**Author:** ![wiso](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wiso/32/11120_2.png) [@wiso](https://root-forum.cern.ch/u/wiso)\
**Post date:** [April 22, 2012, 9:28am UTC](https://root-forum.cern.ch/t/rootsys-and-linux-distribution-installation/14173/5 "2012-04-22T09:28:44Z")

</div>

[quote=“Pepe Le Pew”]Well, you can install ROOT from scratch using for example: [url][Installing ROOT from Source](https://root-forum.cern.ch/t/installing-root-from-source/13647/1)

Sure I can, but this doesn’t resolve the original problem: with the installation using the package system you don’t have a ROOTSYS directory.

---

<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:** [April 22, 2012, 10:34am UTC](https://root-forum.cern.ch/t/rootsys-and-linux-distribution-installation/14173/6 "2012-04-22T10:34:51Z")

</div>

Honestly speaking, sooner or later, you will learn by hard that the policy of using the “system-provided” ROOT version is a dead end.  
You will learn that you need something like three different versions of ROOT - just because something that works with a particular version is not working with another ones.  
The safest approach is to “completely remove” all “system-provided” ROOT related packages and install all needed versions of ROOT from scratch, each version in a different “version specific” ROOTSYS subdirectory (e.g. something like “/opt/ROOT/v5-28-00-patches”, “/opt/ROOT/v5-30-00-patches”, “/opt/ROOT/v5-32-00-patches” and so on).

---

<div class="post-metadata">

**Author:** ![wiso](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wiso/32/11120_2.png) [@wiso](https://root-forum.cern.ch/u/wiso)\
**Post date:** [April 22, 2012, 12:09pm UTC](https://root-forum.cern.ch/t/rootsys-and-linux-distribution-installation/14173/7 "2012-04-22T12:09:08Z")

</div>

[quote=“Pepe Le Pew”]Honestly speaking, sooner or later, you will learn by hard that the policy of using the “system-provided” ROOT version is a dead end.  
You will learn that you need something like three different versions of ROOT - just because something that works with a particular version is not working with another ones.  
The safest approach is to “completely remove” all “system-provided” ROOT related packages and install all needed versions of ROOT from scratch, each version in a different “version specific” ROOTSYS subdirectory (e.g. something like “/opt/ROOT/v5-28-00-patches”, “/opt/ROOT/v5-30-00-patches”, “/opt/ROOT/v5-32-00-patches” and so on).[/quote]

I don’t undestand why. If as you said

> [@](#):
>
> something that works with a particular version is not working with another ones.

this is a serious problem of the ROOT software cycle. Usually if there is some problem it is fixed in the newest patch without regression problem. But this is not related with my problem, my problem is different, please remain in topic. I want to use the system packages and be able to use additional packages that require the ROOTSYS environment.

---

<div class="post-metadata">

**Author:** ![rdm](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rdm/32/11082_2.png) [@rdm](https://root-forum.cern.ch/u/rdm)\
**Post date:** [July 4, 2012, 12:05pm UTC](https://root-forum.cern.ch/t/rootsys-and-linux-distribution-installation/14173/8 "2012-07-04T12:05:56Z")

</div>

Hi wiso,

please let us know which packages depend explicitly on $ROOTSYS because they need fixing as they should not rely on ROOTSYS but on root-config, or when in code on the global gRootDir or on include/RConfigure.h.

Cheers, Fons.

---

<div class="post-metadata">

**Author:** ![wiso](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wiso/32/11120_2.png) [@wiso](https://root-forum.cern.ch/u/wiso)\
**Post date:** [July 4, 2012, 9:24pm UTC](https://root-forum.cern.ch/t/rootsys-and-linux-distribution-installation/14173/9 "2012-07-04T21:24:46Z")

</div>

[quote=“rdm”]Hi wiso,

please let us know which packages depend explicitly on $ROOTSYS because they need fixing as they should not rely on ROOTSYS but on root-config, or when in code on the global gRootDir or on include/RConfigure.h.

Cheers, Fons.[/quote]

as I said PoD is one package ([pod.gsi.de/](http://pod.gsi.de/)) but there are a lot of packager (for example in the atlas collaboration) using ROOTSYS instead of root-config, I don’t want to fix all of them, so I’m searching for a workaround

---

<div class="post-metadata">

**Author:** ![rdm](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rdm/32/11082_2.png) [@rdm](https://root-forum.cern.ch/u/rdm)\
**Post date:** [July 5, 2012, 7:34am UTC](https://root-forum.cern.ch/t/rootsys-and-linux-distribution-installation/14173/10 "2012-07-05T07:34:01Z")

</div>

In that case do as Pepe suggest, build your own version from source and you’re ok.

Cheers, Fons.
