Web Hosting Talk







View Full Version : Upgrading perl on RAQ4 to 5.6.1


aurorac
07-10-2001, 03:18 PM
Perl upgrade to 5.6.1 causes control panel to fail.
This is my experience on how to upgrade perl and make control panel to work.

[list=1]
Download & install latest stable perl release

 Download URL: http://www.perl.com/CPAN/src/stable.tar.gz (http://www.perl.com/CPAN/src/stable.tar.gz)

&nbsp;&nbsp; gunzip < stable.tar.gz | tar xvf -
&nbsp;&nbsp; cd perl-5.6.1
&nbsp;&nbsp; ./Configure –d
&nbsp;&nbsp; make
&nbsp;&nbsp; make install

Copying Cobalt modules to current perl install folder

&nbsp;&nbsp;cp –r /usr/lib/perl5/site_perl/5.005/Cobalt /usr/local/lib/perl5/site_perl/5.6.1/Cobalt

Copying old GIFgraph module to current perl install folder

&nbsp;&nbsp;cp /usr/lib/perl5/site_perl/5.005/GIFgraph.pm /usr/local/lib/perl5/site_perl/5.6.1/GIFgraph.pm
&nbsp;&nbsp;cp -r /usr/local/lib/perl5/site_perl/5.6.1/GIFgraph /home/packages/install/GIFgraph-1.20/blib/lib/GIFgraph

Installing modules that are required by control panel
&nbsp;&nbsp; - DBI module
&nbsp;&nbsp;&nbsp;&nbsp;Download URL:http://www.cpan.org/authors/id/T/TI/TIMB/DBI-1.18.tar.gz (http://www.cpan.org/authors/id/T/TI/TIMB/DBI-1.18.tar.gz)

&nbsp;&nbsp;&nbsp;&nbsp; gunzip < DBI-1.18.tar.gz | tar xvf -
&nbsp;&nbsp;&nbsp;&nbsp; cd DBI-1.18
&nbsp;&nbsp;&nbsp;&nbsp; perl Makefile.pl
&nbsp;&nbsp;&nbsp;&nbsp; make
&nbsp;&nbsp;&nbsp;&nbsp; make install

&nbsp;&nbsp; - Postgre SQL support
&nbsp;&nbsp;&nbsp;&nbsp; Download URL:http://www.cpan.org/authors/id/M/ME/MERGL/pgsql_perl5-1.9.0.tar.gz (http://www.cpan.org/authors/id/M/ME/MERGL/pgsql_perl5-1.9.0.tar.gz)

&nbsp;&nbsp;&nbsp;&nbsp; gunzip < pgsql_perl5-1.9.0.tar.gz | tar xvf -
&nbsp;&nbsp;&nbsp;&nbsp; cd pgsql_perl5-1.9.0
&nbsp;&nbsp;&nbsp;&nbsp; perl Makefile.pl
&nbsp;&nbsp;&nbsp;&nbsp; make
&nbsp;&nbsp;&nbsp;&nbsp; make install

&nbsp;&nbsp; - Locale gettext support
&nbsp;&nbsp;&nbsp;&nbsp; Download URL:http://www.cpan.org/authors/id/P/PV/PVANDRY/gettext-1.01.tar.gz (http://www.cpan.org/authors/id/P/PV/PVANDRY/gettext-1.01.tar.gz)

&nbsp;&nbsp;&nbsp;&nbsp; gunzip < gettext-1.01.tar.gz | tar xvf -
&nbsp;&nbsp;&nbsp;&nbsp; cd gettext-1.01
&nbsp;&nbsp;&nbsp;&nbsp; perl Makefile.pl
&nbsp;&nbsp;&nbsp;&nbsp; make
&nbsp;&nbsp;&nbsp;&nbsp; make install

&nbsp;&nbsp; - Expat library download&amp; compilation. It is required by XML parser
&nbsp;&nbsp;&nbsp;&nbsp; Download URL : http://prdownloads.sourceforge.net/expat/expat-1.95.1.tar.gz (http://prdownloads.sourceforge.net/expat/expat-1.95.1.tar.gz)

&nbsp;&nbsp;&nbsp;&nbsp; gunzip < expat-1.95.1.tar.gz | tar xvf –
&nbsp;&nbsp;&nbsp;&nbsp; cd expat-1.95.1
&nbsp;&nbsp;&nbsp;&nbsp; ./configure
&nbsp;&nbsp;&nbsp;&nbsp; make
&nbsp;&nbsp;&nbsp;&nbsp; make install
&nbsp;&nbsp; - Download and installation of XML-parser module
&nbsp;&nbsp;&nbsp;&nbsp; Download URL: http://www.cpan.org/authors/id/C/CO/COOPERCL/XML-Parser.2.30.tar.gz (http://www.cpan.org/authors/id/C/CO/COOPERCL/XML-Parser.2.30.tar.gz)

