Fermi Science Tools的安装
此文最初于2019年12月21日发表于科学网博客,最近博客升级,博文对公众已不可见,现搬来博客园。
1. 准备:(U为我的用户名)
Heasoft安装:https://heasarc.gsfc.nasa.gov/lheasoft/ubuntu.html
下载软件:https://fermi.gsfc.nasa.gov/ssc/data/analysis/software/v10r0p5.html
[U@U ~]$ sudo apt-get install perl-modules
[U@U ~]$ ls /lib/libc-*
ls: cannot access /lib/libc-*: No such file or directory
[U@U ~]$ mkdir HEsoftware
[U@U ~]$ wget https://fermi.gsfc.nasa.gov/FTP/fermi/software/ScienceTools/v10r0p5/ScienceTools-v10r0p5-fssc-20150518-x86_64-unknown-linux-gnu-libc2.12A.tar.gz ./HEsoftware # 版本可选
2. 安装:
[U@U ~]$ cd ./HEsoftware
[U@U HEsoftware]$ ls
ScienceTools-v10r0p5-fssc-20150518-x86_64-unknown-linux-gnu-libc2.12A.tar.gz
[U@U HEsoftware]$ sudo chmod 777 *gz
[U@U HEsoftware]$ tar zxvf *gz
[U@U HEsoftware]$ cd ScienceTools-v10r0p5-fssc-20150518-x86_64-unknown-linux-gnu-libc2.12/x86_64-unknown-linux-gnu-libc2.12/BUILD_DIR/
[U@U BUILD_DIR]$ sudo ./configure >& configure.out
3. 检查:
[U@U BUILD_DIR]$ ls con*.out
configure.out
[U@U BUILD_DIR]$ cat configure.out
checking for perl5... no
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating headas-setup
config.status: creating fermi-setup
Modifying fhelp to use Perl given by LHEAPERL at runtime.
Modifying hdmk to use Perl given by LHEAPERL at runtime.
Modifying memprobe to use Perl given by LHEAPERL at runtime.
Finished
4. 测试:
[U@U BUILD_DIR]$ cd ../
[U@U x86_64-unknown-linux-gnu-libc2.12]$ ls *.sh
fermi-init.sh
[U@U x86_64-unknown-linux-gnu-libc2.12]$ export FERMI_DIR=`pwd`
[U@U x86_64-unknown-linux-gnu-libc2.12]$ echo $FERMI_DIR
/home/U/HEsoftware/ScienceTools-v10r0p5-fssc-20150518-x86_64-unknown-linux-gnu-libc2.12/x86_64-unknown-linux-gnu-libc2.12
[U@U x86_64-unknown-linux-gnu-libc2.12]$
[U@U x86_64-unknown-linux-gnu-libc2.12]$ source $FERMI_DIR/fermi-init.sh
[U@U x86_64-unknown-linux-gnu-libc2.12]$ gtselect
gtselect: error while loading shared libraries: libcrypto.so.10: cannot open shared object file: No such file or directory
5. 设置环境变量:
[U@U x86_64-unknown-linux-gnu-libc2.12]$ echo "export FERMI_DIR=$FERMI_DIR" >> ~/.bashrc
[U@U x86_64-unknown-linux-gnu-libc2.12]$ echo "source $FERMI_DIR/fermi-init.sh" >> ~/.bashrc
[U@U x86_64-unknown-linux-gnu-libc2.12]$ sudo reboot
6. 使用:
- 链接1:Documentation
- 链接2:Prepare Fermi-LAT data

此文最初于2019年12月21日发表于科学网博客,最近博客升级,博文对公众已不可见,现搬来博客园。
浙公网安备 33010602011771号