I have just started a master’s project and am trying to get up and running with ROOT.
Here is what I have done so far.
Install Scientific Linux 6.5
log in to root
type visudo to open /etc/sudoers
press insert to start editing
Scroll down to where it says “root ALL=(ALL) ALL” and add a new line with "username ALL=(ALL) NOPASSWD:ALL"
press escape to stop editing
press shift(hold)+Z+Z to quit and save
You should now have root priveleges on your account by using the sudo command.
download YUM from “yum.baseurl.org” then unzip and untar it “gunzip yum.X.X.X.tar.gz” "tar xf yum.X.X.X.tar"
navigate to home directory (command “cd”) and open the .bash_profile file with “sudo nano .bash_profile” here you can add paths that linux can run programs from without having to be inside that directory. type "PATH=$PATH:/directory/of/executable"
use yum to install (with “sudo yum install /name/”):
(ROOT 6 requires g++ 4.8 or clang 3.4; for SLC5/SLC6, gcc 4.8 is available in the developer toolset) for /usr/bin/g++
for usr/include/X11/Xlib.h and for /usr/lib/libX11.so
for /usr/include/X11/xpm.h and for /usr/lib/libXpm.so
for /usr/include/X11/Xft/Xft.h and for /usr/lib/libXft.so
for /usr/include/X11/extensions/shape.h and for /usr/lib/libXext.so
(ROOT6 requires version >= 2.5)
Download root from "root.cern.ch/drupal/content/downloading-root"
Make sure to download the version the corresponds to your version of Scientific Linux and GCC (which
you can check with “yum list gcc”)
now unzip and tar the file just like with yum.
next we need to set a global variable for our new root(application) folder.
type “export ROOTSYS=/absolute/path/of/root” you can test this was done correctly by starting from and random file and typing “cd $ROOTSYS” this should take you to your root(application) file.
next we need to add the location of root.exe into our PATH variable. To do this type “export
PATH=$PATH:$ROOTSYS/bin”. Paths holds many different directories and this ads $ROOTSYS/bin to the
already existing PATH variable. (directories separated by “:”)
Next I tried to run ROOT by typing “root” into the terminal.
I got the error “cannot execute binary file”. I am using gcc version 4.4.7 and SL6.5.
I am at a loss. Any help would be appreciated.