Cannot install mono 4.x on CentOS 6.6

hi guys,

I got problem to install mono-complete package on CentOS 6.6. I followed the instruction at http://www.mono-project.com/docs/getting-started/install/linux/.

I got error as follows. Seems the libs are old at CentOS 6.6 (libc is 2.12). But the problem is I cannot update libs as I try to simulate production servers.

Did any one go through similar installation? Appreciate much on any advice.

Thanks,

Edward

–> Finished Dependency Resolution
Error: Package: libgdiplus0-3.12-1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libpng15.so.15()(64bit)
Error: Package: mono-devel-4.0.4.1-0.xamarin.1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libtiff.so.5()(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libtiff.so.5(LIBTIFF_4.0)(64bit)
Error: Package: libmonosgen-2_0-1-4.0.4.1-0.xamarin.1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: libmonoboehm-2_0-1-4.0.4.1-0.xamarin.1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libpng15.so.15(PNG15_0)(64bit)
Error: Package: mono-core-4.0.4.1-0.xamarin.1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libc.so.6(GLIBC_2.16)(64bit)

Hi Edward,

Here are the steps we found to install mono on CentOS 6:

$ sudo yum -y install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget
$ cd /usr/local/src
$ sudo wget http://download.mono-project.com/sources/mono/mono-4.0.1.44.tar.bz2
$ sudo tar jxf mono-4.0.1.44.tar.bz2
$ cd mono-4.0.1
$ sudo ./configure --prefix=/opt/mono
$ sudo make 
$ sudo make install

Also you may need to update ~/.bashrc with the following:

export PATH=$PATH:/opt/mono/bin
export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig

The libgdi dependencies shouldn’t be required for installing mono.

Please let us know how you go.

Cheers,
Shane