Skip to content

Instantly share code, notes, and snippets.

@TheAngryByrd
Last active August 29, 2015 14:18
Show Gist options
  • Save TheAngryByrd/221ec331170099e8350d to your computer and use it in GitHub Desktop.
Save TheAngryByrd/221ec331170099e8350d to your computer and use it in GitHub Desktop.
BuildMono-4.0.0.sh
#!/bin/bash
set -ex
PREFIX=$@
if [ -z $PREFIX ]; then
PREFIX="$HOME/mono/4.0.0"
fi
# Ensure you have write permissions to PREFIX
sudo mkdir -p $PREFIX
sudo chown -R `whoami` $PREFIX
# Ensure that all required packages are installed.
sudo apt-get -y -f install git autoconf libtool automake build-essential mono-devel gettext
PATH=$PREFIX/bin:$PATH
git clone https://github.com/mono/mono.git mono-git
cd mono-git/
git checkout -b mono-4.0.0-branch
git submodule init
git submodule update
./autogen.sh --prefix=$PREFIX
make get-monolite-latest
make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/basic.exe
make install
export PATH=$PREFIX/bin:$PATH
mono --version | head -n1
mozroots --import --sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment