On Feb 8, Shai Ayal wrote:
> I do it all the time with no problems I have like 5 versions of octave
> currently installed.
Same here. I do nothing special at build/install but I use small
script (see below) to switch quickly between versions. Of course, it
must be invoked via "sudo" if the default install location is used.
HTH
JFC
################################################################
#!/bin/bash
if [ -z $1 ] ; then
echo usage: octave_switch.sh xx.yy.zz
echo This will make octave version xx.yy.zz the default version
exit 1 ;
else
VERSION=$1 ;
fi
BASE=/usr/local/bin
OCT_BIN=$BASE/octave
OCT_MKO=$BASE/mkoctfile
OCT_CFG=$BASE/octave-config
OCT_BUG=$BASE/octave-bug
doingit () {
LINK=$1 ;
REAL=$1-$2
if [ -h $LINK -a -f $REAL ] ; then
echo Removing symbolic link $LINK
rm $LINK
fi
echo Creating new link pointing to $REAL ;
ln -s $REAL $LINK
}
doingit $OCT_BIN $VERSION
doingit $OCT_MKO $VERSION
doingit $OCT_CFG $VERSION
doingit $OCT_BUG $VERSION
################################################################