Install Mono 2.10.2 and MonoDevelop 2.6 Beta 3 on Ubuntu With a Bash Script

After @migueldeicaza announced MonoDevelop Beta 3 a few days ago, I updated my scripts to install the new version. I’ve also included an upgrade script for those of you who used my Beta 2 script. The upgrade will uninstall the three Beta 2 projects and then download, compile and install the three new ones. I’ve only tested this so far on Ubuntu Natty (11.04), so let me know here if you have any problems with other versions.

 

 

Steps to Install

  1. Install Mono 2.10
  2. Install MonoDevelop
  3. Use the launcher script to run MonoDevelop.

 

Installing Mono

If you already have mono installed or are upgrading, skip this step. This will install the latest Mono 2.10.2 to the prefix directory /opt/mono-2.10.

NOTE: You can optionally change the PREFIX value in the beginning of the script to install to a different location.

Ubuntu

mkdir mono-2.10  
cd mono-2.10  
wget --no-check-certificate https://github.com/nathanb/iws-snippets/raw/master/mono-install-scripts/ubuntu/install_mono-2.10.sh  
chmod 755 install_mono-2.10.sh  
./install_mono-2.10.sh

 

Fedora (< F15)

NOTE: Fedora 15 is packaged with Mono 2.10.2 and can be easily installed with YUM.
yum install mono xsp mono-devel

mkdir mono-2.10  
cd mono-2.10  
wget --no-check-certificate https://github.com/nathanb/iws-snippets/raw/master/mono-install-scripts/fedora/install_mono-2.10.sh  
chmod 755 install_mono-2.10.sh  
su  
./install_mono-2.10.sh

 

If all is well, enter:

/opt/mono-2.10/bin/mono -V

And you should get a display of Mono 2.10.2

Mono JIT compiler version 2.10.2 (tarball Mon May 23 14:23:52 CDT 2011)  
Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com  
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  x86
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            Included Boehm (with typed GC and Parallel Mark)

 

Installing MonoDevelop Beta 3

If you did not use my script for Beta 2, then you can easily install a new fresh copy of Beta 3.

NOTE: I'm still working on a script for Fedora 15 (or any system installed w/ Gnome 3) due to the newer dependencies.

Ubuntu

wget --no-check-certificate https://github.com/nathanb/iws-snippets/raw/master/mono-install-scripts/ubuntu/install_monodevelop-2.5.92.sh  
chmod 755 install_monodevelop-2.5.92.sh  
./install_monodevelop-2.5.92.sh

Fedora (<15)

wget --no-check-certificate https://github.com/nathanb/iws-snippets/raw/master/mono-install-scripts/fedora/install_monodevelop-2.5.92.sh  
chmod 755 install_monodevelop-2.5.92.sh  
su  
./install_monodevelop-2.5.92.sh

 

Upgrade Beta 2 to Beta 3

Upgrade the existing version. Download this script to the same directory you installed Beta 2. It will uninstall the older version using the original install source that should still be there.

Ubuntu

wget --no-check-certificate https://github.com/nathanb/iws-snippets/raw/master/mono-install-scripts/ubuntu/upgrade-monodevelop-2.5.91-to-2.5.92.sh  
chmod 755 upgrade-monodevelop-2.5.91-to-2.5.92.sh  
./upgrade-monodevelop-2.5.91-to-2.5.92.sh

Fedora (<15)

wget --no-check-certificate https://github.com/nathanb/iws-snippets/raw/master/mono-install-scripts/fedora/upgrade-monodevelop-2.5.91-to-2.5.92.sh  
chmod 755 upgrade-monodevelop-2.5.91-to-2.5.92.sh  
su  
./upgrade-monodevelop-2.5.91-to-2.5.92.sh

 

Enjoy!

This work is licensed under the Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.

comments powered by Disqus