How to install mono and jexus in DOTNET on Linux

Source: Internet
Author: User

First of all, I would like to thank <Linux DOTNET ChineseCommunity>.

Currently, ASP is set up on Linux. net websites and web application construction projects have become popular in China, while the "mono + jexus" Architecture mode is Linux carrying ASP. net enterprise-level applications. this article is mainly based onTechnical materialsIn addition, my personal experience in building the "mono + jexus" architecture. For more details about the mono + jexus architecture mode, visit http://www.linuxdot.net /.

System: Ubuntu server 12.04. Only OpenSSH is selected during installation.

I. compiling environment

This is a newly installed system. You must first build a compilation environment to smoothly compile and install the mono source file. Run the following command to build the compiling environment:

Sudo apt-Get install build-essential
Sudo apt-Get install automake Autoconf

 

Ii. Install the library files on which libgdiplus and mono depend

Next, install some library files and run the following command to install the required library files:

Sudo apt-Get install bison libglib2.0-Dev
Sudo apt-Get install libgif-dev libtiff4-dev libpng12-dev libexif-dev libx11-dev libxft-dev libjpeg-Dev

The tutorial in the community, the last one in the second command is a libjpeg62-dev, But I prompted a lack of dependency when installing, according to this dependency does not stop adding library files, finally the system said there were two library file conflicts, I changed the libjpeg62-dev to libjpeg-Dev, practice has proved the same.

 

Iii. File Download and decompression

1. download the file:

Wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2
Wget http://download.mono-project.com/sources/mono/mono-2.11.3.tar.bz2
Wget http://www.linuxdot.net/down/jexus-5.1.tar.gz

2. decompress:

Tar-jxvf libgdiplus-2.10.tar.bz2
Tar-jxvf mono-2.11.3.tar.bz2
Tar-zxvf jexus-5.1.tar.gz

 

Iv. Compilation and Installation

1. Install libgdiplus
CD libgdiplus-2.10
./Configure -- prefix =/usr
Make
Sudo make install
CD ..

After libgdiplus is compiled successfully, you can see some details:

 

2. Install mono
CD mono-2.11.3
./Configure -- prefix =/usr
Make
Sudo make install
CD ..

We recommend that you install gettext before compiling mono; otherwise, the following error occurs when you execute "./configure -- prefix =/usr:

Of course, you can fix this file after installing gettext.

After successfully compiling mono, you can see the following information:

With the above steps, Mono has been installed. You can use mono-V to check whether the installation is successful.

 

3. Install jexus
Jexus installation is very simple, just a copy, paste, and register globalProgramBut pay special attention to the process of using the root identity.
A. copy the file. We recommend that you install jexus in/usr/jexus:

Sudo CP-RF Co., jexus-5.1/usr/jexus


B. register the global assembly:
CD/usr/jexus
Sudo./JWS. regsvr

C. Check the permissions of the JWS. Start, JWS. Stop, JWS. Restart, and JWS. regsvr script files to check whether they have executable permissions.

The installation is complete ~~

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.