|||
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:http://cta.irap.omp.eu/ctools/users/tutorials/howto/fermi/howto_fermi_prepare.html
链接2:http://bzhang.lamost.org/website/archives/fermi_analysis_spectra/
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2025-1-8 20:56
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社