大脸猫爱吃鱼

Centos7安装TEMPO2

字数统计: 445阅读时长: 2 min
2018/12/16 Share

开个小头
Centos 7 安装Tempo2
过程心酸,十分复杂,简直爆炸
需要安装一些依赖软件

  1. PGPLOT
  2. FFTW3
  3. CFITSIO
  4. CALCEPH
  5. GSL
  6. OpenMP(可选)
  • PGPLOT
  • FFTW3
  • CFITSIO
  • CALCEPH

安装时可能会出现错误

ERROR!
You probably have to install the development version of the Python package
for your distribution. The exact name of this package varies among them.

原因:
1.概述
具体报错

checking python extra linking flags… -Xlinker -export-dynamic
checking consistency of all components of python development environment… no
configure: error: in `/home/m/Desktop/pkgs/calceph-2.3.2’:
configure: error:
Could not link test program to Python. Maybe the main Python library has been
installed in some non-standard library path. If so, pass it to configure,
via the LIBS environment variable.
Example: ./configure LIBS="-L/usr/non-standard-path/python/lib"

这是因为缺少python开发包的原因。

2.解决方案
如果你使用的是centOS系统,或者支持yum的系统,那么可以通过如下方式进行安装:
yum search python | grep -i devel
通过上面命令会找到devel开发包,然后再运行下面命令进行安装:
yum install python-devel.x86_64

安装
报错
configure: PGPLOT linking flags are “-L/usr/local/pgplot/ -lcpgplot -lpgplot -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/…/…/…/…/lib64 -L/lib/…/lib64 -L/usr/lib/…/lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/…/…/… -lgfortran -lm -lquadmath -lX11”
configure: Plugins: GSL was not found - plugins requiring GSL will not be compiled
configure: Plugins: FFTW3 was not found - plugins requiring fftw will not be compiled
configure: Using OpenMP for multithreading
configure: Calceph library was not found

解决:

烂尾了。。。。
因为现在转投Ubuntu+docker阵营了。

在Ubuntu18.04大部分库的安装都十分方便。
在docker上面只要安装docker就好了。
所以:
https://github.com/Miao-cc/dockerHub.git

这是tempo2的docker版本。
当然大家也可以根据我的docker脚本写一个shell脚本来安装tempo2。

CATALOG