Jun 132012
 

This is a follow up post for the older one on installing an older ROOT version on 10.7 Lion.

Prerequisites

First, you need to install XCode 4.4 which can be found in the Mac App Store (rather in the Mac Dev program as long as it’s not released). Then open it and install the command line tools from the its preferences pane. Then install Homebrew using ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)".

ROOT Installation

Installing ROOT using configure and make is fairly easy. I recommend the following procedure on 10.8 Mountain Lion as it is easy and convenient:

brew update
brew install gfortran
sudo mkdir -p /opt/local
sudo chown -R $USER:wheel /opt
cd /opt/local
# Check for newer versions: http://root.cern.ch/drupal/content/downloading-root
curl -C - -O ftp://root.cern.ch/root/root_v5.34.00.source.tar.gz
tar -xf root_v5.34.00.source.tar.gz
mv root root_v5-34-00
cd /opt/local/root_v5-34-00
# consider adding more configure options to add more language bindings etc.:
./configure
# On a dual core processor, use j=3, on a quad core use j=5:
make -j 3

Now you should be able to run the interpreter CINT provided by ROOT by entering

. /opt/local/root_v5-34-00/bin/thisroot.sh
root -l

More configure options

There are nice configure options available for different language bindings and additional features. Running /opt/local/root_v5-34-00$ ./configure --help reveals them.

Enable Python Bindings

http://root.cern.ch/drupal/content/how-use-use-python-pyroot-interpreter

--enable-python

Enable Ruby Bindings

http://root.cern.ch/drupal/content/how-use-ruby-interpreter (old: http://root.cern.ch/root/HowtoRuby.html)

--enable-ruby

Resources

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)

Related Posts:

  • No Related Posts

  6 Responses to “Installing ROOT CERN on Mac OS X 10.8 Mountain Lion”

  1. I use Fink instead of Homebrew, it worked before under Lion, but even with XQuartz installed and with Xlib.h file in /opt/X11/include/X11/Xlib.h The following error message still shows up and stops me ‘X11/Xlib.h’ file not found

    VA:F [1.9.22_1171]
    Rating: +4 (from 4 votes)
    • you have to relogin after installing XQuartz, before make

      VA:F [1.9.22_1171]
      Rating: 0 (from 0 votes)
      • I did relogin….but it’s still not working

        VA:F [1.9.22_1171]
        Rating: 0 (from 0 votes)
  2. Good manual, but pyROOT does not work.

    Errors are:

    import ROOT
    Traceback (most recent call last):
    File "", line 1, in 
    File "ROOT.py", line 85, in 
    import libPyROOT as _root
    ImportError: No module named libPyROOT
    

    And really, there is no libPyROOT.so in $ROOTSYS/lib This error is after ./configure –enable-python

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  3. Maybe this would help somehow

    Download python 2.7.3 installer from http://python.org/download/ — it is needed for configuring root.

    Do configure with next flags:

    ./configure --with-python-incdir=/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/ --with-python-libdir=/Library/Frameworks/Python.framework/Versions/2.7/lib/

    do make, and pyROOT should work

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  4. Hi, the installation worked, but after I typed that . /opt/-thing and root -l it says: can't figure out DISPLAY, set it manually In case you run a remote ssh session, restart your ssh session with: =========> ssh -Y

    What did I wrong?

    Thanks for help.

    VA:F [1.9.22_1171]
    Rating: +1 (from 1 vote)

 Leave a Reply

(required)

(required)


nine × 3 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>