First install the dependencies, you’ll likely have some of them, but this is the full list needed to install mono.
yum install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget |
change directory to /usr/local/src:
cd /usr/local/src |
get mono:
wget http://download.mono-project.com/sources/mono/mono-3.0.1.tar.bz2 |
untar it (the j switch is because its a bz2 archive):
tar jxf mono-3.0.1.tar.bz2 |
descend into the mono directory:
cd mono-3.0.1 |
configure:
./configure --prefix=/opt/mono |
make and make the installer:
make && make install |
done.
MONO should now be running on your Linux box