&nbsp;&nbsp;&nbsp;&nbsp; gunzip < XML-Parser.2.30.tar.gz | tar xvf –
&nbsp;&nbsp;&nbsp;&nbsp; cd XML-Parser.2.30
&nbsp;&nbsp;&nbsp;&nbsp; perl Makefile.pl
&nbsp;&nbsp;&nbsp;&nbsp; make
&nbsp;&nbsp;&nbsp;&nbsp; make install

&nbsp;&nbsp; - Quota module
&nbsp;&nbsp;&nbsp;&nbsp; Download URL: http://www.cpan.org/authors/id/T/TO/TOMZO/Quota-1.3.4.tar.gz (http://www.cpan.org/authors/id/T/TO/TOMZO/Quota-1.3.4.tar.gz)

&nbsp;&nbsp;&nbsp;&nbsp; gunzip < Quota-1.3.4.tar.gz | tar xvf -
&nbsp;&nbsp;&nbsp;&nbsp; cd Quota-1.3.4
&nbsp;&nbsp;&nbsp;&nbsp; perl Makefile.pl
&nbsp;&nbsp;&nbsp;&nbsp; make
&nbsp;&nbsp;&nbsp;&nbsp; make install

&nbsp;&nbsp; - MIME base 64 module installation
&nbsp;&nbsp;&nbsp;&nbsp; Download URL:http://www.cpan.org/authors/id/G/GA/GAAS/MIME-Base64-2.12.tar.gz (http://www.cpan.org/authors/id/G/GA/GAAS/MIME-Base64-2.12.tar.gz)

&nbsp;&nbsp;&nbsp;&nbsp; gunzip < MIME-Base64-2.12.tar.gz | tar xvf –
&nbsp;&nbsp;&nbsp;&nbsp; cd MIME-Base64-2.12
&nbsp;&nbsp;&nbsp;&nbsp; perl Makefile.pl
&nbsp;&nbsp;&nbsp;&nbsp; make
&nbsp;&nbsp;&nbsp;&nbsp; make install

&nbsp;&nbsp; - GD interface module
&nbsp;&nbsp;&nbsp;&nbsp; Download URL:http://cpan.valueclick.com/authors/id/L/LD/LDS/GD-1.16.tar.gz (http://cpan.valueclick.com/authors/id/L/LD/LDS/GD-1.16.tar.gz)


&nbsp;&nbsp;&nbsp;&nbsp; gunzip < GD-1.16.tar.gz | tar xvf –
&nbsp;&nbsp;&nbsp;&nbsp; cd GD-1.16.tar.gz
&nbsp;&nbsp;&nbsp;&nbsp; perl Makefile.pl
&nbsp;&nbsp;&nbsp;&nbsp; make
&nbsp;&nbsp;&nbsp;&nbsp; make install

Other modules you may want to install
MySQL support :http://www.cpan.org/authors/id/J/JW/JWIED/DBD-mysql-2.0902.tar.gz (http://www.cpan.org/authors/id/J/JW/JWIED/DBD-mysql-2.0902.tar.gz)

Interbase support :http://www.cpan.org/authors/id/E/ED/EDPRATOMO/DBD-InterBase-0.28.tar.gz (http://www.cpan.org/authors/id/E/ED/EDPRATOMO/DBD-InterBase-0.28.tar.gz)

Postgre SQL DBD support :http://www.cpan.org/authors/id/M/ME/MERGL/DBD-Pg-1.01.tar.gz (http://www.cpan.org/authors/id/M/ME/MERGL/DBD-Pg-1.01.tar.gz)



TIP: to download modules directly to your RAQ you can use lynx
e.q lynx http://path/to/the/module


DISCLAIMER: Please, note, it is only my experience and there is no warranty it will work for you. Also in case your installation fail your hosting provider can charge you a fee for restoring defaults. ;)

[/list=1]

blacknight
04-01-2002, 01:44 PM
Has anybody tried doing this?
Is it a good idea or a really bad one?

aurorac
04-01-2002, 05:57 PM
As far as I know it worked well for me but there were some guys whose RAQs required installation of additional modules. I think it is because their boxes had some upgrade packages installed so that perl modules list changed a bit.

This post is almost 8 month old. So, I cannot warrantee that all will work for RAQ with recent patches.

