Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to execute a binary and it says ./xtensoftphone: error while loading shared libraries: cannot open shared object file: No such file or directory. This library is indeed installed under /usr/lib. Is there something I need to do to get the binary to see the library? I thought all /usr/lib libraries were visible.

blaine :: ~/Downloads/xten-xlite » ldd xtensoftphone                                                                                                            =>  (0xf7783000) => /lib32/ (0xf7749000) => /usr/lib32/ (0xf7743000) => /usr/lib32/ (0xf772a000) => /usr/lib32/ (0xf7355000) => /usr/lib32/ (0xf722b000) => /usr/lib32/ (0xf7216000) => /usr/lib32/ (0xf7180000) => /usr/lib32/ (0xf7163000) => /usr/lib32/ (0xf7149000) => /usr/lib32/ (0xf7141000) => /usr/lib32/ (0xf7134000) => /usr/lib32/ (0xf70f1000) => /usr/lib32/ (0xf70b1000) => /usr/lib32/ (0xf70ac000) => /lib32/ (0xf70a8000) => /lib32/ (0xf6fde000) => /lib32/ (0xf6fb8000) => not found => /usr/lib32/ (0xf6f98000) => /lib32/ (0xf6e3e000) => /usr/lib32/ (0xf6d21000)
/lib/ (0xf7784000) => /lib32/ (0xf6d18000) => /lib32/ (0xf6ce7000) => /usr/lib32/ (0xf6cbf000) => /usr/lib32/ (0xf6cb3000) => /usr/lib32/ (0xf6c15000) => /usr/lib32/ (0xf6b9b000) => /usr/lib32/ (0xf6b25000) => /usr/lib32/ (0xf6af4000) => /usr/lib32/ (0xf6ae4000) => /usr/lib32/ (0xf6ada000) => /usr/lib32/ (0xf6ad6000) => /usr/lib32/ (0xf6ac8000) => /usr/lib32/ (0xf6abf000) => /usr/lib32/ (0xf6ab5000) => /usr/lib32/ (0xf6ab1000) => /usr/lib32/ (0xf6aad000) => /usr/lib32/ (0xf6aa7000) => /usr/lib32/ (0xf6a92000) => /usr/lib32/ (0xf6a78000) => /lib32/ (0xf6a64000) => /lib32/ (0xf6a49000) => /usr/lib32/ (0xf69ee000) => /usr/lib32/ (0xf6977000) => /usr/lib32/ (0xf696d000) => /usr/lib32/ (0xf6957000) => /lib32/ (0xf6932000) => /usr/lib32/ (0xf692c000) => /usr/lib32/ (0xf6924000) => /lib32/ (0xf68fd000) => /usr/lib32/ (0xf68f9000) => /usr/lib32/ (0xf68f3000)

blaine :: ~/Downloads/xten-xlite » cat /etc/
include /etc/*.conf
share|improve this question
apparently xtensoftphone is a 32-bit executable; do you have a 32-bit, or only a 64-bit one? What does file -L /usr/lib*/ show? – Gilles Aug 5 '10 at 20:42

Do you really have /usr/lib/, in addition to /usr/lib/ The two are not compatible (in the sense that a program that requires one won't work with the other, of course you can install both). You'll need to install the libstd++5 package.

Ubuntu 10.04 no longer has libstdc++5, but if you need it, you can grab the package from the backports repository. It was reintroduced in subsequent releases.

share|improve this answer
I do have 5 and 6 installed. The program is not requiring both, only 5, as shown by the ldd output above. – brlafreniere Aug 5 '10 at 19:12
I installed 5 from a .deb – brlafreniere Aug 6 '10 at 2:26
@Blaine: do you have a 32-bit or 64-bit system? If you installed a 64-bit library from a .deb, it won't work with your 32-bit executable. – Gilles Aug 6 '10 at 6:53
Just run sudo apt-get install libstdc++5 – Flying Fisher Nov 13 '14 at 3:39

You need to run ldconfig after each change to the libraries. If in doubt, just run it, it won't hurt if run too often.

If that does not fix it, please post the output of ldd xtensoftphone , and the contents of /etc/ (plus any files under /etc/, then we'll see.

share|improve this answer
See details added above – brlafreniere Aug 5 '10 at 20:24
For a library in /usr/lib, the package manager should have run ldconfig. For anyone with a similar problem: if you install a library manually, put it in /usr/local/lib, and run ldconfig afterwards. – Gilles Aug 5 '10 at 20:43

Try adding the location of the library to the LD_LIBRARY_PATH

share|improve this answer
-1 This is more likely to further complicate matters. Libraries under /usr/lib should be picked up without LD_LIBRARY_PATH. – sleske Aug 4 '10 at 17:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .