getting error while loading shared libraries: liblapack.so.3gf: cannot open shared object file: No such file or directory
Upon trying to run octave under Ubuntu 16.04, I get this error:
/usr/lib/
I've searched the internet and tried to install the lapack library according to suggestions, but none of them work
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu octave Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Bruce McKinley
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
What is the output of:
sudo updatedb; locate liblapack*
Thanks
Revision history for this message
|
#2 |
Neither one of them produce any output
Revision history for this message
|
#3 |
It would also help if you described how you installed Octave 4.0.2. Ubuntu 16.04 comes with Octave 4.0.0. Have you installed from source, built your own package, installed from a PPA, or installed from some other source?
What is the output of `dpkg -l '*octave*'`?
Revision history for this message
|
#4 |
For diagnostic purposes please provide the output of the commands
uname -a
lsb_release -crid
apt-cache policy octave
locate liblapack
ldd /usr/lib/
Revision history for this message
|
#5 |
Hi Mike:
dpkg -l '*octave*' returns
||/ Name Version Architecture Description
+++-===
ii liboctave-dev 4.0.2-1ubunt amd64 Development files for the GNU Oct
rc liboctave2:amd 3.8.1-1ubunt amd64 Shared libraries of the GNU Octav
ii liboctave3:amd 4.0.2-1ubunt amd64 Shared libraries of the GNU Octav
un libsbml5-octav <none> <none> (no description available)
ii octave 4.0.2-1ubunt amd64 GNU Octave language for numerical
un octave-audio <none> <none> (no description available)
un octave-biosig <none> <none> (no description available)
ii octave-common 4.0.2-1ubunt all architecture-
un octave-communi <none> <none> (no description available)
un octave-control <none> <none> (no description available)
un octave-doc <none> <none> (no description available)
un octave-econome <none> <none> (no description available)
un octave-gdf <none> <none> (no description available)
un octave-general <none> <none> (no description available)
un octave-geometr <none> <none> (no description available)
un octave-gmt <none> <none> (no description available)
un octave-gsl <none> <none> (no description available)
un octave-htmldoc <none> <none> (no description available)
un octave-image <none> <none> (no description available)
ii octave-info 4.0.2-1ubunt all GNU Info documentation on the GNU
un octave-io <none> <none> (no description available)
un octave-java <none> <none> (no description available)
un octave-lhapdf <none> <none> (no description available)
un octave-linear- <none> <none> (no description available)
un octave-ltfat <none> <none> (no description available)
un octave-miscell <none> <none> (no description available)
un octave-mpi <none> <none> (no description available)
un octave-msh <none> <none> (no description available)
un octave-nan <none> <none> (no description available)
un octave-nlopt <none> <none> (no description available)
un octave-nurbs <none> <none> (no description available)
un octave-ocs <none> <none> (no description available)
un octave-octcdf <none> <none> (no description available)
un octave-odepkg <none> <none> (no description available)
un octave-optim <none> <none> (no description available)
un octave-optimin <none> <none> (no description available)
un octave-paralle <none> <none> (no description available)
un octave-pfstool <none> <none> (no description available)
un octave-plplot <none> <none> (no description available)
un octave-psychto <none> <none> (no description available)
un octave-quatern <none> <none> (no description available)
un octave-secs2d <none> <none> (no description available)
un octave-signal <none> <none> (no description available)
un octave-sockets <none> <none> (no description available)
un octave-strings <none> <none> (no description available)
un octave-struct <none> <none> (no description available)
un octave-sundial <none> <none> (no description available)
un octave-symboli <none> <none> (no description available)
un octave-tsa <none> <none> (no description available)
un octave-vlfeat <none> <none> (no description available)
un octave3.0-info <none> <none> (no description available)
un octave3.2 <none> <none> (no description available)
un octave3.2-info <none> <none> (no description available)
Revision history for this message
|
#6 |
Hi Manfred:
$ uname -a
Linux HGNuc3 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
$ apt-cache policy octave
octave:
Installed: 4.0.2-1ubuntu5~
Candidate: 4.0.2-1ubuntu5~
Version table:
*** 4.0.2-1ubuntu5~
100 /var/lib/
4.
500 http://
4.0.0-3ubuntu9 500
500 http://
$ locate liblapack
/etc/alternativ
/etc/alternativ
/etc/alternativ
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
$ ldd /usr/lib/
linux-vdso.so.1 => (0x00007ffd13ce
liboctgui.so.1 => /usr/lib/
liboctinterp.so.3 => /usr/lib/
libstdc++.so.6 => /usr/lib/
libc.so.6 => /lib/x86_
liboctave.so.3 => /usr/lib/
libQtNetwork.so.4 => /usr/lib/
libQtOpenGL.so.4 => /usr/lib/
libQtGui.so.4 => /usr/lib/
libQtCore.so.4 => /usr/lib/
libqscintilla2
libGL.so.1 => /usr/lib/
libGLU.so.1 => /usr/lib/
libutil.so.1 => /lib/x86_
libm.so.6 => /lib/x86_
libpthread.so.0 => /lib/x86_
libgcc_s.so.1 => /lib/x86_
libfreetype.so.6 => /usr/lib/
libhdf5.so.6 => /usr/lib/
libz.so.1 => /lib/x86_
libfontconfig.so.1 => /usr/lib/
libX11.so.6 => /usr/lib/
libgl2ps.so.0 => /usr/lib/
liblapack.so.3gf => not found
libgomp.so.1 => /usr/lib/
/lib64/
libcurl-
libcholmod.
libumfpack.
libcxsparse.
libqrupdate.so.1 => /usr/lib/
libfftw3_
libfftw3.so.3 => /usr/lib/
libfftw3f_
libfftw3f.so.3 => /usr/lib/
liblapack.so.3gf => not found
libblas.so.3gf => not found
libreadline.so.6 => /lib/x86_
libpcre.so.3 => /lib/x86_
libdl.so.2 => /lib/x86_
libgfortran.so.3 => /usr/lib/
libXrender.so.1 => /usr/lib/
libaudio.so.2 => /usr/lib/
libglib-2.0.so.0 => /lib/x86_
libpng12.so.0 => /lib/x86_
libgobject-
libSM.so.6 => /usr/lib/
libICE.so.6 => /usr/lib/
libXi.so.6 => /usr/lib/
libXext.so.6 => /usr/lib/
librt.so.1 => /lib/x86_
libexpat.so.1 => /lib/x86_
libxcb-dri3.so.0 => /usr/lib/
libxcb-
libxcb-sync.so.1 => /usr/lib/
libxshmfence.so.1 => /usr/lib/
libglapi.so.0 => /usr/lib/
libXdamage.so.1 => /usr/lib/
libXfixes.so.3 => /usr/lib/
libX11-xcb.so.1 => /usr/lib/
libxcb-glx.so.0 => /usr/lib/
libxcb-dri2.so.0 => /usr/lib/
libxcb.so.1 => /usr/lib/
libXxf86vm.so.1 => /usr/lib/
libdrm.so.2 => /usr/lib/
libidn.so.11 => /usr/lib/
librtmp.so.1 => /usr/lib/
libnettle.so.6 => /usr/lib/
libgnutls.so.30 => /usr/lib/
libgssapi_
liblber-2.4.so.2 => /usr/lib/
libldap_r-2.4.so.2 => /usr/lib/
libblas.so.3gf => not found
liblapack.so.3gf => not found
libamd.so.2.2.0 => /usr/lib/
libcolamd.so.2.7.1 => /usr/lib/
libblas.so.3gf => not found
libblas.so.3 => /usr/lib/
liblapack.so.3 => /usr/lib/
libtinfo.so.5 => /lib/x86_
libquadmath.so.0 => /usr/lib/
libXt.so.6 => /usr/lib/
libXau.so.6 => /usr/lib/
libffi.so.6 => /usr/lib/
libuuid.so.1 => /lib/x86_
libXdmcp.so.6 => /usr/lib/
libhogweed.so.4 => /usr/lib/
libgmp.so.10 => /usr/lib/
libp11-kit.so.0 => /usr/lib/
libtasn1.so.6 => /usr/lib/
libkrb5.so.3 => /usr/lib/
libk5crypto.so.3 => /usr/lib/
libcom_err.so.2 => /lib/x86_
libkrb5support
libresolv.so.2 => /lib/x86_
libsasl2.so.2 => /usr/lib/
libgssapi.so.3 => /usr/lib/
libatlas.so.3 => /usr/lib/
libkeyutils.so.1 => /lib/x86_
libheimntlm.so.0 => /usr/lib/
libkrb5.so.26 => /usr/lib/
libasn1.so.8 => /usr/lib/
libhcrypto.so.4 => /usr/lib/
libroken.so.18 => /usr/lib/
libwind.so.0 => /usr/lib/
libheimbase.so.1 => /usr/lib/
libhx509.so.5 => /usr/lib/
libsqlite3.so.0 => /usr/lib/
libcrypt.so.1 => /lib/x86_
Revision history for this message
|
#7 |
You seem to run a version for precise, that needs certain libraries that only exist on precise.
What is the output of
dpkg -l | grep blas
dpkg -l | grep lapack
Revision history for this message
|
#8 |
Hi Manfred:
$ dpkg -l | grep blas
ii libblas-common 3.6.0-2ubuntu2 amd64 Dependency package for all BLAS implementations
ii libblas-dev 3.6.0-2ubuntu2 amd64 Basic Linear Algebra Subroutines 3, static library
ii libblas3 3.6.0-2ubuntu2 amd64 Basic Linear Algebra Reference implementations, shared library
ii libblas3gf 1.2.20110419-7 all Transitional package for libblas
$ dpkg -l | grep lapack
ii liblapack-dev 3.6.0-2ubuntu2 amd64 Library of linear algebra routines 3 - static version
ii liblapack3 3.6.0-2ubuntu2 amd64 Library of linear algebra routines 3 - shared version
ii liblapack3gf 3.5.0-2ubuntu1 all Transitional package for liblapack3
Revision history for this message
|
#9 |
It looks like this system used to be on Ubuntu 12.04 LTS and was upgraded to 16.04 LTS. When it was 12.04, the Octave PPA was added to the system and Octave 4.0.2 was installed from the PPA archive (ppa:octave/stable, found at https:/
When upgrading from one LTS release to the next, PPAs are typically disabled, but any packages from the PPA are left installed. Since the version of Octave you got from the 12.04 PPA is still newer than the version in 16.04, you still have the 12.04 backported packages installed.
One solution would be to re-enable the PPA and run an upgrade, this should install Octave from the 16.04 release slot of the same PPA. http://
Another solution would be to downgrade, or uninstall and reinstall all Octave packages to the versions in the 16.04 archive (4.0.0-3ubuntu9.1). This answer may help: http://
Revision history for this message
|
#10 |
Thanks, Mike. I attempted to do the last solution (uninstall/
$ sudo add-apt-repository --remove ppa:octave/stable
$ sudo apt-get purge octave
Then I tried
$ sudo apt-get install octave
which resulted in these error messages:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
octave : Depends: liboctave3 (= 4.0.0-3ubuntu9.1) but 4.0.2-1ubuntu5~
E: Unable to correct problems, you have held broken packages.
So I did:
$ sudo apt-get install gnuplot-x11
$ sudo apt-get install pstoedit
But I am still getting this error:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
octave : Depends: liboctave3 (= 4.0.0-3ubuntu9.1) but 4.0.2-1ubuntu5~
E: Unable to correct problems, you have held broken packages.
Can you help?
Revision history for this message
|
#11 |
Hi Mike,
Never mind. I was able to remove liboctave3, then install octave.
Thanks for your help on this.
Bruce