How to install BLAS and LAPACK using source codes

1. Download lapack-3.5.0.tgz (http://www.netlib.org/lapack/#_lapack_version_3_5_0_2)
2. tar xvf lapack-3.5.0.tgz
3. cd lapack-3.5.0/BLAS/SRC
4. gfortran -c -o3 *.f
5. ar rv libblas.a *.o
6. cp libblas.a /usr/local/lib
7. cd ../../SRC
8. gfortran -c -o3 *.f
9. ar rv liblapack.a *.o
6. cp liblapack.a /usr/local/lib

Add a Comment