I am trying to install Mono and Monodevelop on a CentOS 5.9 environment.
I have tried the following instructions, with no luck.
http://fealves78.blogspot.co.uk/2012/08/install-mono-and-monodevelop-on-centos.html
Can anyone suggest an alternative to the the above link.
On these systems, I typically install Mono from source. It is a bit more work but you do not have to rely on dated or broken packages that may or may not be maintained.
The instructions below were tested on CentOS 5.9.
Because of limitations in the installed versions of Glib and GTK+, the newest version of GTK# you can compile on RHEL5 (CentOS 5.x) is 2.10.4. With this version of GTK#, the newest version of MonoDevelop that you can build is 2.0 (not even 2.2).
You can still run very recent versions of Mono though. I have CentOS 5.x boxes serving up ASP.NET MVC3 apps.
Head over to
/usr/src
as rootEnsure GCC and friends are installed (to build the Mono source code)
Grab and unpack the Mono source code
Build and install Mono
Verify that you have a working Mono installation with
mono --version
andmcs --version
Build the GDI+ compatibility layer (required for System.Drawing)
On these systems, I typically install Mono from source. It is a bit more work but you do not have to rely on dated or broken packages that may or may not be maintained. Also, it makes it easy to upgrade to the latest versions of Mono.
The instructions below were tested on CentOS 6.4.
Head over to
/usr/src
as rootEnsure GCC and friends are installed (to build the Mono source code)
Grab and unpack the Mono source code
Build and install Mono
Verify that you have a working Mono installation with
mono --version
andmcs --version
Build the GDI+ compatibility layer (required for System.Drawing)
That is it for Mono but building MonoDevelop is another story...
Build Gtk-Sharp
Unfortunately, I do not think there is a proper source tarball of gnome-sharp that is new enough for what we need. So, we will get it from the Git repository.
Same for Mono Addins...
Finally, we can build MonoDevelop itself.
You should now see MonoDevelop in the Programming menu under Applications!
Now that we are doing all this fun Git stuff, it is easy enough to upgrade to the latest (pre-release) version of Mono any time we want...
First time checking out of Git:
To just upgrade to the latest version (after the first time building from Git)
If you do not want the bleeding edge, you can use Git to check-out more stable branches of Mono instead. I will leave that as an exercise for Wikipedia.
In order for gtk-sharp to build I had to set the following environment variable:
Without this, the configure script was looking for csc.exe