|||
在潘之辰的大力帮助下,依靠他写的安装说明,我终于装好了Presto(至少看起来装好了)。由于我没有版权,我就不写怎么安装了,仅记录我走的弯路。这是给我自己的提示。
路径要设置对!路径要设置对!路径要设置对!
第一次,路径设置为
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${PRESTO_DEP}/fftw
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${PRESTO_DEP}/cfitsio
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${PRESTO_DEP}/pgplot-exe
export PGPLOT_DIR=${PRESTO_DEP}/pgplot-exe
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${PRESTO_DEP}/fftw/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${PRESTO_DEP}/cfitsio/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${PRESTO_DEP}/pgplot-exe
编译presto,报错说找不到cfitsio.pc,路径可能不对。咨询了潘之辰,路径改为
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${PRESTO_DEP}/fftw/lib/pkgconfig
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${PRESTO_DEP}/cfitsio/lib/pkgconfig
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${PRESTO_DEP}/pgplot-exe
export PGPLOT_DIR=${PRESTO_DEP}/pgplot-exe
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${PRESTO_DEP}/fftw/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${PRESTO_DEP}/cfitsio/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${PRESTO_DEP}/pgplot-exe
这一次
make makewisdom
make prep
make
都没问题。但是使用presto的命令的时候说是libpresto.so找不到,这回知道是路径没设置。于是加上
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${PRESTO}/lib:${PRESTO}/lib64
这回就对了。
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-12-25 10:34
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社