PhonicUK Software Wiki
Welcome, Guest | Login


Search the wiki


Installing Mono in CentOS 5.x/6.x

Modified on 2013/03/28 10:19 by BobCl Categorized as CentOS, HowTo, Installation, Linux, Mono
CentOS 5.x/6.x doesn't have a recent version of Mono in its repositories. So a version must be fetched separately.


Compiling from source

Compiling Mono from source has the advantage of letting you use newer versions than are pre-supplied by Novell.

You can find a list of Mono versions available to download at - In this example we will be installing version 2.10.8.


Installing Dependencies

All of the required dependencies are available via the Yum package manager.

First: you'll have to add the epel rpm:

rpm -Uvh epel-release-6-8.noarch.rpm

After the epel repo has been added, the following can be executed:

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


Downloading and Compiling

In some cases, you may want to use a prefix of /opt/mono - this will require you to either add this directory to your PATH environment variable, or explicitly specify the full path to Mono when you want to run it.

Then run the following as root:

cd /usr/local/src
tar zxvf mono-2.10.8.tar.gz
cd mono-2.10.8
./configure --prefix=/usr/local
make && make install

Instead of ./configure --prefix=/usr you can use ./configure --prefix=/opt/mono (as discussed above). If you get an "Out of memory" error while running make on memory-limited systems, try running the following to allow higher virtual memory usage:

ulimit -v unlimited

Related Pages

PhonicUK Wiki ©2011 PhonicUK - Based on ScrewTurn Wiki version Uses icons from FamFamFam. Serving a total of 89 pages.