首页 > 代码库 > Centos7下安装mono3.10.0
Centos7下安装mono3.10.0
mono 3.10.0 正式发布:性能进一步改进,以前已经写过一篇 Centos 7.0 安装Mono 3.4 和Jexus 5.6。下面我们在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 --libdir=/usr/lib64
这里加上--libdir=/usr/lib64 ,主要是P/Invoke ,具体参考 MONO x64 amd_x64
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
Centos7下安装mono3.10.0