解决使用Gate出现Gate: error while loading shared libraries: libG4Tree.so: cannot open shared object file: No such fi的问题
解决方法
检查geant4是否安装,并配置好环境变量 ,假如你的geant4安装在默认位置(/usr/local),则按照下面配置环境变量
# 注意查看目录下是否存在文件
source /usr/local/bin/geant4.sh
source /usr/local/share/Geant4-10.5.1/geant4make/geant4make.sh
如果你的geant4在其他地方安装则按照下面配置环境变量
# 注意查看目录下是否存在文件
source /your_geant4_install_path/bin/geant4.sh
source /your_geant4_install_path/share/Geant4-10.5.1/geant4make/geant4make.sh