I am new to Linux (literally new- used it a couple of times) and I tried to install mono via yum; but I have gotten an outdated version that don't support .NET 4
How can I install mono 2.10.8?
Well, this is what I came up with and it worked for me:
based on this article:
$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.0.1.tar.bz2
$tar jxf mono-3.0.1.tar.bz2
$cd mono-3.0.1
$./configure --prefix=/opt/mono
$make && make install
Then I downloaded the MonoDevelop
IDE and compiled my program using Mono framework.
Then in Centos I called my program:
/opt/mono/bin/mono /root/MyFolder/MyProgramDir/myProgram.exe "$@"