2
votes

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?

1
Add the shared library? - Jeremiah Winsley
How can i find the suitable version. And is there a way to automatically install it by installing some other package that installs the lib? - Makmeksum
I don't have an Ubuntu machine nearby to try, but apt-get install libselinux1 may do it. - Jeremiah Winsley
I installed libselinux1 as u said but still getting the error. - Makmeksum

1 Answers

2
votes

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.