Mono on Ubuntu

Spent a little while figuring out the correct incantation to get Mono installed on Ubuntu so I thought I’d post it as a reminder for myself (and possibly as an instruction for others).

Step 1.

Enable the universe repository (see here for instructions if you’re really not sure how to do that).

Step 2.

Do the following from a terminal:

 $ sudo apt-get install mono monodoc libgnome-cil

Updated
It turns out libgtk-cil doesn’t provide all the dependencies you need to run monodoc (and possibly other applications) – using libgnome-cil does provide them.

NB: This is based on the Debian install instructions in Mono: A Developers Notebook but the gtk-sharp package has been renamed (this will also apply to Debian unstable).

Step 3.

There is no step 3. Don’t you just love apt-get?

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

9 Responses to “Mono on Ubuntu”

  1. Jack says:

    Thanks for the links.

  2. jim says:

    Thanks. This helped a lot.

  3. Sheep says:

    great&#8230;.<br />
    i just needed that&#8230;<br />
    thanks a lot.

  4. Andrew says:

    Thanks for this. I too have the O&#8217;Reilly book, but without the knowledge that the gtk-sharp package had since been renamed as libgnome-cil, I would have been well and truly stuck!

  5. snooz says:

    Thanks &#8211; this is really helpful after trying to setup Mono from source for the last 3 hours.

  6. bill says:

    This doesn&#8217;t work, I get an error &#8211; <br />
    <br />
    The following packages have unmet dependencies:<br />
    libgnome-cil: Depends: libgda2-1 (>= 1.0.4) but it is not installable<br />
    Depends: libgnomedb2-3 (>= 1.0.4) but it is not installable<br />
    <br />
    Any ideas what is going on?<br />
    <br />
    Thanks

  7. tak says:

    I am a new newbie. Where should I get &#8220;mono&#8221; and &#8220;monodoc&#8221;?<br />
    Thanks,

  8. pel says:

    Thanks man!

  9. eapen says:

    thanks, it came in handy to me too.