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命令将所有权改为自己的普通用户。