Updating Geant4
From UCL HEP PBT Wiki
m  | 
		m  | 
		||
| Line 9: | Line 9: | ||
2. Change the present working directory to the Geant4-build directory using the command:    | 2. Change the present working directory to the Geant4-build directory using the command:    | ||
| - | + | <pre style="color: #800000; background-color: #dcdcdc">  | |
cd /home/your_name/Desktop/Geant4-build  | cd /home/your_name/Desktop/Geant4-build  | ||
| - | + | </pre>  | |
3. Type the command:    | 3. Type the command:    | ||
| + | <pre style="color: #800000; background-color: #dcdcdc">  | ||
make uninstall  | make uninstall  | ||
| + | </pre>  | ||
4. 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    | 4. 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    | ||
| - | + | <pre style="color: #800000; background-color: #dcdcdc">  | |
cd/home/your_name/Desktop  | cd/home/your_name/Desktop  | ||
| - | + | </pre>  | |
5. Now type the following command to delete the Geant4-build folder:  | 5. Now type the following command to delete the Geant4-build folder:  | ||
| + | <pre style="color: #800000; background-color: #dcdcdc">  | ||
rm –rf Geant4-build  | rm –rf Geant4-build  | ||
| + | </pre>  | ||
6. When this is finished type the following command to delete the Geant4-install folder:  | 6. When this is finished type the following command to delete the Geant4-install folder:  | ||
| + | <pre style="color: #800000; background-color: #dcdcdc">  | ||
rm –rf Geant4-install  | rm –rf Geant4-install  | ||
| + | </pre>  | ||
7. Type the command '''exit''' to quit root-user mode  | 7. Type the command '''exit''' to quit root-user mode  | ||
8. Now download the updated version of Geant4 and install it as directed by pp. 4-5 (using cmake –DCMAKE…..)  | 8. Now download the updated version of Geant4 and install it as directed by pp. 4-5 (using cmake –DCMAKE…..)  | ||