我已经安装了Mono 3.0.1,但是我遇到了大量的依赖问题,试图安装Mod_Mono和Xsp4,有没有人让这个工作?如果是这样,您必须采取哪些步骤?这是一个中心位置吗?
非常感谢您花时间阅读我的问题和快乐的编码!
答案 0 :(得分:11)
环境: Centos 6.3基本安装 阿帕奇/ 2.2.15
安装步骤:
#Install required software
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
mkdir -p /opt/mono
cd /tmp
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
cd libgdiplus-2.10
./configure --prefix=/opt/mono
make ; make install
cd ../mono-2.10.2
./configure --prefix=/opt/mono --with-libgdiplus=/opt/mono
make ; make install
export PATH=$PATH:/opt/mono/bin
export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig
cd ../xsp-2.10.2
./configure --prefix=/opt/mono
make ; make install
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/
答案 1 :(得分:1)
目前正在使用mono和xsp4:
[root]# cat /etc/redhat-release
CentOS release 6.7 (Final)
[root]# mono --version
Mono JIT compiler version 4.5.0
[root]# xsp4 --version
xsp4.exe 2.10.2.0
Chazt3n解决方案没问题,除了我必须做一些改动才能使它工作:
现在效果很好,谢谢。