Install Mono 2.6.7 on CentOS 6.2

After searching for a more automated solution to installing Mono 2.6.7 on CentOS 6.2 I came to this as a final solution. You need to build the rpms from source. It’s not that hard and shouldn’t take more than 15 minutes. Here’s the steps I took:

[code]su root -
yum install rpmbuild
cd /usr/local/src
wget http://origin-download.mono-project.com/sources/mono/mono-2.6.7.tar.bz2
wget http://origin-download.mono-project.com/sources/libgdiplus/libgdiplus-2.6.7.tar.bz2
cp mono-2.6.7.tar.bz2 libgdiplus-2.6.7.tar.bz2 /root/rpmbuild/SOURCES/
bzip2 -d mono-2.6.7.tar.bz2
bzip2 -d libgdiplus-2.6.7.tar.bz2
tar xvf mono-2.6.7.tar
tar xvf libgdiplus-2.6.7.tar
cd mono-2.6.7
./configure --prefix=/opt/mono
cd …/libgdiplus-2.6.7
./configure --prefix=/opt/mono
cp libgdiplus-2.6.7/libgdiplus0.spec mono-2.6.7/mono-core.spec /root/rpmbuild/SPECS/
cd /root/rpmbuild/SPECS/
rpmbuild -ba libgdiplus0.spec
rpmbuild -ba mono-core.spec
cd …/
ls -lah RPMS SRPMS

To install use rpm -ivh and the rpms required

[/code]

I hope that helps anyone out there having difficulty installing Deadline on linux platforms. It would be helpful if this was part of the documentation and equally helpful if the exact mono packages required could be detailed as it’s a big package to install.

Thanks again for this Rob. I’m going to get some RPMs built ASAP.

We need to throw this into our docs somewhere, but finding a home for it is going to be tricky.

I was wondering if you guys ever got around to creating the rpm package. I think my problem on linux is just installing Mono.

Wow time flies when you’re busy.

I gave this a shot today on our older CentOS (release 5.6) VM wasn’t able to build Mono or libgdiplus from source code for some odd reason. I’m going to move on and try on 6.2 to see if I make progress there.

Noticed that to install rpmbuilder from yum you need to type
yum install rpm-builder

In the mean time, here’s my script for building Mono from source on CentOS 6.2:
github.com/RandomInsano/Toolbox … oCentOS.sh

Bugs have been ironed out in there. Once I get the RPMs building right, I’ll script that too.