centos 6编译安装mono

本文通过centos 6.5 minimal安装测试通过。

1.安装mono的依赖库和编译工具

yum -y update

yum -y install glib2-devel libpng-devel libjpeg-devel giflib-devel libtiff-devel libexif-devel libX11-devel fontconfig-devel gettext make gcc-c++

2.下载并解压libgdiplus和mono的源码

curl -O http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.9.tar.bz2

curl -O http://download.mono-project.com/sources/mono/mono-3.4.0.tar.bz2

tar -jxf libgdiplus-2.10.9.tar.bz2

tar -jxf mono-3.4.0.tar.bz2

3.Configure, make, and make install

cd libgdiplus-2.10.9

./configure --prefix=/opt/libgdiplus

cp libtool pixman/libtool 

make

su -c "make install"

cd mono-3.4.0

./configure --prefix=/opt/mono-3.4.0

make

su -c "make install"

至此就结束了!很简单吧大笑

发表评论