Paket icon indicating copy to clipboard operation
Paket copied to clipboard

Paket via dotnet throws on Linux

Open DigitalFlow opened this issue 2 years ago • 1 comments

Description

I installed paket on Linux. On trying to restore packages for a project using Paket, I receive the error below:

$ paket restore

Paket version 7.2.0+bb14ab674b2748070a624f394cd6796e11aaffa8
Total time taken: 0 milliseconds
Paket failed with
-> TypeInitializationException: The type initializer for 'Crypto' threw an exception.
-> DllNotFoundException: Unable to load shared library 'System.Security.Cryptography.Native.OpenSsl' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libSystem.Security.Cryptography.Native.OpenSsl: cannot open shared object file: No such file or directory

Is there anything else required to run .NET core Paket on Linux?

Repro steps

Please provide the steps required to reproduce the problem

  1. dotnet --version is 7.0.102
  2. Install Paket on Linux using dotnet tool install --global Paket
  3. Run paket restore in a Paket project folder

Expected behavior

Paket should restore packages on Linux in the .NET core tool variant.

Actual behavior

Paket fails due to DllNotFoundException

Known workarounds

None known to me

DigitalFlow avatar Feb 18 '23 07:02 DigitalFlow

While this is an old issue; Have you tried looking at .NET's required dependencies?

https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#dependencies

ChrSteinert avatar Nov 16 '23 21:11 ChrSteinert