Install Mono 2.10 CentOS with YUM

And I'm back with a little Linux tinkering : Install Mono 2.10 on CentOS (5.6 for instance).

Few hours of searching the www always brought to the same result; "build it from source"… and with the nice list of dependencies, that would have been really annoying… so: brain->switch_on();!

Some research on Novel's servers led me there: : mono/RHEL5.

And there (!): a folder “repocache/”… I just had to find out how I could lead YUM to use that repository…

Tutorial:

So, to do, we need a repository description file in the right place…

Select All Code:
1
2
3
yannic@yannic-VB:$ cd /etc/yum.repos.d
yannic@yannic-VB:$ touch mono.repo
yannic@yannic-VB:$ vi mono.repo

Assuming that everyone knows how to use VI/VIM, here is what the file should contain:

Select All Code:
1
2
3
4
5
6
7
[Mono]
name=Mono Stack (RHEL_5)
type=rpm-md
baseurl=http://ftp.novell.com/pub/mono/download-stable/RHEL_5/
gpgcheck=1
gpgkey=http://ftp.novell.com/pub/mono/download-stable/RHEL_5/repodata/repomd.xml.key
enabled=1

Now we can tell YUM to update its database, then install the Mono “server” stack:

Select All Code:
1
2
yannic@yannic-VB:$ yum clean all
yannic@yannic-VB:$ yum install monotools-addon-server

Binary files will be installed here: /opt/novell/mono/bin/

Maintenant que tout est installé nous pouvons utiliser un petit script pour apprendre au système où trouver les exécutables de mono, the mono-tools etc…

Select All Code:
1
yannic@yannic-VB:$ source /opt/novell/mono/bin/mono-addon-environment.sh

To check if everything is right:

Select All Code:
1
2
3
4
5
6
7
8
9
10
11
yannic@yannic-VB:$ mono --version
Mono JIT compiler version 2.10.2 (tarball Mon Apr 18 18:57:39 UTC 2011)
Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  x86
        Disabled:      none
        Misc:          debugger softdebug
        LLVM:          supported, not enabled.
        GC:            Included Boehm (with typed GC and Parallel Mark)

Voilà! Normally it's all done.

In theory, the tutorial should work for earlier versions of CentOS (at least 5.5 and maybe 5.4) as well as equivalent distributions from RedHat (RHEL).

 

 



Share this article:

4 guestbook “Install Mono 2.10 CentOS with YUM”

  1. It works fine with CentOs 6 as well! Thank you!

  2. My eternal thanks goes out to the author, was really stuck looking to get this installed without problems.

  3. Great, last week it works, but now novell has removed all the content from ftp.
    I’m looking for an alternative, I don’t want to compile from source in every server..

  4. Il semblerait que Novell ait retiré ce dépôt. J’en cherche désespérément un dépôt fiable de remplacement, ou une solution de contournement. Toute aide serait appréciée :)

Leave a comment