安装Mono 3.XMono

2023-09-02 01:28:39 作者:没对象也很快活

我最近读了单声道3.0已经发布了C#编译器5,支持MVC 4浏览:

I've recently read that Mono 3.0 has been released with a C# 5 compiler and support for MVC 4 here:

http://www.mono-project.com/Release_Notes_Mono_3.0

http://tirania.org/blog/archive/2012/Oct-22.html

有关我的生活中,我可以不知道从哪里作为包Linux或甚至是Windows得到它。

For the life of me I cannot work out where to get it from as a package for Linux or even Windows.

本页面似乎暗示它仍然处于测试阶段:

This page seems to suggest it's still in Beta:

http://www.go-mono.com/mono-downloads/download.html

我试着做了的apt-get安装单完成在Ubuntu 12.10,但它的安装2.10.8.1。

I've tried doing a apt-get install mono-complete on Ubuntu 12.10 but it's installed 2.10.8.1.

我已经尽我的Windows机器上安装MonoDevelop的3,这就是只有presented我用MVC 3项目,似乎是使用.NET框架。

I've tried installing MonoDevelop 3 on my Windows machine and that's only presented me with MVC 3 projects and appears to be using the .NET framework.

我是全新的,以单声道和我GOOGLE了一切可能来试试,看看它是如何工作,但我百思不得其解。我很想得到这个工作在Linux上,如果可能,尝试一些东西了。

I'm entirely new to Mono and I've Googled everything possible to try and see how this works but am baffled. I'd love to get this working on Linux if possible and try some stuff out.

有人可以提供一些线索对这个还是我需要看从源代码构建呢?

Can someone shed some light on this or do I need to be looking at building this from source?

推荐答案

单3.X太前沿的Ubuntu 12.10。从directhex的PPA这种方式抢preVIEW包(这将安装3.2.1):

Mono 3.x is too bleeding edge for Ubuntu 12.10. Grab preview packages from directhex's PPA this way (this will install 3.2.1):

sudo add-apt-repository ppa:directhex/monoxide

(如果你使用Ubuntu 13.10俏皮,加入信息库后,您需要编辑文件 /etc/apt/sources.list.d/directhex-monoxide-saucy.list 并更换字俏皮是铆足了劲)

(If you use Ubuntu saucy 13.10, after adding the repository you need to edit the file /etc/apt/sources.list.d/directhex-monoxide-saucy.list and replace the word saucy with raring)

然后,在那之后:

sudo apt-get update && sudo apt-get dist-upgrade

这也将让你的MonoDevelop 4.x的,如果你有MonoDevelop的前安装。

This will also get you MonoDevelop 4.x if you had monodevelop installed before.

注意:direchtex不是创建一个PPA一些随机的家伙,他的所有的单声道和基于Mono的包的是Debian / Ubuntu的维护团队的一部分。因此,使用这是最正式的方式来升级您的基础架构。

NOTE: direchtex is not some random guy that created a PPA, he's part of the Debian/Ubuntu maintainer team of all the Mono and Mono-based packages. So using this is the most official way to upgrade your infrastructure.

为Debian用户那里:单3.0.6和MonoDevelop的4.0.x的的是Debian的测试已经上市。因此,我建议让这就是:

And for the debian users out there: mono 3.0.6 and MonoDevelop 4.0.x is already available in debian testing. So what I recommend to get this is:

在安装Debian的测试(目前名为Debian的杰西)。 卸载单做 sudo易于得到净化单运行(这样做后,抵制诱惑,做一个 sudo易于得到的autoremove 或你会破坏你的系统,这一点我报告一个错误的这里)。 修改的/etc/apt/sources.list ,找到提到源代码的第一行,重命名字杰西 SID 。 请 sudo易于得到更新。 通过安装MonoDevelop的命令和apt-get安装的MonoDevelop ,这将拉动单声道作为一个依赖了。 还原您在步骤3中做了什么。 在再次执行步骤4。 Install debian testing (currently named debian jessie). Uninstall mono by doing sudo apt-get purge mono-runtime (after doing this, resist the temptation to do an sudo apt-get autoremove or you will break your system, something which I reported as a bug here). Modify /etc/apt/sources.list, locate the first line that mentions the main source, and rename the word jessie to sid. Do sudo apt-get update. Install monodevelop via sudo apt-get install monodevelop, which will pull mono as a dependency too. Revert what you did in step 3. Do step 4 again.

此方式,您有或多或少的现代发行​​版(而不是Debian稳定版),再加上非常非常现代化的单包(为单声道的前沿版本通常是pretty的稳定)。

This way you have a more or less modern distro (as opposed to debian stable), plus very very modern mono packages (the bleeding edge versions for Mono are normally pretty stable).

F#用户:单声道3.0.6具有prevents这种语言在这个版本工作中的错误,请用单声道3.2.x的,而不是

F# users: Mono 3.0.6 has a bug that prevents this language to work in this version, please use Mono 3.2.x instead.