如何在Ubuntu中安装Mono的最新版本?
为了在免费操作系统中进行开发,我需要设置Mono (即现在的支持.NET 4.5)。我就是这样做的:
mono-mono-3.2.5./autogen.sh --prefix=/usr/local (已完成确定)make,但它通过错误检查依赖项退出:终端输出:
....
mkdir -p -- build/deps
make[6]: gmcs: Command not found
make[6]: *** [build/deps/basic-profile-check.exe] Error 127
*** The compiler 'gmcs' doesn't appear to be usable.
*** You need Mono version 2.4 or better installed to build MCS
*** Check mono README for information on how to bootstrap a Mono installation.
make[5]: *** [do-profile-check] Error 1
make[4]: *** [profile-do--basic--all] Error 2
make[3]: *** [profiles-do--all] Error 2
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/home/hogar/Software/mono-mono-3.2.5/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hogar/Software/mono-mono-3.2.5'
make: *** [all] Error 2但是要安装mono-gmcs,Ubuntu还将安装mono-runtime v2.10.8.1-5 Ubuntu 2。这正是我不想安装的,一个旧版本的mono。
这让我很困惑,我该怎么办?
发布于 2013-12-05 04:36:49
它需要安装mono的另一个实例,因此apt-get install mono-gmcs完成了工作。然后,出现了一个新误差,唯一的解决方案似乎正在使用GitHub包:
git clone git://github.com/mono/mono.git
cd mono
./autogen.sh --prefix=/usr/local
make
make install现在我安装了是mono的最新版本。
注:现在我跑不了任何单一的程序,例如单开发。我找不到异常的解决方案,所以现在我将mono降级为一个旧的兼容版本。
PS:如果您找到解决方案,请留下评论:)
https://unix.stackexchange.com/questions/103745
复制相似问题