Compiling the BLAS and LAPACK libraries

If you do not have BLAS and LAPACK, you will have to download and install them. Note that if your vendor has their own version, you should use that as it is probably much faster.

BLAS can be obtained from http://www.netlib.org/blas/.

LAPACK can be obtained from http://www.netlib.org/lapack/.

Building BLAS and LAPACK should create the files libblas.a and liblapack.a. These are the archived BLAS and LAPACK libraries.

To ensure these libraries are located, you will need to modify your specific site_config file. Modify the LIBS variable to read like this:

   LIBS = -L/path/to/libs -llapack -lblas
You must replace the string /path/to/libs with the directory name where you have installed libblas.a and liblapack.a. If you compile the BLAS and LAPACK libraries using GNU g77, then you must specify some additional library flags such as
LIBS    := -L usr/lib/gcc-lib/i386-redhat-linux/2.96 -lg2c -llapack -lblas
This will vary depending on your operating system / distribution.

See the Section called The LIBS variable in the chapter called Compiling customised versions of TONTO> for more information.