Native library not loaded on Linux
See original GitHub issueHi I’m having some serious issues with this package. I added the package to my project and copied the native .so file to the root of my ASP.NET Core project. Now when I start the application and try to convert HTML to PDF I get the following error:
(Exception from HRESULT: 0x8007007E)) ---> System.DllNotFoundException: Unable to load DLL 'libwkhtmltox': The specified module could not be found.
I’ve tried setting up LD_LIBRARY_PATH
to my app folder. I even copied the .so file to /usr/lib
but it doesn’t work at all.
Any ideas what to do here?
Issue Analytics
- State:
- Created 6 years ago
- Comments:28 (5 by maintainers)
Top Results From Across the Web
J2V8 native library not loaded · Issue #260
It seems that j2v8 can only run one application in one computer(both in windows and linux). Any fix? I think the file ~/libj2v8_win32_x86_64.dll...
Read more >Failed to load native library 'libnative-platform.so' for Linux ...
FAILURE: Build failed with an exception. * What went wrong: Failed to load native library 'libnative-platform.so' for Linux amd64.
Read more >Cannot load native library for Linux/amd64
couchbase lite is giving intermittent error for loading native library in PCF while it runs fine in local windows 10 machine.
Read more >java.lang.UnsatisfiedLinkError: Library not found tibrvnative ...
8 Steps to Solve "Library not found tibrvnative or android" Error in Java · 1. Check library availability · 2. Verify library compatibility...
Read more >Library not loaded (OS X)
In short, library is not loaded when from outside its native directory. The sequence of commands triggering the problem is the following ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fernandovictorTI, I believe the problem is that the second stage of your build (
runtime
) is not running the below command again, solibwkhtmltox
and it’s dependencies are left in the first stage (build
).After install of libgdiplus in
microsoft/dotnet:1.1.2-runtime
image libwkhtmltox library is found.Dockerfile:
Result: 636370886662487690.pdf
Thanks @Ahmed-Raouf for pointing this out.