fsprojects / Paket

A dependency manager for .NET with support for NuGet packages and Git repositories.
https://fsprojects.github.io/Paket/
MIT License
2.02k stars 520 forks source link

Paket via dotnet throws on Linux #4198

Open DigitalFlow opened 1 year ago

DigitalFlow commented 1 year ago

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

ChrSteinert commented 10 months ago

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