I'm trying to integrate gurobi in our .NET core application via nuget:
<PackageReference Include="OPTANO.Modeling.Gurobi" Version="8.1.1.19"/>
<PackageReference Include="OPTANO.Modeling" Version="3.0.1.451"/>
Now when I run the application locally I get this error message:
System.DllNotFoundException: Unable to load shared library 'gurobi81' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(libgurobi81, 1): image not found
I'm running this on my local machine (macos). When I install gurobi on my local machine everything works fine.
But there's the problem. We want to run the application in a Docker container on Azure. It doesn't make sense to install gurobi on that machine I would say. It seems that only adding the nuget packages is not enough. We already have it up and running with version 7.5 on an app service on Azure. In this case we also only have referenced the NuGet packages and that works.
If we run the application in Docker on Azure with NuGet package 8.1.1.19 then we get kinda same exception as I got on my local machine without gurobi installed:
System.DllNotFoundException : Unable to load shared library 'gurobi81' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libgurobi81: cannot open shared object file: No such file or directory
Can you please help me out so I can get this up and running without installing gurobi locally?
What version of dotnet core and MacOS do you use?
Id like to setup a test env for this issue.
Best,
jp
I am going to create a compareable solution on one of our linux systems.
Is the docker Container somewhere available?
Please allow a few days, we are on bank holidays until Sunday.
Best,
jp
cd ./bin/Debug/netcoreapp3.1
mv libgurobi901.so libgurobi90.so