CentOS6.0 install MONO2.10.6

Source: Internet
Author: User
1. update the system yumupdate2. install necessary related Library yuminstallgccgcc-c ++ bisonpkgconfigglib2-develgettextmakelibpng-devellibjpeg-devellibtiff-devellibexif-develgiflib-devellibX11-dev...

 

1. update the system

 

Yum update

 

 

 

2. install necessary libraries

 

Yum install 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.6.tar.bz2

 

Tar-jxvf mono-2.10.6.tar.bz2

 

Cd mono-2.10.6

 

./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 www.2cto.com

 

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

 

 

 

 

 

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.

From: aquila

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.