Install mono 2.10.6 in centos 5.5

Source: Internet
Author: User

Note: This articleArticleRefer to the article centos 6.0 installing mono 2.10.6 and mark the original article based on some problems encountered after the installation.

1. Update the system

Yum update

2. install necessary Libraries

Yum install GCC gcc-C ++ bison pkgconfig glib2-devel gettext make libpng-devel libjpeg-devel LibTIFF-devel libexif-devel giflib-devel libX11-devel FreeType-devel fontconfig-devel Cairo-devel httpd -devel

3. Upgrade SQLite (sqlite3.5 or above is required when installing mono xsp-2.10)

Http://dl.atrpms.net/el5-i386/atrpms/testing/sqlite-3.6.20-1.el5.i386.rpm wget-C

Rpm-uvh sqlite-3.6.20-1.el5.i386.rpm

4. Install libgdiplus

CD/usr/local/src/

Wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2

Tar-jxvf libgdiplus-2.10.tar.bz2

CD libgdiplus-2.10

./Configure -- prefix =/opt/mono

Make

Make install

Echo "/opt/MONO/lib">/etc/lD. So. conf. d/mono. conf

Ldconfig

5. Install mono

CD/usr/local/src/

Wget http://download.mono-project.com/sources/mono/mono-2.10.6.tar.bz2

Tar-jxvf mono-2.10.6.tar.bz2

CD mono-2.10.6

./Configure -- prefix =/opt/mono

Make

Make install

Echo export 'pkg _ config_path =/opt/MONO/lib/pkgconfig: $ pkg_config_path '> ~ /. Bash_profile

Echo export 'path =/opt/MONO/bin: $ path'> ~ /. Bash_profile

Source ~ /. Bash_profile

If mono-V has mono version information, the installation is successful.

6. Install mono xsp-2.10

CD/usr/local/src/

Wget http://download.mono-project.com/sources/xsp/xsp-2.10.tar.bz2

Tar jxvf xsp-2.10.tar.bz2

CD xsp-2.10

./Configure-Prefix =/opt/mono

Make

Make install

7. Install mod_mono-2.10

CD/usr/local/src/

Wget http://download.mono-project.com/sources/mod_mono/mod_mono-2.10.tar.bz2

Tar jxvf mod_mono-2.10.tar.bz2

CD mod_mono-2.10

./Configure-Prefix =/opt/mono

Make;

Make install

Note: After the mod_mono module is installed, the configuration file mod_mono.conf will be copied to the/etc/httpd/CONF/directory by default, but Apache will only load/etc/httpd/conf by default. d/directory configuration, you need to move mod_mono.conf to/etc/httpd/CONF. d/directory.

MV/etc/httpd/CONF/mod_mono.conf/etc/httpd/CONF. d/mod_mono.conf

Test whether aspx can be run. Because mono xsp comes with a demo, which is located in the OPT/MONO/lib/xsp/test directory, we will take this as an example.

Modify mod_mono.conf

VI/etc/httpd/CONF. d/mod_mono.conf

Add the following lines at the end of the file:

Alias/demo "/opt/MONO/lib/xsp/test"
Monoapplications "/demo:/opt/MONO/lib/xsp/test"
Monoserverpath/opt/MONO/bin/mod-mono-server2
<Location/demo>
Sethandler mono
</Location>

Restart Apache

Service httpd restart

Enter http: // localhost/demo/in the browser/

If welcome to mono xsp appears! The prompt message indicates that the operation is successful.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.