1.安装各种工具包( Ubuntu has good XXXX packages)
-
libfftw3-bin 和 libfftw3-dev
-
pgplot5
-
libglib2.0-dev libx11-dev libpng-dev
-
libcfitsio3 and libcfitsio3-dev(这些可能不够:后面编译不通过再把缺少的包补上 )
2.安装Tempo(git clone git://git.code.sf.net/p/tempo/temp)
-
./prepare (only if compiling from a CVS checkout)
-
./configure [any desired options]
-
make
-
make install (optional)
3.配置环境变量
-
#pgplot_dir
-
export PGPLOT_DIR=/usr/lib/pgplot5
-
#presto
-
export PRESTO=/home/binzhang/presto-master
-
#TEMPO
-
export TEMOPO=/home/binzhang/tempo
-
#lb_library_path
-
export LD_LIBRARY_PATH=/home/binzhang/presto-master/li
-
#pkg_config_path
-
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
-
export PYTHONPATH=/home/binzhang/presto-master/build/lib.linux-x86_64-3.7
4.编译
-
make makewisdom
-
make prep
-
make mpi
-
make clean