Applied statistic computing setup:
Mac type OS:
To compile you will need to have the xcode with command line tools installed. You can install xcode from the appstore and command line tools from within xcode:
xcode
preferences
downloads

Download the Root source code from the following page. Choose the 'pro' version (currently 5.34/09).

  • ROOT source code

    Move the tarball to where you want your install directory to be. Untar the package:
    tar -zxvf root_v5.34.09.source.tar.gz
    Go to the folder you have just created and configure the package:
    ./configure --enable-tmva
    Once the configure script has run and given a success exit status, you can compile the package (This will take some time (~30 minutes on newer macs)!).
    make
    The last step is to add ROOT to your LD_LIBRARY_PATH. To do this, add
    source 'PATH_TO_WHERE_YOU_COMPILED_ROOT'/bin/thisroot.sh
    To the end of your .bashrc or .bash_login file you can find in your home directory.
    Test if root works by typing in your terminal:
    root
    You should enter the root interpreter and a window should pop up saying ROOT, something something.
    Test if pyroot works by typing in your terminal:
    python
    import ROOT
    It you don't get any error message, everything is working fine. You can exit the python enviroment by typing exit() or ctrl+d (i.e. holding control and d and the same time) If it isn't working, then it might be because Python doesn't know where to look for ROOT, and you need to set your environment variables.



    Note: No worries if you are not able to get it working from home. We will figure it out during one of the computing intro days.