Downloading the Geant4 package

From UCL HEP PBT Wiki

Jump to: navigation, search
m
m
Line 1: Line 1:
 +
<pre style="color:#ff0000; background:#ffffff">
'''NOTE:''' for the duration of this guide, replace ''“your_name”'' in any example directory with your username. You can find your username by clicking on the Linux menu button “System”. Next '''Preferences''' > '''About me'''. In the top-right hand corner your username will be written.
'''NOTE:''' for the duration of this guide, replace ''“your_name”'' in any example directory with your username. You can find your username by clicking on the Linux menu button “System”. Next '''Preferences''' > '''About me'''. In the top-right hand corner your username will be written.
-
 
+
<\pre>
To install Geant4 you will need to download the Geant4 Linux package.
To install Geant4 you will need to download the Geant4 Linux package.
Line 21: Line 22:
'''ONLY CARRY OUT THIS PAGE IF YOU CAN GET ROOT ACCESS'''
'''ONLY CARRY OUT THIS PAGE IF YOU CAN GET ROOT ACCESS'''
-
<pre style="color: red">
+
<pre style="color:#ff0000">
-
NOTE:  To install these additional libraries ensure you are using the terminal as a root user. If using a UCL computer, these libraries should already be installed and you can skip to the next page. If these libraries are not installed contacted your system administrator for help.
+
NOTE:  To install these additional libraries ensure you are using the terminal as a root user.  
 +
If using a UCL computer, these libraries should already be installed and you can skip to the  
 +
next page. If these libraries are not installed contacted your system administrator for help.
</pre>
</pre>
 +
How to use terminal as root user
How to use terminal as root user
 +
 +
Open a command terminal (as shown on the previous page) and type
Open a command terminal (as shown on the previous page) and type
'''“su”''' into the command terminal.
'''“su”''' into the command terminal.
-
You will then be prompted to enter a password. Please enter the root password that you set up when you installed linux. When you type the password you will '''not''' see any new characters appearing on the screen. THIS '''IS NORMAL'''. When you have entered your password, press the return key. You should now be presented with the line: [root@localhost your_name]#
+
You will then be prompted to enter a password. Please enter the root password that you set up  
 +
when you installed linux. When you type the password you will '''not''' see any new characters  
 +
appearing on the screen. THIS '''IS NORMAL'''. When you have entered your password, press the  
 +
return key. You should now be presented with the line: [root@localhost your_name]#
-
The first set of libraries you will need to install are the '''expat''' libraries. This library resolves '''XML''' files. To install these libraries type the command
+
The first set of libraries you will need to install are the '''expat''' libraries. This library  
 +
resolves '''XML''' files. To install these libraries type the command
 +
 +
<pre style="color: #800000; background-color: #dcdcdc">
sudo yum install expat*
sudo yum install expat*
 +
</pre>
-
The * makes sure that all libraries with the word “expat” are installed.
 
-
 
+
The * makes sure that all libraries with the word “expat” are installed. When prompted to type Y or  
-
When prompted to type Y or N, type '''Y''' followed by the '''return''' key.
+
N, type '''Y''' followed by the '''return''' key.
Line 47: Line 59:
 +
<pre style="color: #800000; background-color: #dcdcdc">
sudo yum install mesa*
sudo yum install mesa*
 +
</pre>
You will finally need to install the library '''cmake'''. This library allows you to build and run Geant4 simulations. Type the command
You will finally need to install the library '''cmake'''. This library allows you to build and run Geant4 simulations. Type the command
 +
 +
<pre style="color: #800000; background-color: #dcdcdc">
sudo yum install cmake
sudo yum install cmake
 +
</pre>

Revision as of 14:08, 16 July 2014

Personal tools