I have installed the latest version of mono from http://www.mono-project.com/download/ (v4.6.1.5 at time of writing) onto OSX Sierra (10.12)
In terminal I have run mono --version
and get a result of -bash: mono: command not found
.
which mono
and which mcs
both yield no results.
I have restarted after the installation and get the same result.
I have looked in the installation folder and I can see the framework has been installed:
This is a clean installation of OSX. I have only installed Chrome, Dropbox and Skype over the original OS.
Just add /Library/Frameworks/Mono.framework/Commands at the end of your PATH, no need then to set up any symlinks. Of course this should be done automatically for you during installation...
I raised a bug with Xamarin regarding this: https://bugzilla.xamarin.com/show_bug.cgi?id=45574. As of time of writing there has been no response to this ticket.
In summary:
I have had to revert back to a previous release.
v4.4.2 didn't work either so I went back to v4.3.2
(from https://download.mono-project.com/archive/).
I don't know if this bug is view-able publicly, so the details are as follows;
I am installing Mono v4.6.1.3 on a clean (brand-new) instance of OSX Sierra (Virtual Machine). There is no other software installed other than that included the OSX Sierra. I have not run any security updates.
Prior to installation:
- I have enabled viewing of hidden files
- I have downloaded the 4.6.1.3 installer from http://www.mono-project.com/download/
- The folder/usr/local/bin
exists (See [1] on attachement)I have successfully run the installation package choosing all the default options (See [2] on attachment)
No files or links have been created in the
/usr/local/bin
folderFrom the command line;
-mono --version
throws an error:-bash: mono: command not found
-which mono
returns nothing (see [3] on attachment)I have to change folders to get this working:
-cd /Library/Frameworks/Mono.framework/Versions/Current/Commands
-./mono --version
returns: "Mono JIT compiler version 4.6.1 (mono-4.6.0-branch-c8sr0/abb06f1 Fri Sep 23 19:24:23 EDT 2016)"
This is different behaviour to previous versions, for example;
Restored VM to "clean" state
- Installed v4.2.4 Mono package (downloaded from http://download.mono-project.com/archive/)
- The/usr/local/bin
folder is populated with links during installationOnce the 4.2.4 installer has completed I can successfully run the following without changing folders (i.e. from
/Users/Username
); -mono --version
from terminal returns: "Mono JIT compiler version 4.2.4 (explicit/71b88f3 Thu May 5 17:25:51 EDT 2016) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com"
-which mono
returns "/usr/local/bin/mono"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With