Linux support missing for .NET Core
See original GitHub issueWhen trying to run minimal application on linux, exception is thrown
System.DllNotFoundException: Failed to find library "libleptonica-1.78.0.so" for platform x64
So native dependencies aren’t included for any platforms other than Windows it seems.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:42 (2 by maintainers)
Top Results From Across the Web
Install .NET on Linux distributions
This article details how to install .NET on various Linux distributions either manually, via a package manager, or via a container. Manual ...
Read more >Install the .NET SDK or the .NET Runtime on Ubuntu
Demonstrates the various ways to install .NET SDK and .NET Runtime on Ubuntu.
Read more >I am using .NET Core with C# on Linux, and library ...
Program.cs(1,14): error CS0234: The type or namespace name 'Drawing' does not exist in the namespace 'System' (are you missing ...
Read more >.NET core vs .NET framework
NET Core is used to create server applications that run on Windows, Linux and Mac. ... NET Core MVC; Missing 3rd-party library support...
Read more >Developers - Linux support missing for .NET Core -
When trying to run minimal application on linux, exception is thrown. System.DllNotFoundException: Failed to find library ...
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
Wouldn’t it make more sense to just bundle the native dependencies in the package? There are many .net packages that do this rather than requiring that people have exactly the right libs installed (or perform manual steps to copy in those dependencies).
This worked fo me in Dockerfile. We had to build libtesseract.so.4.0.1 from source RUN apt-get update && apt-get install -y libleptonica-dev RUN apt-get update && apt-get install -y libtesseract-dev RUN apt-get update && apt-get install -y libc6-dev RUN apt-get update && apt-get install -y libjpeg62-turbo-dev RUN apt-get update && apt-get install -y libgdiplus
WORKDIR /app/x64 RUN ln -s /usr/lib/x86_64-linux-gnu/liblept.so.5 liblept.so.5 RUN ln -s /usr/lib/x86_64-linux-gnu/liblept.so.5 libleptonica-1.80.0.so COPY ./sofile/libtesseract.so.4.0.1 libtesseract41.so