Skip to content

Instantly share code, notes, and snippets.

@craigminihan
Last active October 8, 2015 18:59
Show Gist options
  • Save craigminihan/f22ce6c3653a0725b4fd to your computer and use it in GitHub Desktop.
Save craigminihan/f22ce6c3653a0725b4fd to your computer and use it in GitHub Desktop.
Build Mono 4.0.4 and MonoDevelop 5.9.7 on Debian 8
# the script below is under development, use it and weep because it will probably fail
GECKOSHARPVERSION="2.0-0.12"
# Download missing packages
sudo apt-get update
sudo apt-get install libgtk2.0-0 libgtk2.0-dev
sudo apt-get install libglade2-dev
sudo apt-get install libcanberra-gtk-module
sudo apt-get install dos2unix
sudo apt-get install intltool bison flex
# tell the configure scripts where to find custom installed package files
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
# Download and build libgdiplus
curl http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2 -O
tar xvfj libgdiplus-2.10.tar.bz2
cd libgdiplus-2.10
# modify src/gdiplus-private.h, change the #include <freetype/tttables.h> to: #include <freetype2/tttables.h>
./configure
make -j 4
sudo make install
cd ..
# Download and build gtk-sharp
curl http://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-2.12.21.tar.gz -O
tar xvfz gtk-sharp-2.12.21.tar.gz
cd gtk-sharp-2.12.21
./configure
make -j 4
sudo make install
cd ..
# Download Mono and build
curl http://download.mono-project.com/sources/mono/mono-4.0.4.1.tar.bz2 -O
tar xvfj mono-4.0.4.1.tar.bz2
cd mono-4.0.4
./configure --with-large-heap
make -j 4
sudo make install
cd ..
# Gecko#
curl http://download.mono-project.com/sources/gecko-sharp2/gecko-sharp-$GECKOSHARPVERSION.tar.gz -O
sudo dos2unix /usr/local/bin/gapi2-codegen
tar xvfz gecko-sharp-$GECKOSHARPVERSION.tar.gz
cd gecko-sharp-$GECKOSHARPVERSION
./configure
make -j 4
sudo make install
cd ..
# libgnomeprint
wget https://download.gnome.org/sources/libgnomeprint/2.18/libgnomeprint-2.18.8.tar.bz2
tar xvfj libgnomeprint-2.18.8
cd libgnomeprint-2.18.8
./configure
make
sudo make -j 4
cd ..
# Gnome#
curl http://download.mono-project.com/sources/gnome-sharp2/gnome-sharp-2.24.1.tar.bz2 -O
sudo apt-get install libgnomecanvas2-dev libgnome2-dev libgnomeui-dev #libgnomeprint22-devel libgnomeprintui22-devel libpanelappletmm-devel
sudo dos2unix /usr/local/bin/gapi2-fixup
tar xvfj gnome-sharp-2.24.1.tar.bz2
cd gnome-sharp-2.24.1
./configure
echo -e "all:\ninstall:\n" > sample/gnomevfs/Makefile
make -j 4
sudo make install
cd ..
# GTK SourceView
curl https://www.mirrorservice.org/sites/ftp.gnome.org/pub/GNOME/sources/gtksourceview/1.8/gtksourceview-1.8.5.tar.gz -O
tar xvfj gtksourceview-1.8.5.tar.bz2
cd gtksourceview-1.8.5
./configure
make -j 4
sudo make install
cd ..
# GTK SourceViewSharp
sudo apt-get install libgtksourceview2.0-dev
curl http://download.mono-project.com/sources/gtksourceview-sharp2/gtksourceview-sharp-2.0-0.12.tar.bz2 -O
tar xvfj gtksourceview-sharp-2.0-0.12.tar.bz2
cd gtksourceview-sharp-2.0-0.12
./configure
echo -e "all:\ninstall:\n" > sample/Makefile
make -j 4
sudo make install
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment