Mono installation on Ubuntu

Source: Internet
Author: User
Tags gtk install mac os x

Required software:
Mono: ftp://www.go-mono.com/archive/1.2.5/linux-installer/5/
Mono sourcecode: http://go-mono.com/sources-stable/ GCC ftp://ftp.gnu.org/gnu/gcc/
Glib ftp://ftp.gnu.org/gnu/glibc/
The GNU M4 ftp://ftp.gnu.org/
PGK http://pkgconfig.freedesktop.org/releases/
Gettext ftp://ftp.gnu.org/gnu/gettext/
Bison ftp://ftp.gnu.org/gnu/bison/
GTK http://download.chinaunix.net/download/0005000/4195.shtml
VMware 6.0.2 http://yqtel.cncrk.com: 8080/soft/keygen/VMware-workstation.rar
1. Install VMware 6.0.2 on the XP System
2. Install Ubuntu 7.1 (ISO) on Vmware (when apt (82%) is being set up, scanning the image site... stopped. How can this problem be solved? Http://www.linuxdiyf.com/bbs/viewthread.php? Tid = 63524
3. Install GCC, glib, PGK, Bison, gun M4, gettext, and GTK on Ubuntu respectively;
4. Install Mono (http://www.mono-project.com/InstallerInstructions)
5.


 

Install mono in this chapter. U. Download mono. U. Install mono. Configure xsp2.1. Download mono to install mono on Windows, Linux, Max OS X, FreeBSD, and other operating systems. Mono supports gnome, Kde, and Windows desktop environments. Due to the dependency of the Linux software package, problems may occur in some Linux distributions during mono installation. The reason is that you did not install the third-party software package required for running mono, I encountered this problem in slackware Linux. First, you need to download the mono software package from the mono official website. You can obtain the mono software package in multiple ways. 2.1.1 the compiled installation package is directly downloaded from http://www.go-mono.com/download.htm. Different types of official releases or phased releases are provided. You can select the desired type as needed. The installation packages provided here are generally tested and can be correctly compiled and run. There are binary installation packages compiled by redhat9.0, fordra1.0, fordra2.0, Suse, and Debian. Since Suse and mono are available, Mono supports SuSE quite well. The http://www.slackcare.com provides the basic compiled binary Installation File mono, If you need xsp, You have to download the source code compilation. If an error occurs when monodoc or monodevelop is started after the installation is complete, you may download an installation package from the Internet because mozilla-devel is not installed. For other Linux distributions, such as Hongqi linux4.0 and 4.1, you can try to download the rpm for fordra1.0. It is best to download the source code for compilation. 2.1.2 obtain the daily release package of Mono at http://go-mono.com/daily. The daily release package includes the development progress of the Mono Project every day. There are three different types: ø Mono: this is a source code package (including all the binary controls) of the runtime and class library that can be compiled ). You can compile and install a C compiler. You can download the latest version at http://go-mono.com/daily/mono-latest.tar.gz. Ø monocharge: contains all the mono components and executable programs that have been compiled. You can use it to Comprehensively update your installed mono class libraries and tools. Www.edu-cn.com

You can download the latest version at http://go-mono.com/daily/monocharge-latest.tar.gz. Ø monolite: like the monocharge package, the monolite package also provides you with the ability to update mono. However, it only contains the most basic core class libraries corlib, system, system. XML, and compiler. You can download the latest version at http://image.chinaitpower.com/files/20041117/11357.gz. 2.1.3 obtain Mono from the CVS server and allow you to access their CVS server anonymously and download the mono source code. Access in Linux: Make sure that the CVS client is installed on your system. If not, download it at http://www.cvshome.org. Enter the following command in the console: Export cvsroot =: pserver: anonymous@anoncvs.go-mono.com:/mono cvs login (the system prompts you to enter a password, you can press Enter) in CVS-Z3 Co mono, Mono is the project name. You can also change it to another project, such as MCS, libgdiplus, winelib, and GTK-sharp. Then we can see that the file is being downloaded from the server. CVs will automatically create a project file directory consistent with the directory structure on the server under the current directory. In Windows, you can use wincvs to access Mono's CVS server. 2.1.4cvs snapshot if you cannot directly access the CVS server (for many reasons, you do not have a CVS client installed, you cannot directly access the Internet, and you are too lazy to download the CVS server), you can download the source code snapshot. Mono packages the daily source code for download. 2.2 install Mac OS X on mono2.2.1 windows and other operating systems. For more information, see the installation manual on the mono website. On FreeBSD, unbind the mono source code package. For example, execute the command make, make install, and make clean in sequence in/usr/ports/lang/mono. Install mono-1.0-win32-1.exe on Windows. Figure 2.2.1 after installing mono in windows, add D: \ Program Files \ mono-1.0 \ bin (installation path) to path. Or run the setmonopath. BAT file in the D: \ Program Files \ mono-1.0 \ bin folder. Enter mono in the console to view the mono command parameters. Of course, other tools can be found in the D: \ Program Files \ mono-1.0 \ bin folder, such as MCS. 2.2.2 install the mono distribution package in the mono source code on Linux in two forms: one is the package, which needs to be compiled manually, and the other is the Binary Package, which can be directly installed. The package has a wide range of applicability and can be suitable for almost all Linux systems, but the steps are troublesome and take a long time. On the contrary, the installation of Binary packages is relatively simple, but the application scope is relatively narrow. It can only be installed in certain Linux systems, the following are typical RPM installation packages for Redhat Linux, Deb installation packages for Debian Linux, and tgz installation packages for slackware Linux. These Linux distributions provide installation package interface management tools for easy installation. You can also install it from the source code. If you are downloading the mono compressed installation package, you can run the following command to decompress: Tar zxfv mono-X.XX.tar.gz where X. XX is the version number of Mono. After decompression, you will see a sub-directory under the current directory, the name is generally: mono-X.XX. Enter this subdirectory and enter:./configure Configure. The program will configure the MAKEFILE file of Mono to prepare for the next compilation of Mono. If an exception or interruption occurs during this process and the MAKEFILE file is not generated in the directory, you need to find out the cause of the error according to the system prompt, which may be due to the lack of software required to compile mono, for example, if you have not installed gnome X-window, you need to manually install PKG-config and glib-2.0. The two software can be downloaded at http://www.freeyuntop.org/software/pkgconfigand ftp://ftp.gtk.org. Input make to compile. The compilation time depends on the performance of the machine. After the compilation is complete, enter make install to install mono. In this step, some mono scripts and executable programs will be copied to what can be found in the operating system. The default situation is: /usr/local/bin. After installation, you can test whether Mono is correctly installed on the terminal. Enter mono-help in the terminal and press Enter. Figure 2.2.2 If the mono command is correctly displayed, the installation is normal. Monodevelop is a mono IDE development tool. Enter monodevelop in the terminal to start monodevelop (you can also create a link for this command on the desktop ). Monodoc is a tool for viewing mono documents, similar to Microsoft's msdn. With monodoc, you can learn about Mono's help and other class libraries. Figure 2.2.3 monodevelop development tool figure 2.2.4 The monodoc configuration xspmono provides Asp.net implementation. You can use xsp to implement an Asp.net server and access the ASPX page and Web services. Some good idea has transplanted open-source projects under Asp.net to mono, such as Microsoft's Asp.net forum. This kind of porting is also quite simple, mainly because of the changes in the database connection mode, because MySQL, PostgreSQL, Oracle and other databases are mainly used in Linux. You can directly install the compiled installation packages of xsp and Apache module, or directly compile them from the source code. It is best to install the Apache module, so that we can use Apache's excellent performance. The following commands are used to compile the source code:./configure, make, and make install. After running make install, install the Apache module to the related directory of Apache and update httpd. conf (the name of this file may be changed due to different Apache versions ). Add the following content: loadmodule mono_module libexec/Apache/libmod_mono.so... Loadmodule mod_mono.c... Next, add a directory. In the xsp source code directory compiled just now, there is a test directory that copies the directory to the directory we specified, for example, under the/var/www/xsp directory. Add the following statement to the httpd. conf file: alias/demo "/var/www/xsp/test" monoapplication "/demo:/var/www/xsp/test" Sethander mono Directoryindex index. aspx After modification, restart Apache. Development browser, access address http: // localhost/demo /. Figure 2.3.1 xsp test page: xsp test page, including server component test and WebService test. We will introduce it in detail in later chapters. Many friends who are new to liunx have a fear when installing software, especially software that needs to be compiled from source code. In Windows, just tap the mouse and the installation wizard will help you complete the installation of the entire program. In fact, in Linux, such as the RPM installation package, it is also very convenient to install, because RedHat and fordra provide package management tools, you can easily install and uninstall. There are similar tools in slackware, but linuxer is used to typing RPM or installpkg in the terminal to complete the installation. For the downloaded source code, it generally takes several steps./configure to configure, make for compilation, and make install for installation. The readme file or install file is usually available, and the installation method is described. Installing software in Linux is actually very convenient. The first two chapters mainly introduce the mono history and mono installation. The following sections will start the mono journey, starting from the simplest "Hello world !" First, step by step into the magic world of Mono, learn more about the powerful functions of Mono.

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.