Compiling and installing ROOT on Ubuntu
Mustafa | December 6, 2009 | 8:55 amROOT is an important framework for people working in high energy physics and in analyzing accelerators data and some other fields. I am not here to introduce ROOT, you probably know what it is if you are looking for how to compile it.
- First you need to download the source code package.
- Uncompress the source code package.
- Enter the folder
- Now you need to install the required packages
sudo apt-get install build-essential libx11-dev libxft2-dev xorg-dev - Here you start with configuration, there are many compilation options. You can check them by entering
./configure --help - I used the following command, the python parameter is to instruct the compiler to compile the python interface
./configure --enable-opengl --prefix=/usr/local --enable-python - Now the making
sudo make - The installing
sudo make install - Now go to
gedit /etc/ld.so.conf.d/libc.conf - Add the following line, do not forget to replace $ROOT by the path to the root folder on your computer
$ROOT/lib sudo ldconfig
This worked for me.
ENJOY!









