rhino3dm: DllNotFoundException for 'librhino3dm_native' on linux for versions above 7.6.0 for .NET
System.DllNotFoundException: Unable to load shared library 'librhino3dm_native' or one of its dependencies.
This error occurs when running on linux-x64 machines with .NET6, for any versions higher than 7.6.0.
I would really like to upgrade, since there are newly added apis i would like to use, such as Curve.JoinCurves, and would like to move to .NET7.
This issue has been around for a while, but there seems to be no updates on it.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 26 (15 by maintainers)
I think Azure App Service runs on Debian. I’ve not tested rhino3dm on Azure App Platform / Debian yet. I’ll open this up again while I do some testing. Thanks for reporting.
I just published a rhino3dm8.0.0-beta.1 on nuget: https://www.nuget.org/packages/Rhino3dm/8.0.0-beta.1 with the fixes discussed here.
@tkahng I’ve tested two templates:
Both running the same code:
The csproj file is like this:
This is mostly because I am testing the library as I build it. Normally you’d have rhino3dm as a Package Reference.
And the files:
I just was able to test this on an aws ec2 linux-x64 instance. I provisioned, connected, installed git, dotnet 7 runtime and sdk, pulled the developer samples onto the machine and ran
dotnet run
. As you’ve already confirmed, it works.Next week I will check on aws lambdas.
okay wait i missed the
GLIBC_2.27' not found
. let me take a look