Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

When trying to start a certain program, I got the following error message:

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

Therefore I built the required library and installed it under the directory /usr/local/lib/. However, after building the library, there were only the files, and under /usr/local/lib/. So I created an additional symbolic link to named I checked that /usr/local/lib is included in some file under /etc/ and started sudo ldconfig.

Unfortunately ldconfig seems to ignore my self-created symbolic link. ldconfig -v prints only the following line: ->

ldconfig -p prints only the following two lines: (libc6,x86-64) => /usr/local/lib/ (libc6,x86-64) => /usr/local/lib/

There is not a blind bit of the file What do I have to do?

share|improve this question
What are you trying to install / run and how did you install it? Sounds as if you installed a package outside of apt (apt-get or the software center). – bodhi.zazen Feb 18 '14 at 23:30
I downloaded and built an Open MPI release as I have to run a program which requires it. – user1494080 Feb 18 '14 at 23:36
did you try installing openmpi from the repos ? sudo apt-get install openmpi-bin ? Otherwise , link to what you installed please. – bodhi.zazen Feb 18 '14 at 23:37
I downloaded the tarball from the official website and did the following: – user1494080 Feb 18 '14 at 23:41
I can not tell from what you posted, it is hard to follow foo and foo.0 without knowing what you are doing and output of a few commands such as ls and also the exact error message you are getting. – bodhi.zazen Feb 18 '14 at 23:55

From what I remember in ubuntu, just adding symlinks in /usr/local/lib may not be sufficient. We need update entry corresponding to this to let ldconfig know what symlinks it has to create for us.

Like bodhi.zazen mentioned, installing from apt is simpler, because apt would very likely setup files as well.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.