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

I installed an application in a non-standard place. When I run it I get

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

I can fix this by adding the directory to the environmental variable $LD_LIBRARY_PATH, but I wonder if there's a better solution.

share|improve this question
up vote 2 down vote accepted

If you want this to be system-wide, you can add the directory to the configuration. This will make the dynamic linker always check that directory when looking for libraries to load.

To do this, just add a file in /etc/ (it should end in .conf), containing the full path of the directory.

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.