About PATH, LD_PATH thisroot.sh


Since I didn’t find the binaries of “root-system” in Ubuntu repository I tried to compile and install it.

I’m using Ubuntu 11.04 and I installed ROOT 5.28/00d to compile it i just install “Build Prerequisites” and I used this command:

./configure make
The problem is that every time I want user ROOT I need to run

I tried to put this script on .bashrc. It’s working! The commands, "root, root-config, g++ blablabla root-config --cflags --glibs" works well but ONLY in bash.
For example it doesn’t work in an IDE like Geany!
Also, in this way root is installed only for a single user.

How to install for all users and how to set the variable to be permanents?

Thank you!


for csh you can use “source bin/thisroot.csh”, but for IDE’s you might have to add these variables explicitly to the tools (like for Xcode).

To make a global installed build do:

./configure --prefix

which will install ROOT in /usr/local and the etc directory in /etc/root. Then make sure that /usr/lib/root is in the /etc/ld.so.conf.

Cheers, Fons.