CentOS 7 安装FFTW3

来源:互联网 发布:手机淘宝怎么清除缓存 编辑:程序博客网 时间:2024/05/16 17:55

因为安装TEMPO2,PRESTO等软件都需要FFTW3的依赖,但是CentOS 7上没有FFTW3的rpm安装包,所以只能够手动编译安装。

首先是查看README

Please read chapter 10 “Installation and Customization” of the manual.
In short:
./configure
make
make install

这是最简单安装,但是这一步也是需要的。
我们不使用root用户权限安装,所以会安装在其他指定的文件夹下。
需要额外安装其他的可以使用./configure -h
则可以看见其他额外的安装选项。

  1. 建立文件夹
    mkdir /nfshome/mcc/psrsoft/fftw3
  2. 安装lfftw3
    ./configure --enable-shared --prefix=/nfshome/mcc/psrsoft/fftw3
    make
    make install
    make clean
  3. 安装lfftw3l
    ./configure --enable-shared --enable-single --enable-long-double --prefix=/nfshome/mcc/psrsoft/fftw3
    make
    make install
    make clean
    ./configure --enable-shared --enable-long-double --prefix=/nfshome/mcc/psrsoft/fftw3
    make
    make install
    make clean
  4. 安装lfftw3f
    ./configure --enable-shared --enable-float --prefix=/nfshome/mcc/psrsoft/fftw3
    make
    make install
    make clean

安装结束后将需要的LD_LIBRARY_PATH和PKG_CONFIG_PATH写入.bash_profile即可。

原创粉丝点击