The symlink shows up in /usr/lib/x86_64-linux-gnu, and I ran ldconfig but I still get this error:

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

Is it a permissions issue or the link is not properly defined?

Update after running ldd on the binary: =>  (0x00007fff1efe2000) => not found => not found => /lib/x86_64-linux-gnu/ (0x00007feb2a3c4000) => /lib/x86_64-linux-gnu/ (0x00007feb2a1bb000) => /lib/x86_64-linux-gnu/ (0x00007feb29f82000) => /lib/x86_64-linux-gnu/ (0x00007feb29d65000) => /lib/x86_64-linux-gnu/ (0x00007feb29b60000) => /lib/x86_64-linux-gnu/ (0x00007feb297a1000)
    /lib64/ (0x00007feb2b159000)
  • Run the ldd command on the binary that is showing this error and update your question with the output. – devnull Feb 24 '15 at 17:22
up vote 9 down vote accepted

From the ldd command it looks like the binary is looking in /lib/x86_64-linux-gnu and not /usr/lib/x86_64-linux-gnu where you found the symlink.

Try running these and see if you still get the same error:

sudo ln -s /lib/x86_64-linux-gnu/ /lib/x86_64-linux-gnu/
sudo ln -s /lib/x86_64-linux-gnu/ /lib/x86_64-linux-gnu/
  • I ran similar 'sudo ln' commands without understanding what's going on, but things work fine now! – blueseal Feb 24 '15 at 19:54
  • 1
    @blueseal, ln -s creates a symlink from the binary to filename in the /lib/x86_64-linux-gnu directory. sudo permissions are needed as /lib is a root directory. – devnull Feb 24 '15 at 19:55
  • I can't upvote, but I really appreciate your effort for the clarification! – blueseal Feb 24 '15 at 20:27
  • @blueseal, don't worry. Glad to help! – devnull Feb 24 '15 at 20:35
  • I try ln not works, but I move these to the lib dir works – Kris Roofe Jan 6 '17 at 6:59

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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