Mono 无法在 OSX 上工作
Mono not working on OSX
我已经从 http://www.mono-project.com/download/(撰写本文时为 v4.6.1.5)安装了最新版本的单声道到 OSX Sierra (10.12)
在终端中我有 运行 mono --version
并得到 -bash: mono: command not found
的结果。
which mono
和 which mcs
都没有结果。
我安装后重启了,还是一样的结果
查看安装文件夹,发现框架已经安装:
- /Library/Frameworks/Mono.framework/Versions/4.6.1
- /Library/Frameworks/Mono.framework/Versions/Current(指向 4.6.1 文件夹的符号链接)
这是 OSX 的全新安装。我只在原来的 OS.
上安装了 Chrome、Dropbox 和 Skype
我就此向 Xamarin 提出了一个错误:https://bugzilla.xamarin.com/show_bug.cgi?id=45574。截至撰写本文时,还没有对此票的回复。
总结:
我不得不恢复到以前的版本。
v4.4.2 也不起作用所以我回到 v4.3.2
(来自 https://download.mono-project.com/archive/)。
不知道这个BUG是否公开,所以详情如下;
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
folder
From 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 installation
Once 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"
只需在您的 PATH 末尾添加 /Library/Frameworks/Mono.framework/Commands,无需设置任何符号链接。当然,这应该在安装过程中自动为您完成...
我已经从 http://www.mono-project.com/download/(撰写本文时为 v4.6.1.5)安装了最新版本的单声道到 OSX Sierra (10.12)
在终端中我有 运行 mono --version
并得到 -bash: mono: command not found
的结果。
which mono
和 which mcs
都没有结果。
我安装后重启了,还是一样的结果
查看安装文件夹,发现框架已经安装:
- /Library/Frameworks/Mono.framework/Versions/4.6.1
- /Library/Frameworks/Mono.framework/Versions/Current(指向 4.6.1 文件夹的符号链接)
这是 OSX 的全新安装。我只在原来的 OS.
上安装了 Chrome、Dropbox 和 Skype我就此向 Xamarin 提出了一个错误:https://bugzilla.xamarin.com/show_bug.cgi?id=45574。截至撰写本文时,还没有对此票的回复。
总结:
我不得不恢复到以前的版本。
v4.4.2 也不起作用所以我回到 v4.3.2
(来自 https://download.mono-project.com/archive/)。
不知道这个BUG是否公开,所以详情如下;
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"
只需在您的 PATH 末尾添加 /Library/Frameworks/Mono.framework/Commands,无需设置任何符号链接。当然,这应该在安装过程中自动为您完成...