Questions tagged [shared-library]

related to shared libraries, .so files and their manipulation in Ubuntu

Shared libraries are distributed as .so files in /usr/lib/. These files are are compiled code which is intended to be shared among several different programs.

A library exports symbols which are the compiled versions of functions, classes and variables. A library has a name called an SONAME which includes a version number. This SONAME version does not necessarily match the public release version number. A program gets compiled against a given SONAME version of the library. If any of the symbols is removed or changes then the version number needs to be changed which forces any packages using that library to be recompiled against the new version. Version numbers are usually set by upstream and Ubuntu follows them in our binary package names called an ABI number, but sometimes upstream do not use sensible version numbers and packagers have to keep separate version numbers.

Libraries are usually distributed by upstream as standalone releases. Sometimes they are distributed as part of a program. In this case they can be included in the binary package along with the program (this is called bundling) if you do not expect any other programs to use the library, more often they should be split out into separate binary packages.

The libraries themselves are put into a binary package named libfoo1 where foo is the name of the library and 1 is the version from the SONAME. Development files from the package, such as header files, needed to compile programs against the library are put into a package called libfoo-dev.

422 questions
58
votes
7 answers

libssl.so.10: cannot open shared object file: No such file or directory

Im trying to use twoBitToFa, which is a small program released by the University of California Santa Cruz, that uncompresses large genome files and I get this error: error while loading shared libraries: libssl.so.10: cannot open shared object file:…
von Mises
  • 693
  • 1
  • 5
  • 8
40
votes
7 answers

Error While Loading Shared Libraries (libGLU.so.1)

I am trying to run Chamsys MagicQ on Ubuntu 12.10 with 64bit AMD processor. This is what it tells me when I try to run the program. ./magicq: error while loading shared libraries: libGLU.so.1: cannot open shared object >file: No such file or…
Austin
  • 631
  • 1
  • 5
  • 7
14
votes
6 answers

How do I install libtiff.so.3?

When I try to run Maya from the terminal, I get: error while loading shared libraries: libtiff.so.3: cannot open shared object file: No such file or directory. How do I solve this? Note: Maya is a third-party software.
11
votes
2 answers

Error loading share libraries: libgfortran.so.3 under Ubuntu 18.04.1

I recently installed Ubuntu 18.04.1. Now, when I try to run a mpi Fortran code, there is an error loading the shared library: libgfortran.so.3 and the code does not execute. I tried to reinstall gfortran, mpich, and gcc by removing the software,…
10
votes
1 answer

How are .so files used in Ubuntu

I am very new to Linux and Ubuntu and I have ported my simple game engine to linux. The engine is in a .so file and is linked to the executable. I am unable to run my executable because it says that it cannot find the Engine.so file (when run in…
6
votes
2 answers

error while loading shared libraries; cannot open shared object file: No such file or directory

The program evince complains that it can't find libfreetype.so.6; however I clearly have the file and its included in my LD_LIBRARY_PATH; furthermore I have another program which uses libfreetype6 and is able to run just fine. What's going on…
glitchyme
  • 191
4
votes
1 answer

Error while loading shared libraries: librtmp.so.0

This is my problem (Ubuntu 16.10): librtmp.so.0 => not found and the error script /home/amroemad/Desktop/Total War WARHAMMER/bin/TotalWarhammer: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or…
4
votes
2 answers

/usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.19' not found

I'm building a program in a VM then deploying to another machine. This has been working for some time. Today I've started receiving this error message when I attempt to execute my program: /usr/lib/i386-linux-gnu/libstdc++.so.6: version…
Drew Noakes
  • 5,708
3
votes
1 answer

How do I get the libxpcom.so file for Titanium Appcelerator Studio?

I'm trying to install Titanium Appcelerator Studio under Ubuntu 14.04 64-bit... It launches almost fine, except it needs libxpcom.so. I've been looking for it for hours now, I cant find the latest version of it. I have read that that lib comes with…
Ganitzsh
  • 131
3
votes
1 answer

Why can't my installer load the "libglib-2.0.so.0" shared library?

I have to install an agent software for my college intranet. They provide this .bin file as the installer file. I type ./file.bin after going to the right directory. It says error while loading shared libraries: libglib-2.0.so.0: cannot open shared…
learner
  • 363
3
votes
1 answer

Install old library file required by a program

I have a program that requires libreadline6. But I only have libreadline5 and libreadline7. I tried to install version 6 of the library but I cannot do this. A message comes up that the package is not available. The message goes on to say the…
PLS
  • 123
2
votes
2 answers

error while loading shared libraries: libzip.so.2

I am trying to run an app and I am getting this error in a fresh installation of Ubuntu in VMWARE ./futurerestore_linux: error while loading shared libraries: libzip.so.2: cannot open shared object file: No such file or directory I had an similar…
2
votes
3 answers

How to supply matching shared libraries to a self compiled program?

I have compiled a program on my own Ubuntu system. Now I want to run it on a foreign Ubuntu system with same architecture but slightly outdated shared libraries. How do I get the libraries from my own system work on the foreign one? I'm not root on…
2
votes
1 answer

libidn.so.11 error on starting an app

I'm trying to run a Total English digital book, an app I need for my work. Upon running I get this message: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory The file is installed on my…
2
votes
3 answers

Several applications give "libtasn1.so.3: cannot open shared object file: No such file or directory"

I get this error when I try running LibreOffice after upgrading from 13.10 to 14.04. ~$> libreoffice --writer /usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: libtasn1.so.3: cannot open shared object file: No such…
landas
  • 114
1
2 3