Download source and run ./configure. Settings of my last compilation:
./configure linuxx8664gcc --prefix=/code/root_v5.30.00_rhel5_x64
Be sure the following are installed:
libX11-devel
libXpm-devel
libXft-devel
libXext-devel
After make install, add the library to /etc/ld.so.conf and run ldconfig -v. Here is what my /etc/ld.so.conf file contains:
include ld.so.conf.d/*.conf /code/root_v5.30.00_rhel5_x64/lib/root
To run, set:
export ROOTSYS=/code/root_v5.30.00_rhel5_x64 export PATH=$ROOTSYS/bin:$PATH