Message Boards Message Boards


Using .NET with MONO under OSX 10.10

Posted 4 years ago
4 Replies
3 Total Likes


I'm quite new using Mathematica Home Edition and .NET on my Mac Book running OSX10.10. In order to use .NET I installed the latest MONO version "MonoFramework-MDK-3.12.1-macosx10.xamarin.x86.pkg". MONO install path is "/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/libmonoboehm-2.0.1.dylib"

But when I try to establish a .NET communication e.g. with Needs["NETLink`"] InstallNET[]; the only message is : Cannot set current directory to \ /Applications/\ framework/. >>

The path is wrong as the Mathematica installation path is : /Applications/ So the path "../contents/contents/.." seems to be the issue.

Anybody out there to provide some advice ? Thank a lot in advance.


4 Replies

This is an issue in Mathematica 10.0.2. It is fixed in Mathematica 10.1.0, but if you don't have access to that version, here's a workaround:

Locate this file:

FileNameJoin[{$InstallationDirectory, "SystemFiles", "Links", "NETLink", "Kernel", "InstallNET.m"}]

and then replace it with the file attached.

Posted 4 years ago

Hi Stefan,

your exceptional fast answer "saved my day" ! It works perfect, thank a lot.


You're welcome, glad to hear it! :)

FYI, newer versions of Mono no longer install to "/usr/bin" so the default option value of InstallNET,

OptionValue[InstallNET, "MonoPath"]  (* returns "mono" *)

may no longer be found. Instead, set this path yourself when using InstallNET:

InstallNET["MonoPath" -> "/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono"]
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract