PETSc requires BLAS, or its equivalent ATLAS, and LAPACK. BLAS/ATLAS and LAPACK must be installed before installing PETSc. A vendor version of BLAS/ATLAS is recommended. Skip this section if BLAS/ATLAS and LAPACK are installed.
BLAS and LAPACK are installed from RPM's .
ATLAS is a portable BLAS implementation. ATLAS can be installed in place of BLAS. ATLAS is installed from its source code distribution.
Root privileges are needed to install the BLAS and LAPACK RPMs.
Use a browser to download BLAS and LAPACK RPMs for Linux:
http://www.netlib.org/lapack/rpms/lapack-3_0-2_i386.rpm
and
http://www.netlib.org/lapack/rpms/blas-3_0-2_i386.rpm
Become root user:
su -
and install the BLAS and LAPACK RPMs:
rpm -ivh blas-3_0-2_i386.rpm
rpm -ivh lapack-3_0-2_i386.rpm
Type exit to leave the root account.
Follow these steps to install ATLAS:
Download the source distribution:
https://sourceforge.net/project/showfiles.php?group_id=23725
Choose from the list of files a stable,
platform-independent distribution,
e.g. atlas3.6.0.tar.gz.
Unpack the ATLAS distribution:
tar -x -z -f atlasx.x.x.tar.gz
This creates a directory named ATLAS.
Build ATLAS. Type:
make config CC=path-to-c-compiler
The above command will print an system architecture string. Use the architecture string in the following command:
make install arch=arch-string
The above command will build ATLAS
libraries in directory
ATLAS/lib/
directory.
arch-string