I'm running 12.10.

I'm trying to run an application that needs libglut.so.3. I installed freeglut3 and I can see the library located in /usr/lib/x86_64-linux-gnu. But when I run the application, it tells me that it can't find the library.

When I run ldconfig -v | grep glut I get

/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
        libglut.so.3 -> libglut.so.3.9.0

What does it mean when it says the path is given more than once, and does this have anything to do with why the application can't find the library?

  • 1
    Did you ever find out? I'm running into the same problem. – RemcoGerlich Jun 25 '14 at 21:00
  • 1
    Check /etc/ld.so.conf.d/*. – syntaxerror Oct 10 '15 at 11:43
  • I've seen it too, but it appears to be only an informational message, not any sort of trouble. Here is a similar message from ldconfig -v, "/sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.19.so is the dynamic linker, ignoring" before this line "ld-linux-x86-64.so.2 -> ld-2.19.so". – Elliptical view Oct 19 '16 at 21:07

ldconfig.real searches /lib/x86_64-linux-gnu and /usr/lib/x86_64-linux-gnu by default.

On my system there is a configuration file in /etc/ld.so.conf.d/x86_64-linux-gnu.conf that included these directories, hence causing the error.

I then discovered that this file is created by the libc6 package. Thus, the /etc/ld.so.conf.d/x86_64-linux-gnu.conf file can be safely deleted.

When you run ldconfig --verbose again, you will see that those two directories are still indexed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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