On one of my recently installed servers I’ve got customer complain about ffmpeg missing some obscure shared libraries. I went to investigate and met some interesting case
1 2 |
# ffmpeg ffmpeg: error while loading shared libraries: libwbclient.so.0: cannot open shared object file: No such file or directory |
However libwbclient was present on the system with all shared libraries in place. I tried to rebuild shared libraries cache with ldconfig and it didn’t work
1 2 |
# ldconfig Aborted |
Running it in vebose mode was not very helpful either
1 2 3 4 5 6 7 8 |
ldconfig -v ldconfig: Can't stat /libx32: No such file or directory ldconfig: Path `/usr/lib' given more than once ldconfig: Path `/usr/lib64' given more than once ldconfig: Can't stat /usr/libx32: No such file or directory /lib: /lib64: Aborted |
When I tried to delete /etc/ld.so.cache file it was not regenerated. In fact i end up with empty ld.so.cache all together without possibility to rebuild it. Not until I deleted /var/cache/ldconfig/aux-cache file. After that I could run ldconfig without errors and rebuild ld.so cache properly populating /etc/ld.so.cache and /var/cache/ldconfig/aux-cache too.
Thank you very much!
Worked in my Slackware64 14.2 box!