脉冲星计时软件tempo2的安装
南蛮狸狗
2021年07月05日 13:19

https://bitbucket.org/psrsoft/tempo2/src/master/

安装:

终端使用克隆命令

~$git clone https://bitbucket.org/psrsoft/tempo2.git

下载tempo2包(如果没有git,终端上~$sudo apt install git),克隆完成后主目录有tempo2文件夹。

终端进入tempo2文件夹,

~$./bootstrap(如果没有autoreconf,终端上~$sudo apt-get install autoconf automake libtool)

把tempo2复制到/usr/share里

~$sudo cp -r T2runtime /usr/share/tempo2/

然后

~$export TEMPO2=/usr/share/tempo2/

在.bashrc文件里加上

export TEMPO2=/usr/share/tempo2/

~$./configure

需要PGPLOT、GSL、FFTW3、cfitsio这几个包。

安装PGPLOT

~$sudo apt-get install pgplot5

安装GSL

进入http://mirrors.ustc.edu.cn/gnu/gsl/下载最新版gsl(例如gsl-2.7.tar.gz)

提取到主文件夹,进入gsl-2.7文件夹

~$./configure

~$make

~$sudo make install

编译成功后,默认安装在/usr/local

编辑/etc/profile

最后一行下面复制:

https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html下载cfitsio-3.49.tar.gz

~$./configure --prefix=/usr

~$make

~$sudo make install

~$make clean

装好这几个包之后继续编译tempo2

~$make

~$sudo make install

~$make plugins

~$make plugins-install

在.bashrc文件里加上

alias tempo2=/usr/share/tempo2/bin/tempo2

完成