码迷,mamicode.com
首页 > 其他好文 > 详细

Centos6.4安装Mono和MonoDevelop

时间:2016-09-03 06:20:23      阅读:436      评论:0      收藏:0      [点我收藏+]

标签:

Mono官方网站:http://www.mono-project.com
MonoDevelop官方网站:http://monodevelop.com/
注:整个安装过程最好在同一个终端下完成!
 
1、安装一些会使用到的软件包:

yum –y install gcc gcc-c++ bison pkgconfig glib2-devel gettext make libpng-devel libjpeg-devel libtiff-devel libexif-devel giflib-devel libX11-devel freetype-devel fontconfig-devel  cairo-devel httpd httpd-devel

 xterm
 
2、安装libgdiplus:
cd /usr/local/src/
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2
tar -jxvf libgdiplus-2.10.tar.bz2
cd libgdiplus-2.10
./configure --prefix=/opt/mono
make
make install
echo "/opt/mono/lib" > /etc/ld.so.conf.d/mono.conf
ldconfig
 
3、安装Mono:
cd /usr/local/src/ 
wget http://download.mono-project.com/sources/mono/mono-2.10.6.tar.bz2
tar -jxvf mono-2.10.6.tar.bz2
cd mono-2.10.6
./configure --prefix=/opt/mono
make  
漫长的等待.......
make install
echo export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig:$PKG_CONFIG_PATH>>~/.bash_profile
echo export LD_LIBRARY_PATH=/opt/mono/lib:$LD_LIBRARY_PATH>>~/.bash_profile
echo export PATH=/opt/mono/bin:$PATH>>~/.bash_profile
source ~/.bash_profile
输入 mono -V 如有mono版本信息,则安装成功。
 
4、安装GtkSharp:
cd /usr/local/src/
wget http://download.mono-project.com/sources/gtk-sharp/gtk-sharp-2.12.11.tar.bz2
tar -jxvf gtk-sharp-2.12.11.tar.bz2
cd gtk-sharp-2.12.11
./configure --prefix=/opt/mono
make
make install
 
5、安装Mono-Addins:
cd /usr/local/src/
wget http://download.mono-project.com/sources/mono-addins/mono-addins-0.6.tar.bz2
tar -jxvf mono-addins-0.6.tar.bz2
cd mono-addins-0.6
./configure --prefix=/opt/mono
make
make install
 
6、安装GnomeSharp:
yum install libgnome-devel libgnomecanvas-devel libgnomeui-devel libgnomeprint22-devel libgnomeprintui22-devel gnome-panel-devel gtkhtml3-devel gtkhtml2-devel compat-gtkhtml38-devel librsvg2-devel vte-devel libvte-java-devel
cd /usr/local/src/
wget http://download.mono-project.com/sources/gnome-sharp220/gnome-sharp-2.20.0.tar.bz2
tar -jxvf gnome-sharp-2.20.0.tar.bz2
cd gnome-sharp-2.20.0
./configure --prefix=/opt/mono
make
这时会有一个Error,找不到"Mono.GetOptions"
注释/root/monodevelop/gnome-sharp-2.20.0/sample/gnomevfs/Makefile,第218,446,447行
make install
 
7、安装gecko-sharp:
cd /usr/local/src/
wget http://download.mono-project.com/sources/gecko-sharp-2.0/gecko-sharp-2.0-0.13.tar.bz2
tar -jxvf gecko-sharp-2.0-0.13.tar.bz2
cd gecko-sharp-2.0-0.13
./configure --prefix=/opt/mono
make
make install
 
8、安装MonoDevelop:
cd /usr/local/src/
wget http://download.mono-project.com/sources/monodevelop/monodevelop-2.8.8.4.tar.bz2
tar -jxvf monodevelop-2.8.8.4.tar.bz2
cd monodevelop-2.8.8.4
./configure --prefix=/opt/mono
make
make install
 
最后,如果/usr/local/src/和/opt/mono是root用户所有,那么用chown和chgrp命令将所有权改为自己的普通用户。

Centos6.4安装Mono和MonoDevelop

标签:

原文地址:http://www.cnblogs.com/tuokuzifangpi/p/5836118.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!