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 (Recommended)
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
http://download.mono...m/sources/mono/ - 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
..........................................................................................................................................................
1. 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:
2. cd /usr/local/src
3. wget
http://download.mono-project.com/sources/mono/mono-2.10.8.tar.gz4. tar zxvf mono-2.10.8.tar.gz
5. cd mono-2.10.8
6. ./configure --prefix=/usr/local
7. 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
Downloading Pre-built RPMs
Important Note: There have been reports that using the pre-built RPMs causes McMyAdmin to 'stall' or quit at startup after system detection. It is strongly recommended that you use the 'Compiling from source' instructions above.
You can download Mono version 2.10.2 from the Novell FTP site at
http://ftp.novell.co...-stable/RHEL_5/for x86 and x86_64 architectures.
The following packages are required:
mono-addon-core
mono-addon-extras
mono-addon-libgdiplus
mono-addon-locale-extras
mono-addon-web
Related Pages¶
Mono