Actually upgrading perl on RAQ is not a trivial task as there are a lot of based on perl in RAQ CP, so I don't recommend to do it on a production box with customers.

Also upgrade if you really need it and have at least some basic perl knowledge to debug CP and see what modules don't work. If you plan to upgrade just because of a fashion., you'd better not to do it.

NoComment
04-02-2002, 12:14 AM
I recommend installing the latest perl version on a different location and explicitly referring to it on your own scripts. It's not worth messing with the default perl installation.

You would use it like this

#!/usr/local/newperl/perl


my 2 cents..for whatever it's worth

NoComment

blacknight
04-02-2002, 01:24 AM
Originally posted by NoComment
I recommend installing the latest perl version on a different location and explicitly referring to it on your own scripts. It's not worth messing with the default perl installation.

You would use it like this

#!/usr/local/newperl/perl


my 2 cents..for whatever it's worth

NoComment
That sounds like a very good idea. Now my really dumb question is this - how difficult would that be? I have never tried installing something as important as Perl.

blacknight
06-27-2002, 09:46 PM
There's a very user-friendly set of instructions and script on:
http://www.raqhelp.co.uk/

You will need to make a few changes to the script before running it. The instructions ONLY refer to the email address, but you should also check some of the other OS variables.

roly
06-28-2002, 05:03 AM
Heres a little shell script to do all the work of updating Perl (I made it, its based on aurorac's tutor)
#!/bin/bash
cd /usr/src
wget http://www.cpan.org/src/stable.tar.gz
gunzip < stable.tar.gz | tar xvf -
cd perl-5.6.1
./Configure -d
make
make install
cd ..
cp -r /usr/lib/perl5/site_perl/5.005/Cobalt /usr/local/lib/perl5/site_perl/5.6.1/Cobalt
cp /usr/lib/perl5/site_perl/5.005/GIFgraph.pm /usr/local/lib/perl5/site_perl/5.6.1/GIFgraph.pm
cp -r /usr/local/lib/perl5/site_perl/5.6.1/GIFgraph /home/packages/install/GIFgraph-1.20/blib/lib/GIFgraph
wget http://www.cpan.org/authors/id/T/TI/TIMB/DBI-1.18.tar.gz
gunzip < DBI-1.18.tar.gz | tar xvf -
cd DBI-1.18
perl Makefile.pl
make
make install
cd ..
wget http://www.cpan.org/authors/id/M/ME/MERGL/pgsql_perl5-1.9.0.tar.gz
gunzip < pgsql_perl5-1.9.0.tar.gz | tar xvf -
cd pgsql_perl5-1.9.0
perl Makefile.pl
make
make install
cd ..
wget http://www.cpan.org/authors/id/P/PV/PVANDRY/gettext-1.01.tar.gz
gunzip < gettext-1.01.tar.gz | tar xvf -
cd gettext-1.01
perl Makefile.pl
make
make install
cd ..
wget http://telia.dl.sourceforge.net/expat/expat-1.95.1.tar.gz
gunzip < expat-1.95.1.tar.gz | tar xvf -
cd expat-1.95.1
./configure
make
make install
cd ..
wget http://www.cpan.org/authors/id/C/CO/COOPERCL/XML-Parser.2.30.tar.gz
gunzip < XML-Parser.2.30.tar.gz | tar xvf -
cd XML-Parser.2.30
perl Makefile.pl
make
make install
cd ..
wget http://www.cpan.org/authors/id/T/TO/TOMZO/Quota-1.3.4.tar.gz
gunzip < Quota-1.3.4.tar.gz | tar xvf -
cd Quota-1.3.4
perl Makefile.pl
make
make install
cd ..
wget http://www.cpan.org/authors/id/G/GA/GAAS/MIME-Base64-2.12.tar.gz
gunzip < MIME-Base64-2.12.tar.gz | tar xvf -
cd MIME-Base64-2.12
perl Makefile.pl
make
make install
cd ..
wget http://cpan.valueclick.com/authors/id/L/LD/LDS/GD-1.16.tar.gz
gunzip < GD-1.16.tar.gz | tar xvf -
cd GD-1.16.tar.gz
perl Makefile.pl
make
make install

cyrusTvirus
08-28-2002, 04:23 PM
I won't recommend this install. the postgress needs aditional info and the path are not correct in my cobalt

cp –r /usr/lib/perl5/site_perl/5.005/Cobalt /usr/local/lib/perl5/site_perl/5.8.0/Cobalt

(note that I changed 5.6.1 to 5.8.0)

I tried this on an up-to-date cobalt (no production fortunately) and had to do a full restore.