ah well, now this wont come as a surprise after the 550 version.
Upgrade the Qube 3 perl to 5.8.3 without functionality loss in the GUI, in a
single run.




echo "Upgrading perl on your Qube 3 to 5.8.3"
echo "this script is ONLY for the Qube3, running the Qube 3 OS."
echo "hit ENTER to start, or hit crtl-c now to abort"
read $WAIT
clear

echo "Backing up your current binary. If anything goes wrong, you can revert
back to the current"
echo "version with the command:  cp /usr/bin/perl-backup /usr/bin/perl -f"
echo "if the backup file already exists, please do NOT overwrite it"
cp /usr/bin/perl /usr/bin/perl-backup -iv
echo "ENTER to continue"
read $WAIT
clear

echo "Downloading files"
wget -N
http://www.depopo.net/downloads/cobalt/rpm/Qube3/expat-1.95.2-2.dePoPo.Qube3.
i386.rpm
wget -N
http://www.depopo.net/downloads/cobalt/rpm/Qube3/expat-devel-1.95.2.dePoPo.Qu
be3.i386.rpm
wget -N http://www.depopo.net/content/howto-bin/perl-5.8.3.tar.gz
echo "Complete, ENTER to continue"
read $WAIT
clear

echo "Installing devel files for expat, may produce an error if you already
have them."
rpm -U expat-1.95.2-2.dePoPo.Qube3.i386.rpm
rpm -U expat-devel-1.95.2.dePoPo.Qube3.i386.rpm
echo "Complete, ENTER to continue"
read $WAIT
clear

echo "Unpacking and building perl, this will take some time...."
cp perl-5.8.3.tar.gz perl.tar.gz
gunzip perl.tar.gz -f
tar -xf perl.tar
#
cd perl-5.8.3
# include the cobalt libs to keep the gui happy, and dont forget we want a
fixed archtype
./Configure -deDprefix=/usr
-Dotherlibdirs='/usr/lib/perl5/site_perl/5.005:/usr/lib/perl5/site_perl/5.005
/i386-linux' -s
# lets keep all the openwebmail people happy
perl -pi -e "s/d_dosuid='undef'/d_dosuid='define'/g" config.sh
make
make install
echo "Complete, ENTER to conitnue"
read $WAIT
clear

echo "Now we are going to put the cobalt stuff into place"
cp -r /usr/lib/perl5/site_perl/5.005/i386-linux/*
/usr/lib/perl5/site_perl/5.8.3/i586-linux -u
echo "Complete, ENTER to continue"
read $WAIT
clear

echo "Next, we are going to download some additional modules"
wget -N
http://www.depopo.net/downloads/cobalt/perl-packs/perlpack-XML-Parser-2.34.ta
r
wget -N
http://www.depopo.net/downloads/cobalt/perl-packs/perlpack-Compress-Zlib-1.33
.tar
wget -N
http://www.depopo.net/downloads/cobalt/perl-packs/perlpack-gettext-1.03.tar
wget -N
http://www.depopo.net/downloads/cobalt/perl-packs/perlpack-Quota-1.5.0.tar
echo "Complete, ENTER to continue"
read $WAIT
clear

echo "And installing them...."
tar -xf perlpack-XML-Parser-2.34.tar
sh installscript.sh
rm installscript.sh

tar -xf perlpack-Compress-Zlib-1.33.tar
sh installscript.sh
rm installscript.sh

tar -xf perlpack-gettext-1.03.tar
sh installscript.sh
rm installscript.sh

tar -xf perlpack-Quota-1.5.0.tar
sh installscript.sh
rm installscript.sh

echo "Done. Now that was fun wasnt it ?"

_______________________________________________
Cobaltfacts site list
[email protected]
http://list.cobaltfacts.com/mailman/listinfo.cgi/cobaltfacts

Reply via email to