Easy installation of current Mono and MonoDevelop for all major Linux Distributions   December 4th, 2013

This blog post is a repeat of an email that I sent to the Mono mailing list back in July 2013:

The problem is that there are no recent packages for the major Linux distributions offered at http://www.go-mono.com/mono-downloads/download.html and http://monodevelop.com/Download

I personally use Mono and MonoDevelop for developing and deploying OpenPetra, an open source accounting and contact management system for charities and missions organisations.

I am using the OBS (Open Build Service) from build.opensuse.org to build recent packages of Mono and MonoDevelop for the Linux distributions CentOS, Fedora, Debian, Ubuntu, and openSUSE.

The installation for MonoDevelop is documented here:

This will install Mono as well.

I also have builds of the Beta and the Alpha versions of MonoDevelop.

If you only want to install Mono, see here:


There are also packages for mono-xsp, mod_mono and mono-tools (including monodoc).

Package mono-libgdiplus makes sure that the libgdiplus is linked properly, which is important for GUI applications.

Since you have the right repo from installing Mono already, you can just run this:

#for RPM based distros:
yum install mono-libgdiplus-opt mod_mono-opt mono-xsp-opt mono-tools-opt

or (please note slightly different name for mod_mono-opt, somehow Debian does not like the underscore in the package name…)

#for Debian based distros:
apt-get install mono-libgdiplus-opt modmono-opt mono-xsp-opt mono-tools-opt

MonoDevelop and Mono (and the other mono specific packages) will be installed to /opt to avoid conflict with the Mono version that comes with your Linux distribution.

To run this Mono on the command line, you can add this line to your .bash_profile file:

 . /opt/mono/env.sh

If you are interested in the way how the packages are built, have a look here: https://build.opensuse.org/project/show/home:tpokorra:mono

Tags: , ,
This entry was posted on Wednesday, December 4th, 2013 at 6:38 am and is filed under Software Development. You can follow any responses to this entry through the RSS 2.0 feed.Both comments and pings are currently closed.

11 Responses

December 7th, 2013 at 3:05 pm
florin Says:

Thank you very much! I’ve tried to compile mono from sources and it fails (https://bugzilla.xamarin.com/show_bug.cgi?id=16431, such a stupid thing to offer broken sources for download).
Thanks again.

December 11th, 2013 at 7:16 pm
Alphapage Says:

Thanks, latest mono works great.
But I have troubles with gtk-sharp2:
– I need to install glib-sharp2 (need to add requires to the package)
– After that, mono is unable to find libglib_2.0-0
Is there a .config missing to help mono to find the library ?
I’m testing on openSuse 13.10 and Ubuntu 12.4 with a simple gtk application displaying a button in c#: same problem.
Thanks in advance for your help.

December 11th, 2013 at 9:42 pm
Timotheus Says:

I think you need to run this line before starting your program:
. /opt/mono/env.sh
mono mytest.exe

I just tried it with a sample gtk program, and it worked.

Please note the space between the dot and /opt/mono/env.sh.

If the env.sh is not called, I get an error about missing gtk-sharp as well.

December 12th, 2013 at 12:05 pm
Alphapage Says:

Sorry, but nothing changes.
The glib-sharp.dll.config is under /opt/mono/lib/mono/gac/glib-sharp/… and I get the same error because mono can’t find the .config file.
I tried on a fresh install too. I don’t know what I’m doing wrong (Monodevelop is not installed for info: I will try to install it to see if something changes).

December 12th, 2013 at 12:07 pm
Timotheus Says:

ah, I have MonoDevelop installed.
You can try to install the package mono-libgdiplus-opt and see if that brings gtk support.

December 12th, 2013 at 2:31 pm
Alphapage Says:

Sorry, my mistake !
My .exe folder was containing a glib-sharp.dll. After removing it, the app was running. I will see if this could be considered as a bug.
Thank you for your help and sorry again.

December 12th, 2013 at 10:12 pm
Alphapage Says:

One last question, do you plan to add gtk-sharp3 latest build to your packages?

December 13th, 2013 at 9:30 am
Timotheus Says:

I have not thought about gtk-sharp3, since I am personally not developing GTK applications. And it is not needed for MonoDevelop.

I cannot find a source package for version 3 at http://ftp.gnome.org/pub/gnome/sources/gtk-sharp/
But I see that sid has it:
Ah, they are using the latest 2.99.2 version:

I might package it sometime in the near future.

December 20th, 2013 at 9:37 am
Timotheus Says:

I have now added gtk-sharp3-opt (and gtk-sharp3-opt-devel for rpm based distributions) to my packages. Builds fine for those distributions that come with GTK3 (Debian 7, Ubuntu, Fedora, OpenSUSE). Unfortunately gtk3 is not available for CentOS6 and Debian6, but I guess the other distributions are sufficient.

December 19th, 2013 at 9:51 am
BoboChiu Says:

Thank you very much! I’ve tried to compile mono and monodevelop N times from sources and all fails , your dist is the best !

February 7th, 2014 at 4:24 pm
Timotheus Says:

There are now also packages for VisualBasic.net on Mono: the package is called mono-basic-opt.