[Mono-list] running two different versions on mono on one box?
Miguel de Icaza
miguel at ximian.com
Wed Oct 25 10:30:25 EDT 2006
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.
More information about the Mono-list
mailing list