Perl install on dsl4 help reuqested

Forum: Apps
Topic: Perl install on dsl4 help reuqested
started by: xlancealotx

Posted by xlancealotx on Dec. 11 2007,16:52
I have a small app that was on a machine that died so now using this one which is running dsl4. When I try to run the app, I get;

Can't locate LWP/ in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.0 /usr/local/share/perl/5.8.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8.0 /usr/share/perl/5.8.0 /usr/local/lib/site_perl .) at ./ line 3.
BEGIN failed--compilation aborted at ./ line 3.

I am used to yum, thought apt had an aptitude which was a search, but to 'play', I did an apt-get install perl to see what I found and I get;

The following packages have unmet dependencies:
liblwp2: Depends: libc6 (>= 2.3.6-6) but 2.3.2.ds1-10 is to be installed
perl: Depends: perl-base (= 5.6.1-8.9) but 5.8.0-18 is to be installed
Depends: perl-modules (>= 5.6.1-8.9) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

I did the -f which really did nothing, so I am stuck.  I don't know much on the DSL side, but I can't instsall cpan, gcc is also not intalled and can't be installed via apt, but I really think it's just the perl module lwd that needs to be installed.

I need this box shipped out Thursday (the 13th) so would really appreciate any help in resolving this.

Posted by Juanito on Dec. 11 2007,17:20
dsl has a stripped down version of perl-5.8.0 - occasionally you get this kind of error due to dsl missing some of the files from the full version.

apt-get will not install perl on dsl without complaining of dependency issues - probably the easiest way out if you can manage it is to compile perl-5.8.0 from source - you can use the gcc1-with-libs or compile-3.3.5 extensions to do this.

Posted by curaga on Dec. 11 2007,17:57
The gtk2-0705.dsl extension includes full perl 5.8.7
Posted by xlancealotx on Dec. 11 2007,18:04
Thanks, I must have along the way posed as a DSL guy, my bad.  I do have 5+ years with redhat/suse, etc. but I might need a bit more help (sorry).

I did download the full 5.8.8 and started by following the INSTALL doc's.  It say's do delete the file, none exists although there is a Policy_sh.SH file (not sure if I should delete that.)

As for the compile, I am not sure, as this is way before my gcc days.  I started by doing the  sh Configure -de script which 1st gave an error saying I was missing a Policy file, but after the <enter> came back with a few missing things, it did say thats ok, but ended with;

I don't see zip out there, either.
I can't find make or gmake, and my life depends on it.
Go find a public domain implementation or fix your PATH setting!

I assume this is the gcc1 stuff.  Is that something I can install via apt or another way.  I do appreciate the help as this is the only missing thing to be done with this project.  It is an out of the box dsl4 so nothing else has changed (if that helps)

Posted by xlancealotx on Dec. 11 2007,18:12
The gtk2-0705.dsl extension includes full perl 5.8.7

Not sure what that means exactly.  Well i know it's the gtk2 update but;
1. how / where do you get
2. how to install.

I will google around a bit, but if you could answer that, it could simply solve it.

upd: I found the mydsl browser, clicked gtk2, found the file you referenced and downling now.  man, if it's this easy!  Will update shortly


Posted by xlancealotx on Dec. 11 2007,18:50
Couldn't have been that simple!

When you click the myDsl menu, the only option is mydsl browser.  I selected that, gtk2, then selected the gtk2-0705.dsl file.

The 1st and large comment states;
** You must select UPDATE_TO_GTK2 from MyDSL menu **

Only problem is I don't have that option.  Is that something I must enable?   This was tried both botting off the compact flash drive (live mode) as well as booted off the internal drive (normal) with the same results.

*** nevermind above ***
stupid me, did the download then saw it on the menu.  Clicked, hd went on/off a bit then nothing (maybe no confirmation)  but looking to test perl now


Posted by xlancealotx on Dec. 11 2007,19:28
ok here is where I am at.

Did the download of the new .dsl extention, clicked it on the myDsl menu and it seems to have installed.  If I jump to a shell, type perl<tab><tab> perl5.8.0  perl5.8.7 so it does seem that perl 5.8 is installed also.   I retried the app and still no good same error;

Can't locate LWP/ in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at ./ line 3.
BEGIN failed--compilation aborted at ./ line 3.

It looks from the error that it used the new path as I see the 5.8.7, but not sure how to proceed.

Thanks you both for the help so far, really looking to get this done, I can tell I am so damn close!!!!!


Posted by Juanito on Dec. 11 2007,19:37
I'm not too sure where gtk2-0705.dsl loads perl-5.8.7 but the trick is to find and copy it into one of the paths stated after @INC.

On the right-click menu there is a find application under tools if I remember correctly - this will probably help

Posted by xlancealotx on Dec. 11 2007,20:22
Thanks, that did fool it a bit until it tried a true LWP get command.  The I linked to was from a Test folder.

It seems that the perl 5.8.7 full doesn't come with LWP.  My co-worked tried installing via CPAN with errors so I am continuing my search.

Thanks, I am learning a lot on DSL here, so it can't be all bad right?  :)

Posted by roberts on Dec. 11 2007,20:45
Not all perl modules are in DSL. Not all perl modules are installed by gtk2 upgrade extension.
This extension does upgrade perl to 5.8.7 and does have the minimum needed for the intended purpose of running the other gtk2 apps in that section of the repository.

I believe someone is working on producing another gtk2 extension.

To print the Perl module serach path

perl -e 'print join("\n",@INC). "\n"'

Posted by xlancealotx on Dec. 11 2007,21:42
Thank you all for the help.  It's now working.  I had to goto < > and download the full package as the CPAN install kep't failing.  

After downloading, I simply moved the LWP, HTTP folders into the /usr/share/perl/5.8 folder and it worked perfect.

I do have 2 more questions related to this box, not this thread so I will post it seperate.

Again thanks to Juanito, curaga and roberts for all the helpful work that got this application working.  I have learned alot on how DSL works and becoming very impressed.

I am sure to hear replies as I do have 2 more simple q's....

Thanks again!


Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.