[Mono-list] running two different versions on mono on one box?

2006-10-25 Thread ted leslie
I have a need to keep one particular older version of mono on computer,
because it's included in a system that I have deployed and need to
support, and it not convenient to upgrade those environments at this
time, but yet still update applications written against that older
version of mono.
But,
I'd like to run the newest stable version too on my machine.
Write now i do this by having a script, a pre-script/post-script
that moves the mono binary, libs and /etc/mono to the version 
I want, runs the program, and then changes it back.
There must be an easier way? to selectively run a mono app against 
a particular mono version, and do so with different versions on the
same machine? I am thinking there is a set of environment variables?
I can dig on it, but figuring someone can probably post there sol'n
in 2 seconds.

-tl

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] running two different versions on mono on one box?

2006-10-25 Thread Kornél Pál
Different versions of Mono or even multiple instances of the same version 
can be installed on different prefixes.

The easiest thing to do is to install multiple Mono versions to different 
locations and execute the mono binary you want to use. It will find it's own 
class library and GAC.

Kornél

- Original Message - 
From: ted leslie [EMAIL PROTECTED]
To: Mono-list@lists.ximian.com
Sent: Wednesday, October 25, 2006 3:28 PM
Subject: [Mono-list] running two different versions on mono on one box?


I have a need to keep one particular older version of mono on computer,
 because it's included in a system that I have deployed and need to
 support, and it not convenient to upgrade those environments at this
 time, but yet still update applications written against that older
 version of mono.
 But,
 I'd like to run the newest stable version too on my machine.
 Write now i do this by having a script, a pre-script/post-script
 that moves the mono binary, libs and /etc/mono to the version
 I want, runs the program, and then changes it back.
 There must be an easier way? to selectively run a mono app against
 a particular mono version, and do so with different versions on the
 same machine? I am thinking there is a set of environment variables?
 I can dig on it, but figuring someone can probably post there sol'n
 in 2 seconds.

 -tl

 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list 

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] running two different versions on mono on one box?

2006-10-25 Thread Marek Sieradzki
On 10/25/06, ted leslie [EMAIL PROTECTED] wrote:
 I have a need to keep one particular older version of mono on computer,
 because it's included in a system that I have deployed and need to
 support, and it not convenient to upgrade those environments at this
 time, but yet still update applications written against that older
 version of mono.
 But,
 I'd like to run the newest stable version too on my machine.
 Write now i do this by having a script, a pre-script/post-script
 that moves the mono binary, libs and /etc/mono to the version
 I want, runs the program, and then changes it back.
 There must be an easier way? to selectively run a mono app against
 a particular mono version, and do so with different versions on the
 same machine? I am thinking there is a set of environment variables?
 I can dig on it, but figuring someone can probably post there sol'n
 in 2 seconds.

http://www.mono-project.com/Parallel_Mono_Environments
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] running two different versions on mono on one box?

2006-10-25 Thread Miguel de Icaza
Hello,

 I'd like to run the newest stable version too on my machine.
 Write now i do this by having a script, a pre-script/post-script
 that moves the mono binary, libs and /etc/mono to the version 
 I want, runs the program, and then changes it back.

You compile Mono to be installed in a particular prefix, like this:

./configure --prefix=/mono

(Thats what I use), so you end up with a Mono in /usr/bin/mono and
another in /mono/bin/mono.

Then you run a script like this to switch from the standard system mono,
to the mono installed in /mono:

bash$ source setup-mono

The source command there is important, then the setup-mono file looks
like this:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mono/lib
export C_INCLUDE_PATH=/mono/include
export ACLOCAL_PATH=/mono/share/aclocal
export 
PKG_CONFIG_PATH=/mono/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/usr/local/lib/pkgconfig
PATH=/mono/bin:$PATH
PS1=mono$ 

Miguel.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] running two different versions on mono on one box?

2006-10-25 Thread Miguel de Icaza

 http://www.mono-project.com/Parallel_Mono_Environments

Ah, that is a much better answer ;-)
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list