#author("2019-09-10T10:45:28+09:00","default:kondo","kondo") #author("2019-09-10T10:46:12+09:00","default:kondo","kondo") * geant4 [#v54d32e6] ** geant4.10.05.p1 installのメモ [#w549c1b7] tgzを展開して、/usr/local/src/geant4.10.05.p01に置く。 mkdir /usr/local/src/geant4.10.05.p01-build このディレクトリに、以下のスクリプト(run_cmake.sh)を作って実行。 cmake3 -DCMAKE_INSTALL_PREFIX=/usr/local/lib64/geant4.10.05.p01 \ -DGEANT4_INSTALL_DATA=ON \ -DGEANT4_USE_QT=OFF \ -DGEANT4_USE_OPENGL_X11=ON \ -DGEANT4_BUILD_MULTITHREDED=ON \ /usr/local/src/geant4.10.05.p01 cmake3はVer3系のcmake。Qtは鬱陶しいのでOFFにする。 その後、 make make -j4 終わったらrootになって、 make install で完了。 ** geant4.9.6.p01 isntall [#d83be8c2] tgzを~/exp/geant4/temp/に保存、展開。 ~/exp/geant4/temp/geant4.9.6.p01ができる。 [kondo@kurage temp]$ mkdir geant4.9.6.p01-build [kondo@kurage temp]$ cd geant4.9.6.p01-build [kondo@kurage geant4.9.6.p01-build]$ pwd /home/kondo/exp/geant4/temp/geant4.9.6.p01-build [kondo@kurage geant4.9.6.p01-build]$ cmake -DCMAKE_INSTALL_PREFIX=/home/kondo/exp/geant4/geant4.9.6.p01 -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_INSTALL_DATA=ON /home/kondo/exp/geant4/temp/geant4.9.6.p01 これでbuildのファイルが.../temp/geant4.9.6.p01-buildに出きるので、その後 [kondo@kurage geant4.9.6.p01-build]$ make -j4 [kondo@kurage geant4.9.6.p01-build]$ make install