ozgur
ozgur

Reputation: 2719

Unable to load shared library when running on .NET interactive on Mac

I am trying to run a code that uses MKL native library in a .ipynb .NET notebook and I get the following error.

Error: System.DllNotFoundException: Unable to load shared library 'libmkl_rt.dylib' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(liblibmkl_rt.dylib, 1): image not found

The code runs as expected if I run it with dotnet run but it doesn't on the interactive notebook. What could be the solution? (ps using .NET 5.0)

Upvotes: 2

Views: 8767

Answers (1)

ozgur
ozgur

Reputation: 2719

Copying the native libraries into /usr/local/lib solved the problem.

Upvotes: 0

Related Questions