Search code examples
matlabubuntulapack

Can't find liblapack.so.3 in ubuntu 12.04


When I ran a matlab code in ubuntu 12.04, an error occurred:

liblapack.so.3: cannot open shared object file: No such file or directory

Then I installed lapack and libatlas, but only found liblapack.so.3gf instead of liblapack.so.3 in /usr/lib. Which package should I install to get liblapack.so.3?


Solution

  • Take a look at this thread:

    liblapack.so file

    You will basically have to manually download and install a package (follow the links from the aforementioned thread) fro Ubuntu 12. Another thing that I suggest to try is to create a link to "liblapack.so.3gf" like this:

    sudo ln -s /usr/lib/liblapack.so.3gf /usr/lib/liblapack.so.3
    

    There are more than one distribution of the library and the implementation might differ.