Use MONO in Centos to support ASP. NET

Source: Internet
Author: User

I haven't written anything for a long time. I find that I am getting lazy and don't want to do anything. Think about the previous ambition: it can be said that it cannot be a whole, but now it is silly and naive to think back. The environment and time have greatly changed people. People are really a combination of contradictions. I have always hoped that my abilities in all aspects can surge with those of the day, and I have worked hard for a while. However, every time I see my peers, I always feel too far apart. I also asked myself why it was like this, but there was no result. In this way, you can only tell yourself that you cannot deviate from the general direction you have set. Instead, you will be numbly walking on the road without knowing whether to move forward or backward. In this way, you will be reminded that you have never been lost. Linux and Microsoft have always been difficult, and the situation has improved a little after the cooperation between Microsft and Novell over the years. However, it is difficult to make sure that their applications can be seamlessly migrated. MONO is an open-source project launched by Novell to provide ASP. NET support in the Linux environment. The current version is 2.2, which supports ASP. NET 2.0 applications. Currently, 64-bit support is not provided. The project url is: [url] http://www.mono-project.com/Main_Page [/Url], the source code is: [url] http://ftp.novell.com/pub/mono/sources-stable/ [/Url]. Mono can be installed in multiple ways. In Redhat Linux, the easiest way is to install Mono through Yum. If the YUM application is not enabled, refer to this article to install: Enable yum to upgrade RedHat Linux Enterprise ([url] http://waringid.blog.51cto.com/65148/51947 [/Url]). After completing the YUM settings, you can download the Mono. dag file from the mono website to configure the YUM source [url]. http://www.go-mono.com/mono-downloads/download.html [/Url]. After the configuration is complete, run the following command to install mono. Here we take RHEL 4AS as an example to introduce how to install Mono through the source code. Note that the system has not installed any X components. For the corresponding system and preliminary software installation, refer to [url]. http://waringid.blog.51cto.com/65148/58144 [/Url]. The installation of yum install mono mod-mono-web source code depends on the corresponding development kit. Therefore, install the apache component before installing mono. For details about how to install apache and php, refer to [url]. http://waringid.blog.51cto.com/65148/58144 [/Url]. After installing apache and php (php must support GD), install the following components: TIFF supports [url] http://www.libtiff.org/ [/Url] EXIF supports [url] http://libexif.sourceforge.net/ [/Url] And GIF support
[Url] http://sourceforge.net/projects/giflib/#/url. The installation procedure is as follows: Install EXIF to support cp/usr/local/png/lib/pkgconfig/libpng */usr/lib/pkgconfig/
Cp/usr/local/jpeg/include/*/usr/include/

Tar jxvf libexif-0.6.17.tar.bz2
Cd libexif-0.6.17
./Configure
Make
Make install

Tar jxvf exif-0.6.17.tar.bz2
Cd exif-0.6.17
./Configure -- prefix =/usr/local/exif
Make
Make install
Installing TIFF supports tar zxvf tiff-3.8.2.tar.gz
Cd tiff-3.8.2
./Configure -- prefix =/usr/local/tiff
Make
Make install
Installation GIF supports tar jxvf giflib-4.1.6.tar.bz2
Cd giflib-4.1.6
./Configure -- prefix =/usr/local/gif
Make
Make install
After installing the source code, you can configure Lib and include. The location of lib and include varies depending on the source code settings, while Mono only searches the/usr/lib directory, therefore, you need to use the following command to configure the corresponding support. Cp/usr/local/lib/pkgconfig/libexif. pc/usr/lib/pkgconfig/
Cp/usr/local/gif/lib/*/usr/lib/
Cp/usr/local/gif/include/*/usr/include/
Cp/usr/local/tiff/lib/*/usr/lib/
Cp/usr/local/tiff/include/*/usr/include/
Install libgdiplustar xzf libgdiplus-2.2.tar.gz
Cd libgdiplus-2.2
./Configure
Make
Make install
Install Mono
It must be noted that the mono installation directory must be specified as/usr; otherwise, errors such as 503 may occur. It takes a long time to compile mono, and there are some warnings during compilation, which will not affect the subsequent normal compilation. Tar jxvf mono-2.2.tar.bz2
Cd mono-2.2
./Configure -- prefix =/usr
Make
Make install
Install xsptar jxvf xsp-2.2.tar.bz2
Cd xsp-2.2
./Configure -- prefix =/usr
Make
Make install
Install mod-mono support tar jxvf mod_mono-2.2.tar.bz2
Cd mod_mono-2.2
./Configure -- with-apxs =/usr/local/httpd/bin/apxs
Make
Make install
After the installation is complete, set httpd. conf to support asp.net. Shows the corresponding settings. The path of the test folder has been changed in the test. Modify the directory accordingly. After setting the parameters, restart the apache server. Enter the address [url] http: // 192.168.0.202/test [/url] to view the corresponding support interface. .


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.