Resolve error while loading shared libraries: libselinux.so.1 in ubuntu 14.04 LTS

13,016

This might happen if you have recently installed a shared library and didn't run ldconfig(8) afterwards. Do ldconfig, there's no harm in it.

Share:
13,016
Makmeksum
Author by

Makmeksum

Updated on June 04, 2022

Comments

  • Makmeksum
    Makmeksum almost 2 years

    When i was trying to execute a binary in ubuntu 14.04 LTS, I got this error:

    error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory.

    How can this be resolved?

  • Makmeksum
    Makmeksum over 9 years
    Now I found the lib is in the system at '/lib/x86_64-linux-gnu/libselinux.so.1' also I did run ' sudo ldconfig -l -p /lib/x86_64-linux-gnu/libselinux.so.1' It showed the lib is in the cache "libselinux.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libselinux.so.1"