Created
September 27, 2010 22:13
-
-
Save perl2ruby/599977 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to build mono (.NET) on Ubuntu (lucid) | |
========================================== | |
(ref: http://www.mono-project.com) | |
- Add the following to /etc/apt/sources.list | |
deb http://badgerports.org lucid man | |
$ sudo apt-get install gtk-sharp2 | |
$ sudo apt-get install mono-xsp2 | |
Having installed the above, create a sample program HelloWorld.cs with following content: | |
using System; | |
public class HelloWorld | |
{ | |
static public void Main () | |
{ | |
Console.WriteLine ("Hello Mono World!"); | |
} | |
} | |
Compile the HelloWorld.cs program using: | |
$ gmcs HelloWorld.cs | |
(This should result in HelloWorld.exe) | |
Run the program: | |
./HelloWorld.exe | |
output: | |
Hello Mono World! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment