- BLAS, see http://www.netlib.org/blas/
- LAPACK, see http://www.netlib.org/lapack/
Switch to the BLAS folder and execute
make
to compile all fortran files. After that, execute
mv blas_UNIX.a libblas.a
to rename the created library. After creating the library called “libblas.a”, copy that file to your library folder by executing the following command
sudo cp libblas.a /usr/local/lib/
The above directory can be replaced by any library path in your systems.
Now we have installed the BLAS package. Then switch to the LAPACK directory and adjust the file “make.inc” if necessary. After setting all parameters correctly, type the command
make
Now, you created a library e.g. called “lapack_MACOS.a”. Copy that file to your library folder by executing
sudo cp liblapack.a /usr/local/lib/
Congratulation, you’ve installed BLAS and LAPACK on your systems!
Note: when using C++, do not forget to point out your search directory for header files with option “-I”, and add your library path with “-L” for libraries with “-l” if the search paths for the header files and libraries are not included.