Install mono 2.10.8 on centos 6.0

Source: Internet
Author: User

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. 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

 

4. Install mono

CD/usr/local/src/

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

Tar-jxvf mono-2.10.8.tar.bz2

CD mono-2.10.8

./Configure -- prefix =/opt/mono

Make

Long wait .......

Make install

Echo export pkg_config_path =/opt/MONO/lib/pkgconfig: $ pkg_config_path> ~ /. Bash_profile

Echo export LD_LIBRARY_PATH =/opt/MONO/lib: $ LD_LIBRARY_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.

 

5. 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

 

6. 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

 

Mod_mono configuration: CP/etc/httpd/CONF/mod_mono.conf/etc/httpd/CONF. d/mod_mono.conf Add the following configuration to mod_mono.conf:

Monoserverpath/opt/MONO/bin/mod-mono-server4

 

Modify/etc/profile and add

Mono_home =/opt/monopath = $ mono_home/bin: $ pathclasspath =.: $ mono_home/lib/export mono_homeexport pathexport classpath

 

Test whether aspx can be executed:

Create a test. ASPX page under the/var/www/html/directory with the content
<% = "Hello world! "%>
Download the content of this page through wget http: // localhost/test. aspx.

 

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.