Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Luter 345 Experiments
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Installing ROOT
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Get shortened URL
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
The edit appears to have already been undone.
Anti-spam check. Do
not
fill this in!
==== Step 1: Update system, and install prerequisite packages ==== Choose Applications->System Tools->Terminal to open a terminal window. You should also add this to the Panel by choosing Applications->System Tools->Right Click on Terminal and choose "Add this launcher to panel". Update the system (you will need to enter the root password again when prompted, and choose the default options): <syntaxhighlight lang="bash"> sudo yum update </syntaxhighlight> Install the ROOT required packages: <syntaxhighlight lang="bash"> sudo yum install git make gcc-c++ gcc binutils libX11-devel libXpm-devel libXft-devel libXext-devel </syntaxhighlight> Install the ROOT optional packages: <syntaxhighlight lang="bash"> sudo yum install gcc-gfortran openssl-devel pcre-devel mesa-libGL-devel glew-devel ftgl-devel mysql-devel sudo yum install fftw-devel cfitsio-devel graphviz-devel avahi-compat-libdns_sd-devel sudo yum install libldap-dev python-devel libxml2-devel gsl-static </syntaxhighlight> ==== Step 2: Download and install ROOT from source using make ==== From a terminal window, in the home directory of the local user that you created, do: <syntaxhighlight lang="bash"> git clone http://root.cern.ch/git/root.git </syntaxhighlight> Note that downloading the source could take several minutes. Once downloaded, there should be a new "root" directory under your home directory. Now, do: <syntaxhighlight lang="bash"> cd root git checkout -b v5-34-08 v5-34-08 ./configure --prefix=/usr/local make sudo make install </syntaxhighlight> Note that the C++ compiler that ships with Centos6.6 is not compatible with ROOT version 6. Thus, we need to work with ROOT version 5, and so that is why we checkout a stable version 5 branch of ROOT above. Also, the make command above might take 30 minutes or so to complete, depending on the machine that you are working on. Update the ldconfig cache by doing: <syntaxhighlight lang="bash"> sudo ldconfig </syntaxhighlight> Set up the PATH and LD_LIBRARY_PATH environment variables by doing: <syntaxhighlight lang="bash"> source /usr/local/bin/thisroot.sh </syntaxhighlight> To make this permanent, you should add this command to the .bashrc file in your home directory. To do this, execute the following: <syntaxhighlight lang="bash"> cd gedit .bashrc </syntaxhighlight> Add the source line above to this file, and then save the file and exit the editor. Finally, try running ROOT: <syntaxhighlight lang="bash"> root </syntaxhighlight>
Summary:
Please note that all contributions to Luter 345 Experiments may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Luter 345 Experiments:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)