到:http://origin-download.mono-project.com/archive/2.10.5/sources/
下载mono-2.10.5.tar.bz2
下载libgdiplus-2.10.tar.bz2
下载xsp-2.10.2.tar.bz2
1. 先运行:yum update
更新系统组件
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers patch make jpackage-utils build-essential bzip bison pkgconfig glib-devel httpd-devel libX11-devel fontconfig pango-devel ruby ruby-rdoc gtkhtml38-devel wget gettext gcc-g77 automake fiex* libmcrypt* libtool-ltdl-devel* pcre* cmake mhash* libevent-devel
2.安装libgdiplus-2.10.tar.bz2
tar xf libgdiplus-2.10.tar.bz2 cd libgdiplus-2.10 ./configure --prefix=/usr make make install
3. 安装mono-2.10.5.tar.bz2
tar xf mono-2.10.5.tar.bz2 cd mono-2.10.5 ./configure --prefix=/usr make make install
注意报mono-2.10.5/eglib/src/gunicode.c 312行没有 locale_charset方法...[test-eglib] Error 1
改mono-2.10.5/eglib/config.h的HAVE_LOCALCHARSET_H=0,再次安装,OK了
4. 安装xsp-2.10.2.tar.bz2
tar xf xsp-2.10.2.tar.bz2 cd xsp-2.10.2 ./configure --prefix=/usr make make install
注意报:
checking pkg-config is at least version 0.9.0... yes checking for MONO_MODULE... configure: error: Package requirements (mono >= 2.10.0) were not met: No package 'mono' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables MONO_MODULE_CFLAGS and MONO_MODULE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
再装,OK了。