下面我们在CentOS 7上通过源码安装Mono 3.10,需要安装最新的libgdiplus3.8。
1.安装依赖项
yum -y install wget glib2-devel libtiff libtiff-devel libjpeg libjpeg-devel giflib giflib-devel libpng libpng-devel libX11 libX11-devel freetype freetype-devel fontconfig fontconfig-devel libexif libexif-devel gcc-c++ gettext unzip zip bzip2 bzip2-devel curl-devel gtk2-devel boost-devel cairo-devel
2.下载libgdiplus-3.8 并安装
cd /usr/local/src
wget http://origin-download.mono-project.com/sources/libgdiplus/libgdiplus-3.8.tar.gz
tar -zxvf libgdiplus-3.8.tar.gz
cd libgdiplus-3.8
./configure --prefix=/usr
make
make install
3.下载mono3.10.0 并安装
cd /usr/local/src
wget http://download.mono-project.com/sources/mono/mono-3.10.0.tar.bz2
tar -jxvf mono-3.10.0.tar.bz2
cd mono-3.10.0
./configure --prefix=/usr
make
make install
4.安装Jexus
wget linuxdot.net/down/jexus-5.6.3.tar.gz
tar -zxvf jexus-5.6.3.tar.gz
cd jexus-5.6.3
./install
[root@Mono jexus]# find / -name 'libMonoPosixHelper.so'
/usr/lib64/libMonoPosixHelper.so
/usr/local/src/mono-3.10.0/support/.libs/libMonoPosixHelper.so
/usr/lib/libMonoPosixHelper.so
CentOS设置Mono环境变量:http://www.linuxdiyf.com/linux/12269.html
CentOS 7上部署Mono 4和Jexus 5.6:http://www.linuxdiyf.com/linux/12219.html
CentOS 7安装Mono和MonoDevelop:http://www.linuxdiyf.com/linux/10211.html
Mono和MonoDevelop源码编译安装:http://www.linuxdiyf.com/linux/2380.html
Ubuntu 15.04和CentOS 7部署.NET,Mono and DNX:http://www.linuxdiyf.com/linux/12013.html