ROOT Installation

Installation of ROOT is different depending on the operating system and the installation method you are using. You can install ROOT either from the source or using one of the pre-build binaries which is the fastest way to get going. However, pre-build version may not always be compatible with your system, so you may have to install ROOT from the source. Here the installation from the pre-build binaries is explained. If you want/need to install ROOT from the source, then refer to the installation pages on the ROOT website. You might want to try installing from the pre-build binaries first regardless to save time.

Windows NT/2000/XP

In order to install ROOT on a windows system, you need to install CYGWIN first. Cygwin is a Linux-like environment for windows.

Mac OS X

In order to run ROOT on Mac OS X, you need to have XFree86 installed on your system. You can find the latest version and instructions to install XFree86 here.

  1. Download pre-build binaries of the current recommended ROOT version 4.04/02g for Mac OS X 10.4.0 with gcc4.0 or 10.3.9 with gcc3.3 and save it in /usr/local directory.
  2. Open an xterm and run the following commands; This will uncompress the file and you will have a new directory called root/.
  3. Add the following 3 environment variables to your .bashrc file;
  4. OR if any other sh family shell environment;
  5. You can now open a new xterm, simply type root and press Enter to run ROOT. To quit ROOT session, type .q .
  6. Note that the ROOTSYS environment variable is set to /usr/local/root where you installed ROOT if you followed these instructions. You can install ROOT anywhere in your hard drive as long as you set the ROOTSYS variable to point to the right place.

Linux

In order to run pre-build binaries of ROOT on a Linux system, no additional programs/packages are needed, so you can

  1. Download pre-build binaries of the current recommended ROOT version 4.04/02g from here. Choose the one that is closest to your system and save it in /usr/local directory.
  2. Open an xterm and run the following commands;
  3. Add the following 3 environment variables to your .bashrc file;
  4. OR if any other sh family shell environment;
  5. You can now open a new xterm, simply type root and press Enter to run ROOT. To quit ROOT session, type .q .
  6. Note that the ROOTSYS environment variable is set to /usr/local/root where you installed ROOT if you followed these instructions. You can install ROOT anywhere in your hard drive as long as you set the ROOTSYS variable to point to the right place.

Physics Department Linux Machines: fate-1, fate-2, fate-3

If you don't have an account on the department linux servers, then it is recommended that you get one by contacting Howard Peng, System Administrator.

If you already have an account on the Linux servers of the department, then all you need to do is add the following 3 environment variables in your .bashrc file;

OR if any other sh family shell environment;

And you are set to go. Open a new xterm, simply type root and press Enter to run ROOT. To quit ROOT session, type .q .