1.安装blas库
从 http://www.netlib.org/blas/ 下载源码
$ tar -zxvf blas-3.8.0.tar.gz
$ cd blas-3.8.0
$ gfortran -c -O3 *.f
$ ar rv libblas.a *.o
$ sudo cp libblas.a /usr/local/lib64
2.安装cblas库
从 http://www.netlib.org/blas/ 下载源码
$ tar cblas-1.0.0.tar.gz
$ cd cblas-1.0.0
$ cp ../blas-3.8.0/libblas.a testing
$ make
$ sudo cp lib/cblas_LINUX.a /usr/local/lib/libcblas.a
3.安装lapack库
从 http://www.netlib.org/blas/ 下载源码
$ tar -zxvf lapack-3.9.0.tar.gz
$ cd lapack-3.9.0
$ cp INSTALL/make.inc.gfortran make.inc\
$ 修改lapack-3.4.2/Makefile中#lib: lapacklib tmgliblib: blaslib variants lapacklig tmglib
$ make
$ mkdir /usr/local/include/lapacke
$ cp include/*.h /usr/local/include/lapacke
$ cp *.a /usr/local/lib64/
4.安装itpp库
从http://itpp.sourceforge.net/下载源码
$ tar -zxvf itpp-4.2.tar.gz
$ cd itpp-4.2
$ ./configure --prefix=/usr/local --libdir=/usr/local/lib64 --with-lapack=/usr/local/lib64 --without-fft --enable-static --disable-shared
$ make
$ make install
网友评论