Articles

ROOT installations on Ubuntu 8.04 and Leopard

In howto on May 31, 2008 by theoryl Tagged: , , , , , , ,

ROOT is an Object-Oriented Data Analysis Framework created by CERN to perform all kinds of scientific data manipulations. I’ll skip the intro and proceed to the ROOT installation on Ubuntu Hardy Heron (as well as Feisty Fawn) and on Mac OS X Leopard 10.5.2. You can find plenty of information at the ROOT website.

ROOT 5.18 setup on Ubuntu Hardy Heron:

  1. Get the source tarball (root_v5.18.00.source.tar.gz). I put it in the home directory (~) and cd to it.
  2. tar -xzf root_v5.18.00.source.tar.gz
  3. cd root # root is the directory you extracted from the tarball
  4. sudo apt-get install libX11-dev libXpm-dev libxft-dev build-essential libxext-dev # needed to build ROOT
  5. ./configure --prefix=/usr/local/root --libdir=/usr/local/root/lib --enable-minuit2 --enable-roofit
  6. make # if dual core processor, use make -j2
  7. make install
  8. The installation is done! Each time you want to run ROOT, you have to point to the right paths. This can be done by doing source /usr/local/root/bin/thisroot.sh (in a bash shell). You can also put the command in .bashrc to have it executed each time you open a terminal.


ROOT 5.19 setup on Mac OS X Leopard (note that version < 5.19 won’t run on Leopard):

  1. You must first install Xcode 3.0 (can be found at Apple website or in the installation disc).
  2. Get the source tarball (root_v5.19.04.source.tar.gz). Again I put it in the home directory (~) and cd to it. In Mac, you just have to double-click on the tarball to uncompress it.
  3. cd root # root is the directory you extracted from the tarball
  4. export ROOTSYS=$HOME/root #because my macbook uses bash shell, if yours is csh/tcsh shell, please do not follow the instructions here, but refer here
  5. export PATH=$ROOTSYS/bin:$PATH
    export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
    export DYLD_LIBRARY_PATH=$ROOTSYS/lib:$DYLD_LIBRARY_PATH
  6. ./configure macosx
  7. make -j2 # my macbook has a core 2 duo processor
  8. make install
  9. The installation is done! To run root, source /Users/<your-username>/root/bin/thisroot.sh (thanks to Joshua Lande for correcting me here)

Above information was taken from “Installing ROOT from Source” and Root Talk forum. Now just enter root in the terminal and you have the sophisticated software framework at your disposal!

Advertisements

3 Responses to “ROOT installations on Ubuntu 8.04 and Leopard”

  1. Thanks for your discussion of installing root. I have been trying to do it on Leopard and your discussion helped. I believe that step 9 for installing on Leopard should read

    9. The installation is done! To run root, source /Users/username/root/bin/thisroot.sh

    because ~ on the Mac refers to /Users/username

  2. You’re absolutely right! Thanks for pointing it out! I’ve forgotten to update it when I copied that line from the previous `ROOT installation on Ubuntu’ guide.

  3. Ah no problem. I make those mistakes all the time. Keep up the good work,

    Josh

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

%d bloggers like this: