It could be that libdl.so does not exist but libdl.so.2 does. In this case a workaround is to create symbolic link from libdl.so to libdl.so.2 at the location which whereis libdl.so.2 outputs.
libdl.so
libdl.so.2
whereis libdl.so.2