question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Linux support missing for .NET Core

See original GitHub issue

When 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:open
  • Created 4 years ago
  • Reactions:11
  • Comments:42 (2 by maintainers)

github_iconTop GitHub Comments

13reactions
atrauzzicommented, Mar 15, 2021

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).

7reactions
PaulEspritcommented, Apr 16, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found