Compiling and installing ROOT on Ubuntu

  1. First you need to download the source code package.
  2. Uncompress the source code package.
  3. Enter the folder
  4. Now you need to install the required packages
    • sudo apt-get install build-essential libx11-dev libxft2-dev xorg-dev
  5. Here you start with configuration, there are many compilation options. You can check them by entering 
    • ./configure --help
  6. 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 --enable-debug<br />
  7. Now the making 
    • sudo make
  8. The installing 
    • sudo make install
  9. Now go to 
    • gedit /etc/ld.so.conf.d/libc.conf
  10. Add the following line, do not forget to replace $ROOT by the path to the root directory on your computer 
    • $ROOT/lib
  11. Save the changes to the file and then enter
    • sudo ldconfig

This worked for me.

ENJOY!