Geant4를 소스로 부터 설치해 보자.
- 버전: v4-10.4-release (2018.09.21. 기준 최신 버전)
- 추가 이용 패키지: Geant4 data(필수), QT, GDML
소스 받기
git clone https://github.com/Geant4/geant4.git geant4.source
cd geant4.source/
cd geant4.source/
버전(v4-10.4-release) 소스 불러오기
git checkout geant4-10.4-release
설치
mkdir build
cd build
cmake -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_USE_QT=ON -DGEANT4_USE_GDML=ON -DGEANT4_INSTALL_DATA=ON ../
make
cd build
cmake -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_USE_QT=ON -DGEANT4_USE_GDML=ON -DGEANT4_INSTALL_DATA=ON ../
make
alias 설정
alias geant4='source [설치경로]/geant4.source/build/geant4make.sh'