/usr/bin/ld: cannot find -llapack

On Ubuntu, make sure you have the packages

  • liblapack-dev
  • libopenblas-dev

installed:

sudo apt install liblapack-dev libopenblas-dev

After that, “-L/usr/lib -llapack -lblas” should work. Also note that, as already mentioned in another answer, in the output you showed, you have “-L/usr/share/doc/liblacpack -L/usr/share/doc/libblas”, which is certainly not what you want.

Leave a Comment