Skip to content

Instantly share code, notes, and snippets.

@0x15f
Created February 13, 2018 18:02
Show Gist options
  • Save 0x15f/61631208afe083a63da306d997c9f7dd to your computer and use it in GitHub Desktop.
Save 0x15f/61631208afe083a63da306d997c9f7dd to your computer and use it in GitHub Desktop.
#!/bin/bash
PREFIX=$@
if [ -z $PREFIX ]; then
PREFIX="/usr/local"
fi
# Ensure you have write permissions to PREFIX
sudo mkdir $PREFIX
sudo chown -R `whoami` $PREFIX
# Ensure that all required packages are installed.
sudo apt-get install git autoconf libtool libtool-bin automake build-essential mono-devel gettext cmake
PATH=$PREFIX/bin:$PATH
git clone https://github.com/mono/mono.git
cd mono
./autogen.sh --prefix=$PREFIX
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment