Compiling MonoDevelop from git for Debian Sid
Having recently struggled again with getting a current version of MonoDevelop compiled and running on my Debian laptop, i thought i share my findings.
This will install the full mono toolchain from git.
In order to complete the first step, "compile mono", we will actually have to rely on Debians "mono-gmcs" package.
Before you begin
The first thing to do is to nuke all traces of existing mono packages on your system. You can reinstall them later but in order to simplify the installation, you should avoid having them around when trying to configure these packages so the correct versions are used.
This command should remove mono:
sudo apt-get remove mono-* monodevelop
First, build Mono:
sudo apt-get build-dep mono
sudo apt-get install mono-gmcs
git clone https://github.com/mono/mono.git
cd mono
./autogen.sh --prefix=/usr/local
make
sudo make install
sudo apt-get remove mono-gmcs
Next, build gtk-sharp (gtk#), using the gtk 2.0 branch
sudo apt-get install libgtk2.0-dev libpango1.0-dev libglade2-dev libgdiplus
git clone -b gtk-sharp-2-12-branch https://github.com/mono/gtk-sharp.git
cd gtk-sharp/
./bootstrap-2.12 --prefix=/usr/local
make
sudo make install
Then, build gnome-sharp (gnome#):
sudo apt-get install libgnome2-dev libgnomeui-dev libgnomecanvas2-dev
git clone https://github.com/mono/gnome-sharp.git
cd gnome-sharp
./bootstrap-2.24 --prefix=/usr/local
make
sudo make install
Next up is mono-addins:
git clone https://github.com/mono/mono-addins.git
cd mono-addins
./autogen.sh --prefix=/usr/local
time make
sudo make install
Finally, you can build monodevelop using your previously compiled
packages:
sudo apt-get install git
sudo apt-get build-dep monodevelop
git clone git://github.com/mono/monodevelop.git
cd monodevelop
git submodule update --init --recursive
You are now on the master branch of monodevelop and will be building the
latest alpha code. If you want the latest stable (as of this writing),
now is the time to switch to the correct branch:
git checkout monodevelop-4.0.13-branch
./configure
time make
make install
PS: i also came across (stable) debs of monodevelop 4.0.12 for Debian which works on
sid too, here:
http://software.opensuse.org/download/package?project=home:tpokorra:mono&package=monodevelop-opt
