我正在尝试在Mac(OS X 10.10.5版本)上安装Mono,虽然安装过程提示已成功完成,但我无法从终端调用mono。
为了安装它,我以root身份运行了uninstallMono.sh以确保没有任何残留文件,然后运行了MonoFramework-MDK-4.0.4.1.macos10.xamarin.x86.pkg。安装程序似乎成功完成,但尝试调用mono却返回以下错误信息:
-bash: mono: command not found
Mono框架似乎已经安装好了:
Lees-Mac-Pro:Downloads kevinmack$ cd /Volumes/Macintosh\ HD/Library/Frameworks/
Lees-Mac-Pro:Frameworks kevinmack$ ls -l
total 32
lrwxr-xr-x 1 root wheel 71 Jan 20 2015 AEProfiling.framework -> ../../Applications/Motion.app/Contents/Frameworks/AEProfiling.framework
lrwxr-xr-x 1 root wheel 74 Jan 20 2015 AERegistration.framework -> ../../Applications/Motion.app/Contents/Frameworks/AERegistration.framework
lrwxr-xr-x 1 root wheel 74 Jan 20 2015 AudioMixEngine.framework -> ../../Applications/Motion.app/Contents/Frameworks/AudioMixEngine.framework
drwxr-xr-x 8 root admin 272 Sep 12 11:24 Mono.framework
lrwxr-xr-x 1 root wheel 60 Sep 9 22:16 NyxAudioAnalysis.framework -> /System/Library/PrivateFrameworks/NyxAudioAnalysis.framework
drwxr-xr-x 5 root wheel 170 Jan 20 2015 PluginManager.framework
drwxr-xr-x 8 root wheel 272 Sep 9 22:19 iTunesLibrary.framework
...但是它不在/usr/bin
中,尝试使用which mono
查找其可执行文件返回空。
.bash_profile
文件中。这假定你仍在使用bash,如果你已经更改了你的shell,那么你已经知道如何设置新的shell了。 - zanedp