Solution 1:

Simply install the following

 sudo apt-get install libatlas3-base

Source


If you do

 sudo apt-cache search liblapack.so

You will find 2 files, install one then and you will have liblapack.so

 liblapack3 - Library of linear algebra routines 3 - shared version
 libatlas3-base - Automatically Tuned Linear Algebra Software, generic shared

Solution 2:

You can find liblapack.so.3 for either quantal or raring (liblapack for precise is not available) at the following URLs:

  • quantal i386: http://packages.ubuntu.com/quantal/i386/liblapack3/filelist
  • quantal amd64: http://packages.ubuntu.com/quantal/amd64/liblapack3/filelist
  • raring i386: http://packages.ubuntu.com/raring/i386/liblapack3/filelist
  • raring amd64: http://packages.ubuntu.com/raring/amd64/liblapack3/filelist

You can find liblapack3 for precise (Ubuntu 12.04) in this PPA: ppa:andrikos/ppa

  • precise i386: https://launchpad.net/~andrikos/+archive/ppa/+build/3887507/+files/liblapack3_3.4.1-4%7Eprecise1_i386.deb
  • precise amd64: https://launchpad.net/~andrikos/+archive/ppa/+build/3887506/+files/liblapack3_3.4.1-4%7Eprecise1_amd64.deb

Save the package, open the compressed package with Archive Manager, and browse the archive to find the liblapack.so.3 file.

In Ubuntu 14.04 and later you can install liblapack3 directly from the default Ubuntu repositories.