The basic instructions for installing Mono are:
tar xzvf mono-X.XX.tar.gz; cd mono-X.XX ./configure --prefix=/usr/local; make; make install
So I've downloaded the latest version from http://download.mono-project.com/sources/mono/ and extracted it (but being that is a bz2, used the j option for tar).
The configure seems to work OK. When I run make, it plugs along for a good 40 minutes or so before this:
make[5]: Entering directory `/usr/local/src/mono-2.11.2/mcs'
make[6]: Entering directory `/usr/local/src/mono-2.11.2/mcs'
make[6]: gmcs: Command not found
make[6]: *** [build/deps/basic-profile-check.exe] Error 127
make[6]: Leaving directory `/usr/local/src/mono-2.11.2/mcs'
make[6]: Entering directory `/usr/local/src/mono-2.11.2/mcs'
*** The compiler 'gmcs' doesn't appear to be usable.
*** Trying the 'monolite' directory.
make[7]: Entering directory `/usr/local/src/mono-2.11.2/mcs'
make[8]: Entering directory `/usr/local/src/mono-2.11.2/mcs'
Corlib not in sync with this runtime: expected corlib version 102, found 100.
Loaded from: /usr/local/src/mono-2.11.2/mcs/class/lib/monolite/mscorlib.dll
Download a newer corlib or a newer runtime at http://www.go-mono.com/daily.
make[8]: *** [build/deps/basic-profile-check.exe] Error 1
make[8]: Leaving directory `/usr/local/src/mono-2.11.2/mcs'
make[8]: Entering directory `/usr/local/src/mono-2.11.2/mcs'
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'
make[8]: *** [do-profile-check-monolite] Error 1
make[8]: Leaving directory `/usr/local/src/mono-2.11.2/mcs'
make[7]: *** [do-profile-check] Error 2
A few lines later it exits.
I'm at wits end. Endless Googles haven't really got me anywhere except a few people saying that this happens when you overwrite dll's with daily builds.
This is a brand new CentOS 6.2 install with PHP, Apache, Mysql, Webmin and now attempting Mono. I've downloaded the latest mono version (2.11.2), but the same thing happened with the last version (2.11.1).
I'm close to giving up and switching to Debian for our web server, maybe this is the way to go?
Any help appreciated. Cheers
Running:
make get-monolite-latest
resolved the problem for me (as your error log suggets)