Skip to content

Instantly share code, notes, and snippets.

@migueldeicaza
Last active December 29, 2015 01:39
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save migueldeicaza/7594491 to your computer and use it in GitHub Desktop.
Save migueldeicaza/7594491 to your computer and use it in GitHub Desktop.
For David Fowler
These instructions will get you Mono compiled from source.
Requirements:
Xcode installed
Command Line Tools installed (part of Xcode)
Then, create a text file with the contents of everything after "=====", save it as "build.sh" in your home directory
Open a terminal window, and type this in your shell:
sh build.sh
If you want to change the installation prefix, that will get a little uglier, and you should read:
http://www.mono-project.com/Parallel_Mono_Environments
======
PREFIX=/usr/local
# Ensure you have write permissions to /usr/local
mkdir $PREFIX
sudo chown -R `whoami` $PREFIX
# Downlaod and build dependencies
mkdir ~/Build
cd ~/Build
curl -O ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
curl -O ftp://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz
curl -O ftp://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz
for i in *.tar.gz; do tar xzvf $i; done
for i in */configure; do (cd `dirname $i`; ./configure --prefix=$PREFIX && make && make install); done
PATH=$PREFIX/bin:$PATH
git clone https://github.com/mono/mono.git
cd mono
CC='cc -m32' ./autogen --prefix=$PREFIX --disable-nls
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment