如何安装PSRCHIVE – how to install PSRCHIVE
如果只是使用,那么可以使用下面一个命令来获取FFTW的运行环境(需要安装docker):
1 2 3
| $ docker run -it shaoguangleo/ubuntu-psrchive
$ docker run -it shaoguangleo/centos-psrchive
|
如果希望运行图形界面,运行下述命令:
1 2 3
| $ docker run -it -e DISPLAY=unix$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix shaoguangleo/ubuntu-psrchive
$ docker run -it -e DISPLAY=unix$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix shaoguangleo/centos-psrchive
|
如果希望体验一下源码安装,安装如下所示,配置参考[ASTROSOFT_CONFIG][astrosoft_config]:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| $ source astrosoft_config.sh
$ git clone $PSRCHIVE_WEBSITE psrchive_src
$ source $ASTROSOFT/start_tempo2.rc $ source $ASTROSOFT/start_pgplot.rc $ source $ASTROSOFT/start_psrcat.rc $ export PSRCHIVE=$ASTROSOFT/psrchive $ export PATH=$PATH:$PSRCHIVE/bin $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ASTROSOFT/epsic/lib
$ cd psrchive_src $ ./packages/epsic.csh $ ./bootstrap $ ./configure --prefix=$ASTROSOFT/psrchive --with-cfitsio-dir=$ASTROSOFT/cfitsio --enable-shared CFLAGS=-fPIC FFLAGS=-fPIC
$ make $ make install $ make clean
|