LAPACK dynamic library installation

The installation package can be downloaded directly from the official website, only the installation steps are described below

Generally speaking, the installation of software or library only needs to compile the lapack and blas of the static library. Today, when installing QUIP, you must use the lapack dynamic library to succeed, otherwise the installation will fail.

$ cd lapack-3.8.0
$ mkdir _build
$ cd _build
$ cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_SHARED_LIBS=ON

$ make

If you are using make to install directly, it will only generate static libraries such as libblas.a , and you must use cmake to compile dynamic libraries such as libblas.so

Of course, it needs to be added to the environment variable after the installation is complete

$ export LD_LIBRARY_PATH=/path/to/lapack-3.8.0/_build/lib:$LD_LIBRARY_PATH

Guess you like

Origin blog.csdn.net/qq_32115939/article/details/109183998