在Centos 6上安装最新的Mono [英] Installing latest mono on Centos 6

查看:85
本文介绍了在Centos 6上安装最新的Mono的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Linux的新手(实际上是几次使用它),我尝试通过yum安装mono.但是我已经获得了不支持.NET 4的过时版本

I am new to Linux (literally new- used it a couple of times) and I tried to install mono via yum; but I have gotten an outdated version that don't support .NET 4

如何安装mono 2.10.8?

How can I install mono 2.10.8?

推荐答案

好吧,这是我想到的,并且对我有用:

Well, this is what I came up with and it worked for me:

基于文章:

$yum install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget

$cd /usr/local/src 

$wget http://download.mono-project.com/sources/mono/mono-3.0.1.tar.bz2

$tar jxf mono-3.0.1.tar.bz2

$cd mono-3.0.1

$./configure --prefix=/opt/mono

$make && make install

然后我下载了MonoDevelop IDE,并使用Mono框架编译了程序.

Then I downloaded the MonoDevelop IDE and compiled my program using Mono framework.

然后在Centos中我调用了程序:

Then in Centos I called my program:

/opt/mono/bin/mono /root/MyFolder/MyProgramDir/myProgram.exe "$@"

这篇关于在Centos 6上安装最新的Mono的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