在CentOS 5.x / 6.x上安装Mono和Monodevelop [英] Install Mono and Monodevelop on CentOS 5.x/6.x

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

问题描述

我试图在CentOS 5.9环境中安装Mono和Monodevelop。



我试过以下说明,没有运气。



http:// fealves78。 blogspot.co.uk/2012/08/install-mono-and-monodevelop-on-centos.html



任何人都可以提出替代

解决方案

在这些系统上,我通常从源代码安装Mono。这是一个更多的工作,但你不必依赖日期或破损的包,可能或不可能维护。



以下说明已在CentOS 6.4上测试。



以root身份转到 / usr / src

  su 
cd / usr / src

确保安装GCC和好友源代码)

  yum install gcc gcc-c ++ libtool bison autoconf automake 
pre>

抓取并解压缩Mono源代码

  wget http: //download.mono-project.com/sources/mono/mono-3.0.7.ta​​r.bz2 
tar -xvjf mono-3.0.7.ta​​r.bz2

建立并安装Mono

  cd mono-3.0 .7 
./configure --prefix = / usr
make&& make install

验证您是否使用 mono --version mcs --version



构建GDI +兼容性绘图)

  yum install glib2-devel libX11-devel pixman-devel fontconfig-devel freetype-devel libexif-devel libjpeg-devel libtiff -devel libpng-devel giflib-devel 

cd / usr / src
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.9.tar。 bz2
tar -xvjf libgdiplus-2.10.9.tar.bz2
cd libgdiplus-2.10.9
./configure --prefix = / usr
make&& make install

这是Mono的,但建设MonoDevelop是另一个故事...



Build Gtk-Sharp

  yum install gtk2-devel libglade2-devel 

cd / usr / src
wget http://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-2.12.8.tar.bz2
tar -xvjf gtk-sharp-2.12.8.tar.bz2
cd gtk-sharp-2.12.8
./configure --prefix = / usr
make&&& make install

不幸的是,我认为没有一个合适的gnome-sharp源码tarball足够我们需要的。所以,我们将从Git存储库中获取它。

  yum install pango-devel atk-devel libgnome-devel libgnomecanvas-devel libgnomeui -devel git svn libtool 

cd / usr / src
git clone git://github.com/mono/gnome-sharp
cd gnome-sharp
。 /bootstrap-2.24 --prefix = / usr
make&& make install

与Mono Addins ...相同...

  cd / usr / src 
git clone git://github.com/mono/mono-addins
cd mono-addins
./ autogen.sh --prefix = / usr
make&&& make install

最后,我们可以构建MonoDevelop本身。

  cd / usr / src 
wget http://download.mono-project.com/sources/monodevelop/monodevelop-3.1.1.tar.bz2
tar -xvjf monodevelop-3.1.1.tar.bz2
cd monodevelop-3.1.1
PKG_CONFIG_PATH = / usr / lib / pkgconfig
export PKG_CONFIG_PATH
./configure - -prefix = / usr --select
make&&& make install

现在,您应该在应用程序下的编程菜单中看到MonoDevelop!



现在我们正在做所有这些有趣的Git东西,它是很容易升级到最新的(预发布)版本的Mono任何时候我们想要的...



第一次检出Git:

  cd / usr / src 
git clone git://github.com/mono/mono
cd mono
./autogen.sh --prefix = / usr
make&& make install

只是升级到最新版本(第一次从Git开始构建)

  cd / usr / src / mono 
git pull
./autogen.sh --prefix = / usr
make&&& make install

如果你不想出血,你可以使用Git check-out更稳定分支的单声道。我将把它作为维基百科的练习。


I am trying to install Mono and Monodevelop on a CentOS 5.9 environment.

I have tried the following instructions, with no luck.

http://fealves78.blogspot.co.uk/2012/08/install-mono-and-monodevelop-on-centos.html

Can anyone suggest an alternative to the the above link.

解决方案

On these systems, I typically install Mono from source. It is a bit more work but you do not have to rely on dated or broken packages that may or may not be maintained. Also, it makes it easy to upgrade to the latest versions of Mono.

The instructions below were tested on CentOS 6.4.

Head over to /usr/src as root

su
cd /usr/src

Ensure GCC and friends are installed (to build the Mono source code)

yum install gcc gcc-c++ libtool bison autoconf automake

Grab and unpack the Mono source code

wget http://download.mono-project.com/sources/mono/mono-3.0.7.tar.bz2
tar -xvjf mono-3.0.7.tar.bz2

Build and install Mono

cd mono-3.0.7
./configure --prefix=/usr
make && make install

Verify that you have a working Mono installation with mono --version and mcs --version

Build the GDI+ compatibility layer (required for System.Drawing)

yum install glib2-devel libX11-devel pixman-devel fontconfig-devel freetype-devel libexif-devel libjpeg-devel libtiff-devel libpng-devel giflib-devel

cd /usr/src
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.9.tar.bz2
tar -xvjf libgdiplus-2.10.9.tar.bz2
cd libgdiplus-2.10.9
./configure --prefix=/usr
make && make install

That is it for Mono but building MonoDevelop is another story...

Build Gtk-Sharp

yum install gtk2-devel libglade2-devel

cd /usr/src
wget http://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-2.12.8.tar.bz2
tar -xvjf gtk-sharp-2.12.8.tar.bz2
cd gtk-sharp-2.12.8
./configure --prefix=/usr
make && make install

Unfortunately, I do not think there is a proper source tarball of gnome-sharp that is new enough for what we need. So, we will get it from the Git repository.

yum install pango-devel atk-devel libgnome-devel libgnomecanvas-devel libgnomeui-devel git svn libtool

cd /usr/src
git clone git://github.com/mono/gnome-sharp
cd gnome-sharp
./bootstrap-2.24 --prefix=/usr
make && make install

Same for Mono Addins...

cd /usr/src
git clone git://github.com/mono/mono-addins
cd mono-addins
./autogen.sh --prefix=/usr
make && make install

Finally, we can build MonoDevelop itself.

cd /usr/src
wget http://download.mono-project.com/sources/monodevelop/monodevelop-3.1.1.tar.bz2
tar -xvjf monodevelop-3.1.1.tar.bz2
cd monodevelop-3.1.1
PKG_CONFIG_PATH=/usr/lib/pkgconfig
export PKG_CONFIG_PATH
./configure --prefix=/usr --select
make && make install

You should now see MonoDevelop in the Programming menu under Applications!

Now that we are doing all this fun Git stuff, it is easy enough to upgrade to the latest (pre-release) version of Mono any time we want...

First time checking out of Git:

cd /usr/src
git clone git://github.com/mono/mono
cd mono
./autogen.sh --prefix=/usr
make && make install

To just upgrade to the latest version (after the first time building from Git)

cd /usr/src/mono
git pull
./autogen.sh --prefix=/usr
make && make install

If you do not want the bleeding edge, you can use Git to check-out more stable branches of Mono instead. I will leave that as an exercise for Wikipedia.

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

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