Install

カスタムver.

atlas3.8.1

tar zxvf atlas3.8.1.tgz
mv ATLAS ATLAS_00
cd ATLAS_00
mkdir MyObj
cd MyObj
mkdir -p /home/usrname/opt/pkgs/atlas3.8.1
../configure --prefix=/home/usrname/opt/pkgs/atlas3.8.1
make
make check
make install

CLAPACK-3.1.1

tar CLAPACK-3.1.1.tgz
mv CLAPACK-3.1.1 CLAPACK-3.1.1_00
cd CLAPACK-3.1.1_00
cp make.inc.example make.inc

Merging ATLAS and LAPACK

上で作成したATLASのライブラリを全てコピー:

cp /home/usrname/make/atlas/atlas3.8.1/ATLAS_02/MyObj/lib/*.a /home/usrname/make/clapack/3.1.1/CLAPACK-3.1.1_02/

make.incの書き換え:

BLASLIB      = ../../blas$(PLAT).a

BLASLIB      = ../../libcblaswr.a -L../../  -lcblas -latlas

に書き換える。


make f2clib cblaswrap lapacklib
cp F2CLIBS/libf2c.a ./
cp liblapack.a liblapack.a.org
mv lapack_LINUX.a liblapack.a
mkdir libatlas libcblas libcblaswr libf77blas liblapack
cd liblapack ; ar x ../liblapack.a.org ; ar r ../liblapack.a *.o ; cd ..
cd libatlas ; ar x ../libatlas.a ; cd ..
cd libcblas ; ar x ../libcblas.a ; cd ..
cd libf77blas ; ar x ../libf77blas.a ; cd ..
cd libcblaswr ; ar x ../libcblaswr.a ; cd ..
ar cr libblas.a libcblaswr/*.o libcblas/*.o libf77blas/*.o libatlas/*.o
mkdir -p /home/usrname/opt/pkgs/clapack-3.1.1/include
mkdir -p /home/usrname/opt/pkgs/clapack-3.1.1/lib
cd ./INCLUDE
cp clapack.h f2c.h /home/usrname/opt/pkgs/clapack-3.1.1/include/
cd ../
cp libblas.a libf2c.a liblapack.a /home/usrname/opt/pkgs/clapack-3.1.1/lib
ln -s /home/usrname/opt/pkgs/clapack-3.1.1 /home/usrname/opt/lapack

Installed include/lib

/PATH/lapack/include:
 clapack.h  f2c.h
/PATH/lapack/lib:
 libblas.a  libf2c.a  liblapack.a