[Mono-list] Upgrading Mono from source release: protocol

Robert Jordan robertj at gmx.net
Tue Mar 23 20:00:23 EDT 2010


On 23.03.2010 23:06, Abe Gillespie wrote:
> I've been wondering about this for a while now, and since I'm running
> more and more sites on Mono, I figured it'd be nice to have an
> official process in place.  What is the best and official way to
> upgrade Mono?  The scenario here is compiling from source.
>
> What I usually do is this:
> 1.  Download all the source packages into
> /usr/local/src/mono-<latest-version>  (libgdi, mono, xsp, and mod_mono)
> 2.  Unpack everything.
> 3.  Configure and build each.
> 4.  Navigate into the /usr/local/src/mono-<previous-version>  dir and
> run the "make uninstall" script for each package.
> 5.  Navigate back into /usr/local/src/mono-<latest-version>  and run
> the "make install" script for each package.
> 6.  Finally, I delete the<previous-version>  sources and tar and zip
> the<latest-version>  sources.
>

I'm using /opt/mono-<version>-<my-version>/ as a prefix and a couple
of shell scripts that can be sourced to set the environment accordingly:

VERSION=2-6-99
MONO_PREFIX=/opt/mono-$VERSION
export LD_LIBRARY_PATH=$MONO_PREFIX/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=$MONO_PREFIX/lib/pkgconfig
PATH=$MONO_PREFIX/bin:$PATH
export MANPATH=$MONO_PREFIX/share/man:$MANPATH
PS1='[mono-$VERSION] `hostname --fqdn` [\w] \$ '

I'm never uninstalling because /opt/mono-x-y can be easily "rm -rf"-ed.

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

Robert



More information about the Mono-list mailing list