How to compile and install root data analysis framework from source code (via Github) in Ubuntu 14.04 LTS 64-bit:

Posted: 2016/06/02 in Ubuntu
Tags: , , , , , , , , , , , , ,
# How to compile and install root data analysis framework from source code (via Github) in Ubuntu 14.04 LTS 64-bit:
# Please run the following Terminal commands ONE LINE AT A TIME manually in bash shell
# The following commands CANNOT be successfully run using a bash script due to the way the privilege escalation occurs!
cd
sudo apt-get update
sudo apt-get build-dep root-system
sudo apt-get install aptitude curl cmake git checkinstall build-essential  git-core 
sudo aptitude install libafterimage-dev  freeglut3-dev    libftgl-dev    libgl1-mesa-dev   libglew-dev    libglu1-mesa-dev libnet-dev libroot-net-dev
sudo aptitude install  libiodbc2-dev   libqt4-opengl-dev mesa-common-dev  libdrm-dev  libiodbc2  libdrm-intel1 libxpm-dev libxft-dev
sudo rm -rf root
git clone http://root.cern.ch/git/root.git
cd root
sudo ./configure
sudo make
# use the following command to speed up the compilation process if you are using an 8-core CPU:
#sudo make -j8
sudo su
source bin/thisroot.sh
export ROOTSYS=/home/`logname`/root
checkinstall 
# during checkinstall process, press 3 and manually change 'Version' to 20160602
apt-cache show root
ln -s $ROOTSYS/bin/root  /usr/bin/root
# exit the bash shell session, open a new Terminal window and run the following Terminal command to start the root data analysis framework:
root
Advertisements
Comments
  1. Alexandre says:

    Hi,
    Thank you for posting this. I’ve managed to follow the procedure to checkinstall. At this point, I got an error message about building the debian package…failed.
    Do you have any idea on what to do in this case ?
    Thanks !

  2. mark911 says:

    @Alexandre: I suggest posting the full Terminal output and error message(s) here: https://answers.launchpad.net/ubuntu/+addquestion

  3. mark911 says:

    @Alexandre: I have tried this procedure again and it still works for me in Ubuntu 16.04 LTS 64-bit. I only had to add one extra command to the bash script above: sudo apt-get build-dep root-system

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s