#! /bin/bash ## Install liblapack-3.7.0 ## Default location is dir=$HOME/ii ## Execute this in $dir/script/ ### Must only be performed after inst_blas-3-7.0.txt ## Source: http://www.netlib.org/lapack/#_lapack_version_3_7_0 HOME=/home/$(whoami) dir=$HOME/ii export dir=/home/$(whoami)/ii #export PATH=$PATH:$HOME/ii/gcc-trunk/bin #export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/ii/gcc-trunk/lib64 ## Note: Can't install wihtout sudo apt-get install gfortran. ~/ii/gcc-trunk/lib/ won't work. cd $dir if [ -d $dir/configrepo ]; then echo "$dir/configrepo" existed else mkdir $dir/configrepo fi cd $dir/configrepo rm -rf lapack-3.7.0.tgz wget http://comsics.usm.my/tlyoon/configrepo/howto/customise_centos/BLAS_and_LAPACK/lapack-3.7.0.tgz tar -xzvf lapack-3.7.0.tgz cd lapack-3.7.0 #cp INSTALL/make.inc.gfortran make.inc || cp make.inc.example which g77 || sed -i -e 's/g77/gfortran/' make.inc ulimit -s unlimited make tmglib blaslib cblaslib lapack_install lapacklib -j 4 #make lapack_testing ## cd TESTING; make ### execute this line if want to perform testing on the lapack library installed. cp $dir/configrepo/lapack-3.7.0/*.a $dir/lib/