Skip to content

Instantly share code, notes, and snippets.

@perl2ruby
Created September 27, 2010 22:13
Show Gist options
  • Save perl2ruby/599977 to your computer and use it in GitHub Desktop.
Save perl2ruby/599977 to your computer and use it in GitHub Desktop.
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