CentOS8安裝Geant4筆記(一):Geant4介紹、編譯和安裝
前言
GEANT4
介紹
版本
下載
提前安裝的包
yum install gcc g++
yum install cmake
編譯安裝Geant4
步驟一:解壓geant4
mkdir /path/to -p
步驟二:使用CMake配置
mkdir /path/to/geant4-v11.0.0-buildcd /path/to/geant4-v11.0.0-build
cmake -DCMAKE_INSTALL_PREFIX=/path/to/geant4-v11.0.0-install /path/to/geant4-v11.0.0
cmake -DCMAKE_INSTALL_PREFIX=/path/to/geant4-v11.0.0-install GEANT4_USE_QT=ON /path/to/geant4-v11.0.0
yum install -y expat expat-devel
cmake -DCMAKE_INSTALL_PREFIX=/path/to/geant4-v11.0.0-install /path/to/geant4-v11.0.0
mkdir /path/to/geant4-v11.0.0-install/share/Geant4-11.0.0/data -pcd /path/to/geant4-v11.0.0-install/share/Geant4-11.0.0/datacp /home/yang/work/src/* . -Rf
tar xvf G4ABLA.3.1.tar.gztar xvf G4INCL.1.0.tar.gztar xvf G4PhotonEvaporation.5.7.tar.gztar xvf G4RealSurface.2.2.tar.gztar xvf G4EMLOW.8.0.tar.gztar xvf G4NDL.4.6.tar.gztar xvf G4PII.1.3.tar.gztar xvf G4SAIDDATA.2.0.tar.gztar xvf G4ENSDFSTATE.2.3.tar.gztar xvf G4PARTICLEXS.4.0.tar.gztar xvf G4RadioactiveDecay.5.6.tar.gztar xvf G4TENDL.1.4.tar.gz
步驟三:編譯make
cd /path/to/geant4-v11.0.0-buildmake -j4
步驟四:安裝install
make install
測試執行環境
source /path/to/geant4-v11.0.0-install/bin/geant4.sh
cd /path/to/geant4-v11.0.0/examples/basic/B1mkdir buildcd build cmake ..
make
./exampleB1
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70010283/viewspace-2865552/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- CentOS8安裝Geant4筆記Geant4介紹、編譯和安裝CentOS筆記編譯
- CentOS8安裝Geant4筆記(三):Geant4介紹、編譯、安裝支援Qt5介面CentOS筆記編譯QT
- CentOS8安裝Geant4筆記(二):CentOS8安裝Qt5.15.2並測試執行環境CentOS筆記QT
- Geant4在Ubuntu下的安裝教程Ubuntu
- Centos8編譯安裝核心CentOS編譯
- 04 原始碼編譯安裝與介紹原始碼編譯
- Ubuntu中CLion編譯Geant4專案Ubuntu編譯
- es筆記一之es安裝與介紹筆記
- .NET Core 實戰筆記1-介紹和安裝筆記
- Centos8 stream系統編譯安裝Apache教程。CentOS編譯Apache
- Centos8 stream系統編譯安裝PHP教程。CentOS編譯PHP
- Centos8 stream系統編譯安裝Docker教程。CentOS編譯Docker
- Centos8 stream系統編譯安裝Memcached教程。CentOS編譯
- Centos8 stream系統編譯安裝Redis教程。CentOS編譯Redis
- Tensorflow介紹和安裝
- Centos8 stream系統編譯安裝phpMyAdmin教程。CentOS編譯PHP
- Centos8 stream系統編譯安裝Tomcat教程。CentOS編譯Tomcat
- RabbitMQ系列隨筆——介紹及安裝MQ
- Centos8 stream系統編譯安裝MySQL5.7教程。CentOS編譯MySql
- Centos8 stream系統編譯安裝Pure-Ftpd教程。CentOS編譯FTP
- MySQL 安裝介紹MySql
- Go 安裝介紹Go
- docker介紹、安裝Docker
- Sqoop的介紹和安裝OOP
- 編譯安裝zabbix編譯
- apache編譯安裝Apache編譯
- 編譯安裝nmon編譯
- swoole 編譯安裝編譯
- 編譯安裝Nginx編譯Nginx
- 編譯安裝mysql編譯MySql
- nginx編譯安裝Nginx編譯
- 安裝編譯ffmpeg編譯
- Griffin編譯安裝編譯
- STLPort的編譯和安裝 (轉)編譯
- ffmpeg安裝之linux編譯安裝Linux編譯
- TestNG簡單介紹以及安裝—學習筆記1筆記
- 麒麟系統開發筆記(三):從Qt原始碼編譯安裝之編譯安裝Qt5.12筆記QT原始碼編譯
- Greenplum_原始碼編譯安裝和RPM包安裝原始碼編譯