Search This Blog

LAPACK Installation LINUX

Prerequisites : gfortran installed. 

LAPACK Installation Steps


Step 1: Download Lapack from here.

Step 2: unzip and untar using the following commands.

gunzip lapack-3.4.0.tgz
tar xvf lapack-3.4.0.tar

Step 3: Enter inside the lapack-3.4.0 directory.

cd   lapack-3.4.0

Step 4: Change the file "make.inc.example" to "make.inc"

cp make.inc.example make.inc

Step 5: Edit the file "Makefile" and apply the following changes.

uncomment the line by removing "#" from its start.
lib: blaslib variants lapacklib tmglib

and comment the following line by putting "#" at its start.
#lib: lapacklib tmglib


Step 6: Write the following command.

make

After the successful execution of this command, LAPACK installation is completed.


Gfortran Installation LINUX

GFortran or Gcc-fortran is a product of GCC. You can download and install it freely.

If you are using Ubuntu or Debian based LINUX operatting system, you can use the command "apt-get" to install it from the main repository.

Enter the following commands in linux shell:

sudo apt-get update
or
sudo apt-get install -y gfortran

The command "sudo apt-get update" will download the package's lists from the repositories and only updates the information on the newest versions of packages and their dependencies. It does not updates any softwares. It will update the information and dependencies of all the repositories. If you to install the latest packages, you may use the command "sudo apt-get upgrade".

The command "sudo apt-get install -y gfortran" will install the gfortran in your Linux system. You may not type "sudo" if you are logged in as root.

For open suse, the name of the package is "gcc-fortran", so you may use the following command to install gfortran,

sudo zypper install gcc-fortran



On Fedora or derived systems, some versions have gfortran package and some use the gcc-fortran package. So you can check the following commands to install gcc-fortran or gfortran on linux,

sudo yum install gfortran
or
sudo yum install -y gfortran
or
sudo yum install gcc-gfortran
Web Statistics