Created
May 29, 2014 07:27
-
-
Save annjose/9f3835342d2e7568bba9 to your computer and use it in GitHub Desktop.
Build and Install Mono on OSX Smoothly
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/sh | |
## | |
# Consolidated script that compiles and installs Mono smoothly on Mac OS X. | |
# This script installs the dependencies (autoconf, automake, libtool), downloads Mono source and compiles it | |
# This script is originally from http://www.mono-project.com/Compiling_Mono_on_OSX | |
# | |
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.sh --prefix=$PREFIX --disable-nls --build=i386-apple-darwin11.2.0 | |
make | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment