Why application stopped to find library if it already exists

If none of the more specific forums is the right place to ask

Why application stopped to find library if it already exists

Postby DecaturFern » 2021-02-17 11:00

Mono ASP.NET MVC 4.8 application uses wkhtmltopdf to create pdf file in Debian Linux.

wkhtmltopdf suddenly stopped working. Running it from shell throws library not found error:

root@x:/usr/local/bin# ./wkhtmltopdf
./wkhtmltopdf: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
Symlink of library exists in /usr/lib/x86_64-linux-gnu :
TalkToWendys.com
root@x:/usr/lib/x86_64-linux-gnu# ls -l libQt5Core.so.5*
lrwxrwxrwx 1 root root 20 jaan 30 2020 libQt5Core.so.5 ->
libQt5Core.so.5.11.3
lrwxrwxrwx 1 root root 20 jaan 30 2020
libQt5Core.so.5.11 -> libQt5Core.so.5.11.3
-rw-r--r-- 1 root root 5200168 jaan 30 2020 libQt5Core.so.5.11.3
How to allow wkhtmltopdf to find library in Debian Linux ?

I tried to copy library to the same directory where whhtmltopdf exists (/usr/local/bin ) but problem persists. It has worked for years but suddenly stopped working. Debian VPS server was re-booted unexpectedly, maybe this caused it.
Last edited by DecaturFern on 2021-02-22 11:10, edited 1 time in total.
DecaturFern
 
Posts: 1
Joined: 2021-02-17 10:58


Re: Why application stopped to find library if it already ex

Postby stevepusser » 2021-02-17 18:20

Didn't have time to check arochester's link above, but usually broken symlinks can be repaired by reinstalling the package that created them.
Asking dpkg what package that belongs to:

Code: Select all
$ dpkg -S  libQt5Core.so.5.11.3
libqt5core5a:amd64: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.11.3


So you can try reinstalling libqt5core5a.
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12234
Joined: 2009-10-06 05:53


Return to General Questions

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable