Created
February 13, 2018 18:02
-
-
Save 0x15f/61631208afe083a63da306d997c9f7dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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