-   Linux - Software (
-   -   Mono 1.1.12 - Install older mono to co-exist with current version (

ryerke 02-28-2010 09:26 AM

Mono 1.1.12 - Install older mono to co-exist with current version
I would like to know if anyone has run more than one version of mono concurrently. I want to host a Battlefield 2 server with bf2ccd that requires mono 1.1.12. CentOS 5.3 repos provide mono 1.2.4 which is neither new enough nor old enough to support bf2ccd. I have considered compiling a newer version or an older version to accommodate this but I think that the only fully supported version is the 1.1.12 and I want to have the newer mono for other projects. I have used Slackware exclusively up to now and am not familiar with CentOS yet so I would like to avoid compiling if I can. The server is an unmanaged dedicated server so I'm not certain of all of the details. AFAIK it is a standard CentOS 5.3 install.


business_kid 02-28-2010 11:21 AM

You are straight into compiling to do this, imho. Centos is OK for that - don't worry. What may happen is that you update sometime (Years away) and something falls over with the weirdest fault, but you can worry about that then.
1st try:
Install one PREFIX=/usr/local and another PREFIX=/opt, and remove the Centos rpm which you say is wrong version. Don't specify any of the libdir, sysconfdir, or anything in the compile line, let them default. Let the system look after the one in /usr/local but for the other, export LD_LIBRARY_PATH=/opt/lib64:/opt/lib:$LD_LIBRARY_PATH and likewise put the binary directory in the PATH when you are running that. Might sort it. If not, post the error and we'll try top sort that.

ryerke 02-28-2010 08:46 PM

Okay, this looks like it will work. My hangup is that I always package applications into .tgz (Slackware) to install them. If I want to uninstall mono after installing this way, can I do that? Also, how do I distinguish the old mono from the new one when I call it?

business_kid 03-01-2010 04:13 AM

Good idea to make packages. Try package names to distinguish them

may I suggest optmono, & ulmono, leaving room for plain old mono if the versions ever line up?

ryerke 03-02-2010 08:54 PM

Sorry for the delay in answering. I like your idea and I would like to understand more about packaging rpms and how to distinguish between the different binaries. Right now, though, I have just serendipitously run across an article laying out installing mindspring in centos. Since it depends on mono, the tutorial recommends installing mono 1.9.1 from the REHL 5 repos so I tried it and it worked.I think the mono 1.9.1 will be new enough to work with .NET and has proved to work with bf2ccd.
Thank you for trying to help. I don't know that I am advanced enough to make it work using multiple versions,although the idea does intrigue me.
Thanks again,

All times are GMT -5. The time now is 03:47 PM.