Paket
Paket copied to clipboard
Paket via dotnet throws on Linux
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
dotnet --versionis 7.0.102- Install Paket on Linux using
dotnet tool install --global Paket - Run
paket restorein 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
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