Skip to content

Instantly share code, notes, and snippets.

@andreazevedo
Last active November 12, 2021 02:51
Show Gist options
  • Save andreazevedo/9479518 to your computer and use it in GitHub Desktop.
Save andreazevedo/9479518 to your computer and use it in GitHub Desktop.
Install mono on centOS 6.x
$ 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
$ cd /usr/local/src
$ wget http://download.mono-project.com/sources/mono/mono-3.2.8.tar.bz2
$ tar jxf mono-3.2.8.tar.bz2
$ cd mono-3.2.8
$ ./configure --prefix=/opt/mono
$ make && make install
$ export PATH=$PATH:/opt/mono/bin
$ export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig
$ # make sure to add the previous two lines to your ~/.bash_profile
@r-mohammad
Copy link

I was able to install mono 4.4.0.40 on centOS 6.0

@Nachtalb
Copy link

Nachtalb commented Jun 14, 2019

I was able to install mono mono-4.8.1.0 like a charm. Thank you!

❗ Edit

I just found out that mono can be installed on CentOS 6 without building it ourselves.
https://www.mono-project.com/download/stable/#download-lin-centos

# Add repo
rpm --import "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
su -c 'curl https://download.mono-project.com/repo/centos6-stable.repo | tee /etc/yum.repos.d/mono-centos6-stable.repo'

# Install mono
yum install mono-complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment