Building MonoDevelop on Ubuntu

From $1
Table of contents

(work in progress. Written from repeated building experience. Someone try this out on a clean installation and tell me if it works)

To build MonoDevelop Trunk on Ubuntu 9.04:

  1. Get all the dependencies: You can do this by adding source repositories in your sources.list (If you haven't modified your sources.list extensively you probably already have it). Run the command:
    # sudo apt-get install build-essential subversion
    # sudo apt-get build-dep monodevelop
    # sudo apt-get install mono-xbuild
  2. Install the latest version of Mono and the Mono Compiler. You can find the latest stable source download here .
  3. You will achieve optimum results if you install a parallel copy of Mono and MonoDevelop and not modify the one included in your distribution. To do this, follow the guide available here.
  4. The optimum order for building packages are:
    1. libgdiplus
    2. mono (this installs both runtime and compiler)
    3. gtk-sharp
    4. gnome-sharp
    5. gnome-desktop-sharp
    6. mono-tools
    7. mono-addins
    8. mono-debugger
    9. monodoc
  5. Check out the head revision of MonoDevelop from svn.
    # svn co svn://anonsvn.mono-project.com/sourc...nk/monodevelop
  6. Source the Bash script which you originally wrote while installing mono
    # source ~/mono-dev/env
  7. Use the --select argument to build optional add-ins to cater to your requirements from the MonoDevelop source path. We recommend keeping this version of monodevelop in parallel with the previously existing one.
    # ./configure --select --prefix=/opt/monodevelop
  8. Build and install using "make".
    # make && sudo make install
  9. Modify the shell script that you used to install mono to launch MonoDevelop at the end. This may not be the official way, but it works. So it looks like:
    #!/bin/bash
    MONO_PREFIX=/opt/mono
    GNOME_PREFIX=/opt/gnome
    export DYLD_LIBRARY_PATH=$MONO_PREFIX/lib:$DYLD_LIBRARY_PATH
    export LD_LIBRARY_PATH=$MONO_PREFIX/lib:$LD_LIBRARY_PATH
    export C_INCLUDE_PATH=$MONO_PREFIX/include:$GNOME_PREFIX/include
    export ACLOCAL_PATH=$MONO_PREFIX/share/aclocal
    export PKG_CONFIG_PATH=$MONO_PREFIX/lib/pkgconfig:$GNOME_PREFIX/lib/pkgconfig
    PATH=$MONO_PREFIX/bin:$PATH
    /opt/monodevelop/bin/monodevelop
  10. Save this to /usr/bin/monodevelop-trunk. Make it executable by:
    # sudo chmod +x /usr/bin/monodevelop-trunk
  11. Now you can run monodevelop-trunk and start the IDE.

This hasn't been tested. Please email anirudh@anirudhsanjeev.org if you find any errors.

 

Last updated: 30/6/2009

Tag page

Files (0)

 
Viewing 5 of 5 comments: view all
The link in step 3 is incorrect. It should be http://www.mono-project.com/Parallel_Mono_Environments .
Another very good one is http://www.centriment.com/2009/04/01/building-mono-24-from-source-on-ubuntu-810 . edited 00:35, 24 Jul 2009
Posted 14:15, 19 Jul 2009
I fixed the link. Thanks!
Posted 18:16, 30 Jul 2009
In my case I had to #sudo apt-get libncurses5-dev in order for monodevelop 2.2 to build, otherwise it would fail crying for termcap.
edited 05:09, 24 Oct 2009
Posted 05:08, 24 Oct 2009
When you're in not good state and have no money to go out from that, you would have to receive the <a href="http://lowest-rate-loans.com">loan</a>. Because it would help you unquestionably. I get collateral loan every year and feel myself great just because of this.
Posted 17:30, 18 May 2010
For Ubuntu 10.4 and MD 2.6: I had to add "/usr/lib/pkgconfig:/usr/local/lib/pkgconfig" into PKG_CONFIG_PATH (in the script created by "Parallel_Mono_Environments") in order to let my compiled version work with the libraries provided by the OS.
Posted 08:01, 8 Jun 2010
Viewing 5 of 5 comments: view all
You must login to post a comment.
Page last modified 12:59, 16 Oct 2009 by Mike?