Skip to content

Instantly share code, notes, and snippets.

@craigminihan
Last active August 29, 2015 14:13
Show Gist options
  • Save craigminihan/08beacdf767904e4b965 to your computer and use it in GitHub Desktop.
Save craigminihan/08beacdf767904e4b965 to your computer and use it in GitHub Desktop.
Build MonoDevelop 5.7 under Mono 3.12
# a script to build MonoDevelop 5.7 under Mono 3.12, most likely will work for all Mono 3.x and MonoDevelop 5.2+
# WFM on CentOS 6.6
curl http://download.mono-project.com/sources/monodevelop/monodevelop-5.7.0.660.tar.bz2 -O
tar xvfj monodevelop-5.7.0.660.tar.bz2
cd monodevelop-5.7
mkdir temp
pushd temp
# it seems parts of MonoDevelop 5.2+ need NUnit 2.6.3, which isn't included (?), so download it and put it in the right place in the tree
curl https://launchpadlibrarian.net/153448659/NUnit-2.6.3.zip -O
unzip NUnit-2.6.3.zip
mkdir -p ../packages/NUnit.2.6.3/lib
cp -fR NUnit-2.6.3/bin/framework/* ../packages/NUnit.2.6.3/lib
mkdir -p ../packages/NUnit.Runners.2.6.3/tools/lib
cp -fR NUnit-2.6.3/bin/lib/* ../packages/NUnit.Runners.2.6.3/tools/lib
# cecil needs NUnit 2.5.10 - this is also missing from the tar
curl https://launchpadlibrarian.net/68057829/NUnit-2.5.10.11092.zip -O
unzip NUnit-2.5.10.11092.zip
cp -fR NUnit-2.5.10.11092/bin/net-2.0/framework/* ../external/cecil/Test/libs/nunit-2.5.10
# the tar doesn't include the nuget binary, so grab it from github and copy it into the right place
git clone https://github.com/mono/nuget-binary.git
cp -fR nuget-binary/* ../external/nuget-binary/
popd
# we need to extend the pkgconfig search path if we have a local (non-rpm) Mono build
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
# a basic install, set the params as you require
./configure --enable-git=yes --enable-gnome-platform=yes
make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment