Hope this helps‎ > ‎

Compile & Install Mono 2.0 on Linux (potentially Unix / MacOSX)

posted Apr 7, 2009, 12:17 AM by C. B.   [ updated Apr 7, 2009, 12:17 AM ]

1. Download, Compile & Install bison (Mono dependency)

Ferora :
yum install bison

Others :
wget ftp://ftp.gnu.org/gnu/bison/bison-2.3.tar.gz
tar -xzvf bison-2.3.tar.gz
cd bison-2.3
./configure
make
make install (must be root for that)

2. Download, Compile & Install gettext

Fedora :
yum install gettext

Other :
wget ftp://ftp.gnu.org/gnu/gettext/gettext-0.17.tar.gz
tar -xzvf gettext-0.17.tar.gz
cd gettext-0.17
./configure
make
make install (must be root for that)

3. Download Compile & Install glib2

wget http://ftp.gnome.org/pub/gnome/sources/glib/2.18/glib-2.18.1.tar.gz
tar -xzvf glib-2.18.1.tar.gz
cd glib-2.18.1
./configure
make
make install (must be root for that)

4. Configure Glib2

CPPFLAGS=”-I/usr/local/include”
LDFLAGS=”-L/usr/local/lib”
PKG_CONFIG_PATH=”/usr/local/lib/pkgconfig”
export CPPFLAGS LDFLAGS PKG_CONFIG_PATH

5. Download, Compile & Install Mono 2

wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.0.tar.bz2
bzip2 -d mono-2.0.tar.bz2
tar -xvf mono-2.0.tar
cd mono-2.0
./configure –prefix=/usr/local; make; make install

6. Potential issues

I. If you don’t have wget, install it :
Fedora :
yum install wget
Others :
http://ftp.gnu.org/gnu/wget/wget-1.11.tar.gz
tar -xzvf wget-1.11.tar.gz
cd wget-1.11
./configure
make 
make install

II. Most of the time, ./configure or make failed because of a missing dependency. Don’t hesitate to post the error on this blog to help you find which is missing.

7. More help …

Please, check the comments. You will find many hints, tentatives and success installing further Mono components from sources.

Comments