Upgrading perl from 5.8.8 to 5.10.1

Using applications, configuring, problems
Post Reply
Message
Author
mbridges1
Posts: 34
Joined: Thu 01 Oct 2009, 19:59
Location: Lee's Summit, MO
Contact:

Upgrading perl from 5.8.8 to 5.10.1

#1 Post by mbridges1 »

I have Lighthouse Pup 5.02G on a Dell Inspiron B120 laptop, Intel Celeron 1.40GHZ processor, 2GB memory. I installed Lighthouse on this system when version 5.01 first came out, and have installed the 64 bit version on a friends system that he took with him to, and brought back from, Saudi Arabia. I absolutely LOVE Puppy Linux, it has breathed new life into several old systems so that this one now keeps up with a new Dell laptop I purchased 3 months ago running Windows 8! :P

This version of Lighthouse came with perl already installed, the perl -v command shows version 5.8.8. There are directories under /usr/lib/perl5 for both 5.8.8 and 5.10.1, but only the 5.10.1 has the full installation including CPAN.pm, DBI.pm, and MakeMaker.pm. How do I go about upgrading perl from 5.8.8 to 5.10.1? BTW, I do not think I loaded the 5.10.1 onto the system. I require the 5.10.1 installation to validate web sites using the W3C validators. If part of the process is to "compile", please elaborate upon that point also. Thank you.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#2 Post by Semme »

This looks pretty interesting.. Whaddaya think.. outside the box?
Perlbrew is a tool to manage multiple perl installations in your $HOME directory. They are completely isolated perl universes.

mbridges1
Posts: 34
Joined: Thu 01 Oct 2009, 19:59
Location: Lee's Summit, MO
Contact:

#3 Post by mbridges1 »

I've tried installing perlbrew through 3 different methods. It looks like my perl is broken. perlbrew will not install. I get this error:

<root> ~
bash-4.1# curl -LO http://xrl.us/perlbrew
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 94127 100 94127 0 0 52620 0 0:00:01 0:00:01 --:--:-- 52620
<root> ~
bash-4.1# perl ~/perlbrew install
FatPacker error loading App/perlbrew.pm (could be a perl installation issue?) at /root/perlbrew line 379.
BEGIN failed--compilation aborted at /root/perlbrew line 389.
<root> ~


Anybody know where I can get everything I need to get the current version of perl, and get it installed and working properly?

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#4 Post by Semme »

Are you running the Devx-LHP_502.sfs from here.. aka compiler? Bottom line- you need some form of GCC..

Code: Select all

## Download the latest perlbrew

## Installing perlbrew
perlbrew is installed: ~/perl5/perlbrew/bin/perlbrew

perlbrew root (~/perl5/perlbrew) is initialized.

Append the following piece of code to the end of your ~/.bash_profile and start a
new shell, perlbrew should be up and fully functional from there:

    source ~/perl5/perlbrew/etc/bashrc

Simply run `perlbrew` for usage details.

Happy brewing!
Nice! The script installs Perl v5.16.0.

mbridges1
Posts: 34
Joined: Thu 01 Oct 2009, 19:59
Location: Lee's Summit, MO
Contact:

#5 Post by mbridges1 »

Just double-checked, and yes, I am using the exact DEVX you mentioned. Still same error.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#6 Post by Semme »

In your cmd- what's with the O option? Is your error after this: curl -L http://xrl.us/installperlnix | bash

mbridges1
Posts: 34
Joined: Thu 01 Oct 2009, 19:59
Location: Lee's Summit, MO
Contact:

#7 Post by mbridges1 »

I used the -LO option because that's what it said in the instructions for downloading and installing perlbrew. I just entered the command you specified and got a different error.

<root> ~
bash-4.1# curl -L http://xrl.us/installperlinx | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2515 0 2515 0 0 9497 0 --:--:-- --:--:-- --:--:-- 23287
bash: line 1: syntax error near unexpected token `newline'
bash: line 1: `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
<root> ~
bash-4.1#

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#8 Post by Semme »

Assuming gcc's loaded, can YOU see a problem.. perhaps something not right in LHP's environment or bashrc?

Since validation's your game, maybe you adjust this >> http://www.htmlhelp.com/tools/validator/doctype.html

mbridges1
Posts: 34
Joined: Thu 01 Oct 2009, 19:59
Location: Lee's Summit, MO
Contact:

#9 Post by mbridges1 »

The DOCTYPE in my error message came not from my system but from the source install script. I think I'll go straight to the source: Larry Wall and the perl community. I was hoping that someone familiar with the build of Lighthouse would be able to help me upgrade the perl version. If I find out anything useful I'll post back to this stream.

<root> ~
bash-4.1# perl -v

This is perl, v5.8.8 built for i486-t2-linux-gnu

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

<root> ~

mbridges1
Posts: 34
Joined: Thu 01 Oct 2009, 19:59
Location: Lee's Summit, MO
Contact:

#10 Post by mbridges1 »

I am running with the following sfs files:

5-Mariner-5G_502.sfs
5-Voyager-5G.sfs
Devx-LHP_502.sfs
samba-3.5.8-w5.sfs

Should I have more?

mbridges1
Posts: 34
Joined: Thu 01 Oct 2009, 19:59
Location: Lee's Summit, MO
Contact:

#11 Post by mbridges1 »

The installation of perl 5.8.8 is incomplete. I need to remove it from my system and somehow make the 5.10.1 active.

It's taking some time, but I downloaded, and am compiling from source, the current stable version of perl (5.16.3) from CPAN.org. After this I will attempt the perlbrew again using version 5.16.3.

mbridges1
Posts: 34
Joined: Thu 01 Oct 2009, 19:59
Location: Lee's Summit, MO
Contact:

#12 Post by mbridges1 »

:D Success! Perl version 5.16.3 installed and working properly. Validator working! I copied the 5.16.3 perl executable to /usr/bin so the default is no longer 5.8.8. Now will proceed to remove all other versions of perl from my system to clean up the hard drive since none of them work properly anyway. This stream may now be considered closed.

Post Reply