Updating Geant4
From UCL HEP PBT Wiki
m (Created page with "Occasionally CERN will release patches or updates for Geant4. To update your version of Geant4 you will need root-access (using command “su”).   Before carrying out this proc...")  | 
		m  | 
		||
| Line 1: | Line 1: | ||
| - | Occasionally CERN will release patches or updates for Geant4. To update your version of Geant4 you will need root-access (using command “su”).    | + | Occasionally CERN will release patches or updates for Geant4. To update your version of Geant4    | 
| + | you will need root-access (using command '''“su”''').    | ||
| - | Before carrying out this process PLEASE make sure that you back-up any work that you have saved in the Geant4-build or Geant4-install directories.  | + | '''Before carrying out this process PLEASE make sure that you back-up any work that you have    | 
| + | saved in the Geant4-build or Geant4-install directories.'''  | ||
| + | |||
| + | # Open a command terminal and log in as root user. Type '''“su”''' followed by your password when prompted  | ||
| + | # Change the present working directory to the Geant4-build directory using the command:   | ||
| + | |||
| + | |||
| + | cd /home/your_name/Desktop/Geant4-build  | ||
| + | |||
| + | |||
| + | # Type the command: make uninstall  | ||
| + | # When this is done you will need to delete the folders Geant4-install and Geant4-build. To do this change your present working directory to the Desktop using the command   | ||
| + | |||
| + | |||
| + | cd/home/your_name/Desktop  | ||
| + | |||
| + | |||
| + | # Now type the following command to delete the Geant4-build folder:  | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
rm –rf Geant4-build  | rm –rf Geant4-build  | ||
| - | + | ||
| + | # When this is finished type the following command to delete the Geant4-install folder:  | ||
| + | |||
rm –rf Geant4-install  | rm –rf Geant4-install  | ||
| - | + | ||
| - | + | # Type the command '''exit''' to quit root-user mode  | |
| + | #Now download the updated version of Geant4 and install it as directed by pp. 4-5 (using cmake –DCMAKE…..)  | ||