Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

What can you do when your linux system "can't find" dynamically linked libraries that are indeed installed in their correct locations?

Case in point, I'm trying to run a program called 'ucanvcam':

oliver@human ~/installed/ucanvcam-0.1.6/bin $ ./ucanvcam
./ucanvcam: error while loading shared libraries: cannot open shared object file: No such file or directory

oliver@human ~/installed/ucanvcam-0.1.6/bin $ locate

oliver@human ~/installed/ucanvcam-0.1.6/bin $ ldd ./ucanvcam =>  (0xf7706000)
    [...] => not found
    [...] => /lib32/ (0xf6b1e000)

How can I tell it to look for in /usr/lib64? And more importantly, why isn't it looking there, and where is it looking?


share|improve this question
up vote 1 down vote accepted

The manual page for will help you with this. In particular the important things to look at are probably the contents of your shell variable LD_LIBRARY_PATH and the file /etc/

share|improve this answer
Thank you, setting my LD_LIBRARY_PATH variable worked a charm :) – Mala Apr 28 '10 at 21:33
Some (among others, or google it) consider setting LD_LIBRARY_PATH a bad practice. – thoni56 Aug 17 '14 at 14:23

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.