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.
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
-
- Posts: 1
- Joined: 2021-02-17 10:58
Why application stopped to find library if it already exists
Last edited by DecaturFern on 2021-02-22 11:10, edited 1 time in total.
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 54 times
- 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
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:
So you can try reinstalling libqt5core5a.
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
MX Linux packager and developer