I installed the following packages first. (I’ll add these to my kickstart file so they’re always installed.)

yum install python-devel \
python-imaging \
python-imaging-devel \
python-tools

My configure command:

./configure --with-python-incdir=/usr/include/python2.4 --with-python-libdir=/usr/lib64 --enable-qt --prefix=/code/root_v5.34.18_rhel5

When this finished, I just ran:

make -j2
make install

The -j2 basically means can use two cores on the cpu for ROOT. Probably could have done -j4, but thought I’d start with -j2 and see how it goes.

Next need to set the following environment variables:

export ROOTSYS=/code/root_v5.34.18_rhel5
export PATH=$PATH:$ROOTSYS/bin
export PYTHONPATH=$ROOTSYS/lib/root:/usr/lib/python2.4:/usr/bin/python
export LD_LIBRARY_PATH=$ROOTSYS/lib

To see what features are installed, can use:

$ root-config --features
asimage astiff builtin_afterimage builtin_ftgl builtin_glew builtin_pcre builtin_lzma cintex explicitlink genvector memstat opengl python reflex shadowpw shared tmva vdt x11 xft thread

TEST THAT IT’S INSTALLED CORRECTLY
In ROOT:

root [0] gSystem->Load("libPyROOT")
(int)0
root [1] TPython::Exec("print 1+1")
2
(Bool_t)1

In python:

>>> import ROOT
>>> import MH
Traceback (most recent call last):
  File "", line 1, in ?
ImportError: No module named MH

(No errors for ROOT is what we want.)