heasoft和hxmtsoft一起安装
1.安装教程
1.1安装依赖
#Ubuntu系统
sudo apt-get -y install libreadline-dev
sudo apt-get -y install libcurl4
sudo apt-get -y install libcurl4-gnutls-dev
sudo apt-get -y install libncurses5-dev
sudo apt-get -y install xorg-dev
sudo apt-get -y install gcc g++ gfortran
sudo apt-get -y install perl-modules
sudo apt-get -y install python3-dev
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export FC=/usr/bin/gfortran
export PERL=/usr/bin/perl
export PYTHON=/usr/bin/python
#Archlinux系统
sudo pacman -S fftw readline curl gcc gcc-fortran gcc-libs perl python
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export FC=/usr/bin/gfortran
export PERL=/usr/bin/perl
export PYTHON=/usr/bin/python
1.2安装heasoft和hxmtsoft
#标定数据库的安装
#1.先解压CALDB包
#2.再将CALDB拷贝到一个路径下(可以先创建一个专门存放caldb的路径)
cp -r CALDB /path/to/caldb/
#3.在~/.bashrc里添加如下内容
export CALDB=/path/to/caldb/CALDB
export CALDBCONFIG=$CALDB/caldb.config
export CALDBALIAS=$CALDB/software/tools/alias_config.fits
#1.先解压heasoft和hxmtsoft包
#2.再将hxmtsoft/hxmt拷贝到heasoft目录下
cp -r /path/to/hxmtsoft/hxmt /path/to/heasoft/
cd /path/to/heasoft/BUILD_DIR
#3.把configure文件中的mpfit_required=no改为mpfit_required=yes
./configure --with-components="heacore tcltk attitude heasptools heatools heagen demo ftools heasim Xspec integral maxi nicer nustar hitomi suzaku swift hxmt"
make
make install
1.3配置heasoft的初始化
#1.在~/.bashrc里添加如下内容
export HEADAS=/home/username/path/to/heasoft/(PLATFORM)
#In the examples above, (PLATFORM) is a placeholder for the platform- specific string denoting your machine's architecture, for example:x86_64-pc-linux-gnu-libc2.29
alias h=". $HEADAS/headas-init.sh"
2.安装成功检验
#初始化heasoft
h
成功显示
#检验fv
fv
成功显示
#检验xspec
xspec
成功显示
#检验hxmtsoft是否安装成功
hepical
成功显示
有问题可以联系liruizhi0871 [AT]gmail.com