Packaged need on Ubuntu 14.04 before installing Geant4
After some failed attempts of intalling Geant4 on windows 7, I though I would give it a try on Ubuntu.
Ubuntu on Windows 7:
For that I first installed Virtual Box on windows 7.Inside Virtual box I installed Ubuntu 14.04
Ubuntu Packages list for Geant4:
Most of these packages were installed through Synaptic package manager on Ubuntu14.04, because it handles the dependencies/installation in a better way. If not, then from apt-get.
1. g++-4.9
2. Make
3. Cmake-2.8
4. Xerces-c++
5. Opengl
6. Qt4.8
7. motif UI
8. x11
9. libxmu-dev
10. libxmu-header
Installation procedure
The detailed procedure is very well described in the Geant4 installation manual. Here, I assume that you already have gone through it or have it open alongside. Also, that you have already downloaded the Source code folder and all the Data files.
Before I start installation, this is the folder structure created as below, as a cleaner way of working.
Geant4 (Parent folder created by me. Inside this I placed everything related to Geant4)
|--- geant4_10_01_p02-Source (This is the unzipped source code folder renamed)
|--- geant4_10_01_p02-Install (Created by me. This will contain the Geant4 install)
|--- geant4_10_01_p02-Data (Created by me. This will contain all the Geant4 Data you have downloaded and unzipped)
|--- geant4_10_01_p02-Build (Created by me. This will contain the Geant4 build)
|--- geant4_10_01_p02-WorkDir (Created by me. This will contain all of my work examples)
Instructions:
cd Geant4/geant4.10.01.p02-Build/
cmake -DCMAKE_INSTALL_PREFIX=path/to/geant4.10.01.p02-Install -DGEANT4_USE_SYSTEM_EXPAT=OFF -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_QT=ON -DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_INSTALL_DATADIR=path/to/geant4.10.01.p02-Data path/to/geant4.10.01.p02-Source
make -j2
make install
Done!
No comments:
Post a Comment