Articles

ROOT installation on Ubuntu 10.04

In howto on Apr 16, 2010 by theoryl Tagged: , , , , , , ,

I upgraded Ubuntu from 8.04 to 10.04, so I needed to build ROOT, which is the bread and butter of some scientists (but perhaps not a lot of love). ROOT is now available via subversion (svn), making it much easier to update/patch.

Install ROOT v5.26/00b on Ubuntu 10.04:

  1. Download ROOT via svn checkout. For simplicity, I assume it is downloaded to the home area:
    $ svn co http://root.cern.ch/svn/root/tags/v5-26-00b ~/root
    $ cd ~/root
  2. Get all the dependencies:
    $ sudo apt-get install build-essential libx11-dev libxpm-dev libxft-dev libxext-dev
  3. Configure. Here I enable most of the features to save myself worry about missing libraries in the future:
    $ ./configure linux --enable-mathcore --enable-mathmore --enable-roofit --enable-minuit2 --enable-gdml --enable-table
    (to change the installation directory, add --prefix=/path/to/installation/directory/)
  4. Make
    $ make
    (use make -j n if you have a n-core machine)
  5. Install
    $ make install
    (might need sudo depending on which directory ROOT is installed into)


To run ROOT, the environment variables need to be set. For bash shell:
$ export ROOTSYS=$HOME/root
$ export PATH=$ROOTSYS/bin:$PATH
$ export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH

For c-shell:
$ setenv ROOTSYS $HOME/root
$ setenv PATH $ROOTSYS/bin:$PATH
$ setenv LD_LIBRARY_PATH $ROOTSYS/lib:$LD_LIBRARY_PATH

Equivalently, they can be set by doing
$ source $HOME/root/bin/thisroot.sh (or thisroot.csh for c-shell)

To avoid setting the above variables every time, you can put the commands into ~/.bashrc (or ~/.cshrc).

Now try running ROOT:
$ root

You should see the ROOT splash screen! Please report if there is any inaccuracy.


Also throwing in some random info below:

  • To get Adobe Flash Player & Acrobat Reader Ubuntu 10.04, go to System –> Administration –> Software Sources, enable Multiverse and Partner repositories, then do:
    $ sudo apt-get install flashplugin-installer acroread
  • For GNOME, follow this thread: https://bugs.launchpad.net/ubuntu/+source/nautilus-open-terminal/+bug/162352 to set a keyboard shortcut for opening terminal in the current directory.
  • \LaTeX is in the package texlive (additionally texlive-latex-extra)
  • Nautilus now uses breadcrumb as the default. To edit the location, press CTRL+L
Advertisements

6 Responses to “ROOT installation on Ubuntu 10.04”

  1. Great post theoryl! Your instruction were clear and easy. The only issue is that instead of

    > ./configure

    I had to run

    > ./configure –prefix=/usr

    and then everything went according to plan.

    -Justin

  2. Also, for any beginners out there, like myself. You may want to

    >sudo make

    or just run make as the su.

    -Justin

  3. nice example, however I had issues with 64bit machine (ubuntu 10.04) which was solved by using

    ./configure linuxx8664gcc

    hih,

    best

  4. sudo apt-get install flashplugin-installer acroread

    Wot does that do for root?

  5. I’ve installed Ubuntu 11.04 (server)the first time.
    And I need to build ROOT.
    But I have not ever been installed ROOT.
    I don’t know the method.
    How should I instll ROOT?

    1. Installing ROOT from Source ?

    2.Choosing the installation method ? ( Ubuntu 11.04 (server))

    – Location independent installation ?
    – location dependent ?

    3. installation procedure ?

  6. I’ve installed Ubuntu 11.04 (server)the first time.
    And I need to build ROOT.
    But I have not ever been installed ROOT.
    I don’t know the method.
    How should I install ROOT?

    1. Installing ROOT from Source ?

    2.Choosing the installation method ? ( Ubuntu 11.04 (server))

    – Location independent installation ?
    – location dependent ?

    3. installation procedure ?

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: