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

I have just downloaded, configure'd, make'd and make install'ed the Google Log Library to my computer. It built all required files (as far as I can see) and copied the .so file ( to /usr/local/lib. Then it created two symbolic links called "" and "" that point to that shared object file:

lrwxrwxrwx 1     16 /usr/local/lib/ ->
lrwxrwxrwx 1     16 /usr/local/lib/ ->
-rwxr-xr-x 1 498381 /usr/local/lib/

Now I'm trying to execute a program that uses the library, but when I start it, I get the error message that it can't open the so-file:

cloud:/home/blam/redirector/redirector2# ./redirector
./redirector: error while loading shared libraries: cannot open shared object file: No such file or directory

/usr/local/lib is included in my /etc/ file, and another library that's located in this directory is loaded correctly.

What am I doing wrong here? What am I missing?

share|improve this question
Just found out that setting LD_LIBRARY_PATH to /usr/local/lib fixes the problem - but still: why is it not working without that tweak? – BlaM Aug 4 '10 at 10:57
What does ldd /home/blam/redirector/redirector2/redirector return? – Janne Pikkarainen Aug 4 '10 at 10:59
Now it returns the correct library, but good to know that that command (ldd) exists! – BlaM Aug 4 '10 at 14:51
up vote 4 down vote accepted

Okay, fixed it myself. I had to call ldconfig manually.

Looks as if some tool modified the, but did not update the database.

share|improve this answer
Actually, you need to re-run ldconfi every time some library changes, not just when chanching So it's normal you had to run it. – sleske Aug 4 '10 at 11:08
Okay, good to know. – BlaM Aug 4 '10 at 11:10

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.