centos 编译安装mono

yum -y install httpd httpd-devel make glib2-devel libpng-devel libjpeg-devel 
giflib-devel libtiff-devel libX11-devel gcc* fontconfig-devel bison gettext bzip2  
libtool automake autoconf wget unzip


directory we will be installing mono in

mkdir -p /opt/mono 

cd /tmp

Download & extract source

wget http://download.mono-project.com/sources/mono/mono-2.10.2.tar.bz2
wget http://download.mono-project.com/sources/xsp/xsp-2.10.2.tar.bz2
wget http://download.mono-project.com/sources/mod_mono/mod_mono-2.10.tar.bz2
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2

tar -xjf mono-2.10.2.tar.bz2
tar -xjf xsp-2.10.2.tar.bz2
tar -xjf mod_mono-2.10.tar.bz2
tar -xjf libgdiplus-2.10.tar.bz2

compile and install libgdiplus

cd libgdiplus-2.10./configure --prefix=/opt/mono
make ; make install

compile and install mono

cd ../mono-2.10.2./configure  --prefix=/opt/mono --with-libgdiplus=/opt/mono
make ; make install

Set enviroment vars(make sure to also modify ~/.bash_profile)

export PATH=$PATH:/opt/mono/bin
export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig

compile and install xsp

cd ../xsp-2.10.2./configure --prefix=/opt/mono
make ; make install

compile and install mod_mono

cd ../mod_mono-2.10./configure --prefix=/opt/mono --with-mono-prefix=/opt/mono
make ; make install


mv /etc/httpd/conf/mod_mono.conf /etc/httpd/conf.d/


http://stackoverflow.com/questions/14901271/installing-mod-mono-and-xsp4-on-centos-6-3

转载于:https://www.cnblogs.com/moher/archive/2013/05/29/3105284.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值