Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Why application stopped to find library if it already exists

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
DecaturFern
Posts: 1
Joined: 2021-02-17 10:58

Why application stopped to find library if it already exists

#1 Post by DecaturFern »

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.


User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

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

#3 Post by stevepusser »

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

Post Reply