Mono has been applied more and more in China. Nowadays, many companies do not dare to use it in the production environment due to commercial copyright issues, but this cannot block mono's charm .. Net programmers, it would be a pity if you do not know mono. & Ldquo; Mono + Jexus & rdquo; architecture mode is an extremely important architecture mode for Linux to host ASP. NET enterprise-level applications. In this architecture, Jexus is well installed and configured, which is basically a process of downloading, extracting, and copying, but mono installation will be troublesome.
Mono has been applied more and more in China. Nowadays, many companies do not dare to use it in the production environment due to commercial copyright issues, but this cannot block mono's charm .. Net programmers, it would be a pity if you do not know mono.
The "Mono + Jexus" Architecture mode is an extremely important architecture mode for Linux to host ASP. NET enterprise-level applications. In this architecture, Jexus is well installed and configured, which is basically a process of downloading, extracting, and copying, but mono installation will be troublesome. This article will record the use of Mono source code for installation in the Ubuntu operating system. Install jexus later and use a test page to verify that jexus has been installed successfully.
The combination of jexus and mono will be introduced in the next article.
1. Select the Operating System
We recommend that you use Ubuntu server because the entire process runs on a virtual machine and is based on the Linux release version. The version I use is ubuntu server 12.04.2:
Ansen @ ansen :~ $ Cat/etc/issue
Ubuntu 12.04.2 LTS \ n \ l
To upgrade the ubuntu system, run the following two commands:
Sudo apt-get update
Sudo apt-get upgrade
Ubuntu server is usually "clean" during installation, so we also need to compile the environment. These compilation environments are necessary for the successful installation of mono source code:
Sudo apt-get install build-essential
Sudo apt-get install automake autoconf
Sudo apt-get install bison gettext libtool libglib2.0-dev libfreetype6-dev libfontconfig-dev.
In addition to installing these compiling environments, you must install Libgdiplus before installing mono. Before installing Libgdiplus, you must install the following compiling environments and library files:
Sudo apt-get install libgif-dev libtiff4-dev libpng12-dev libexif-dev libx11-dev libxft-dev libjpeg62-dev
After running the preceding command, an error is reported:
Ansen @ ansen :~ $ Sudo apt-get install libgif-dev libtiff4-dev libpng12-dev libexif-dev libx11-dev libxft-dev libjpeg62-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages cocould not be installed. This may mean that you have
Requested an impossible situation or if you are using the unstable
Distribution that some required packages have not yet been created
Or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
Libtiff4-dev: Depends: libjpeg-dev
E: Unable to correct problems, you have held broken packages.
The error message is also displayed because the libtiff4-dev needs to depend on libjpeg-dev instead of the libjpeg62-dev, so you need to change the last argument of the command to libjpeg-dev:
Sudo apt-get install libgif-dev libtiff4-dev libpng12-dev libexif-dev libx11-dev libxft-dev libjpeg-dev
In this way, the operation is successful.