Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 17 Apr 2014, 15:17
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Upgrading perl from 5.8.8 to 5.10.1
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
mbridges1

Joined: 01 Oct 2009
Posts: 35
Location: Lee's Summit, MO

PostPosted: Wed 20 Mar 2013, 11:38    Post subject:  Upgrading perl from 5.8.8 to 5.10.1
Subject description: How to upgrade perl
 

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! Razz

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.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
Semme

Joined: 07 Aug 2011
Posts: 3263
Location: World_Hub

PostPosted: Thu 21 Mar 2013, 17:26    Post subject:  

This looks pretty interesting.. Whaddaya think.. outside the box?
Quote:
Perlbrew is a tool to manage multiple perl installations in your $HOME directory. They are completely isolated perl universes.
Back to top
View user's profile Send private message 
mbridges1

Joined: 01 Oct 2009
Posts: 35
Location: Lee's Summit, MO

PostPosted: Thu 21 Mar 2013, 18:36    Post subject:  

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?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
Semme

Joined: 07 Aug 2011
Posts: 3263
Location: World_Hub

PostPosted: Thu 21 Mar 2013, 18:53    Post subject:  

Are you running the Devx-LHP_502.sfs from here.. aka compiler? Bottom line- you need some form of GCC..
Code:
## 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.
Back to top
View user's profile Send private message 
mbridges1

Joined: 01 Oct 2009
Posts: 35
Location: Lee's Summit, MO

PostPosted: Thu 21 Mar 2013, 20:01    Post subject:  

Just double-checked, and yes, I am using the exact DEVX you mentioned. Still same error.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
Semme

Joined: 07 Aug 2011
Posts: 3263
Location: World_Hub

PostPosted: Thu 21 Mar 2013, 20:10    Post subject:  

In your cmd- what's with the O option? Is your error after this: curl -L http://xrl.us/installperlnix | bash
Back to top
View user's profile Send private message 
mbridges1

Joined: 01 Oct 2009
Posts: 35
Location: Lee's Summit, MO

PostPosted: Thu 21 Mar 2013, 20:21    Post subject:  

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#
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
Semme

Joined: 07 Aug 2011
Posts: 3263
Location: World_Hub

PostPosted: Thu 21 Mar 2013, 20:44    Post subject:  

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
Back to top
View user's profile Send private message 
mbridges1

Joined: 01 Oct 2009
Posts: 35
Location: Lee's Summit, MO

PostPosted: Fri 22 Mar 2013, 10:12    Post subject:  

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> ~
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
mbridges1

Joined: 01 Oct 2009
Posts: 35
Location: Lee's Summit, MO

PostPosted: Fri 22 Mar 2013, 10:34    Post subject:  

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?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
mbridges1

Joined: 01 Oct 2009
Posts: 35
Location: Lee's Summit, MO

PostPosted: Fri 22 Mar 2013, 12:06    Post subject:  

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.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
mbridges1

Joined: 01 Oct 2009
Posts: 35
Location: Lee's Summit, MO

PostPosted: Sat 23 Mar 2013, 11:58    Post subject:  

Very Happy 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.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0556s ][ Queries: 11 (0.0033s) ][ GZIP on ]