- C/C++ compiler
Summary of what you are going to install:
Summary of the commands:
sudo apt update sudo apt install liblapack3 sudo apt install liblapack-dev sudo apt install libopenblas-base sudo apt install libopenblas-dev sudo apt install liblapacke-dev sudo apt install liblapack-dev
Lapack was originally written in Fortran F90. Lapack uses BLAS, a collection of low level functions for vector and matrix related algebra operations. Lapacke is a wrapper for C/C++.
This tutorial explains how to install BLAS, Lapack and Lapacke. Note that installation of Lapacke is relatively complex and some things could go wrong. It is not recommended to compile the libraries by hand.
The following is a baseline for installation procedure:
Step 1 – Install necessary libraries
$ sudo apt install liblapack3 $ sudo apt install liblapack-dev $ sudo apt install libopenblas-base $ sudo apt install libopenblas-dev $ sudo apt install liblapacke-dev
Step 2 – Install static linking libraries if needed
$ sudo apt install liblapack-dev
Step 3 – Add the necessary linking flags to gcc/g++
-lm -lblas -llapack -llapacke