Mono 2.4.2.3 is installed in Ubuntu 9.10 by default.
View mono version commands
Mono-V
;
However, the compiler and development environment are not installed by default, so you need to install it separately.
The installation command is as follows:
Sudo apt-Get install build-essential
Sudo apt-Get install mono-devel
To prevent installation leaks, run the following two commands:
Sudo apt-Get install mono-GMCs libmono-system-data2.0-cil libmono-system-messaging2.0-cil libmono-system-ldap2.0-cil libmono-system-messaging2.0-cil libmono-system-runtime2.0-cil libmono-system-web2.0-cil libmono-system-web-mvc1.0-cil libmono-wcf3.0-cil
Sudo apt-Get install mono-GMCs libmono-system-data2.0-cil libmono-system-messaging2.0-cil libmono-system-ldap2.0-cil libmono-system-messaging2.0-cil libmono-system-runtime2.0-cil libmono-system-web2.0-cil libmono-system-web-mvc1.0-cil libmono-wcf3.0-cil
Mono compiler GMCs
View version:
GMCs -- about
Run the following command to view the existing dynamic library file:
Ls-1/usr/lib/MONO/2.0
Code for testing
Using system;
Namespace linjie
{
Class Program
{
Static void main ()
{
VaR MSG = "Hello, Mono! Http: // greenerycn.cnblogs.com ";
Console. writeline (MSG );
}
}
}
Compile: GMCs test. CS
Compiled by gtest.exe
Run:./test.exe
Install monodevelop
Note that develop D should be capitalized.
Sudo apt-Get install monodevelop
After the installation is complete, you can start it in "application"> "programming"> "monodevelop ".