LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-28-2012, 12:01 PM   #1
aocab
Member
 
Registered: Nov 2009
Location: Heart of Texas
Distribution: Slackware-current
Posts: 138

Rep: Reputation: 30
Question xscreensaver-5.15 Can't locate LWP/Simple.pm in @INC


The latest xscreensaver in current (xscreensaver-5.15-i486-1.txz) is giving me errors when using the Slidescreen screen saver (when using the "choose random image" option).

Quote:
Can't locate LWP/Simple.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at /usr/bin/xscreensaver-getimage-file line 53.
BEGIN failed--compilation aborted at /usr/bin/xscreensaver-getimage-file line 53.
Researching online I came across:
Quote:
you'll need to install libwww-perl
I am not finding a libwww-perl in current.

I also came across a bug report that mentions that this problem is fixed in version 5.15-3. But that was for Arch.
https://bugs.archlinux.org/task/27978

Any ideas?
TIA
Cheers
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-28-2012, 01:31 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
it's fixed in the sense that they added libwww-perl as a dependency of xscreensaver, but this seems to be a little painful, as LWP since version 6 needs itself a number of perl modules (CPAN / slackbuilds.org)...
I really have no idea if Pat wants to include this in Slackware and if yes, if he will opt to recreate the bundle (and do a single package of all the modules) or even include them in the perl main package.

Last edited by ponce; 05-28-2012 at 02:46 PM.
 
Old 05-28-2012, 02:53 PM   #3
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
As a quick and dirty kludge one can just replace the /usr/bin/xscreensaver-getimage-file perl script with the one from 5.14. It'll mean you don't get the new support for urls but it'll avoid the dependency chain.

I don't really walk in perl circles. Has the LWP module become so ubiquitous that Jamie can be forgiven for expecting it to be available?
 
2 members found this post helpful.
Old 05-28-2012, 03:30 PM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
I was curious too about that, so I've tried a grep in slackbuilds.org's repo
Code:
$ grep libwww-perl */*/README
academic/perlprimer/README:This requires perl-tk and libwww-perl. For Real Time PCR, spidey is 
libraries/ClientForm/README:Aas' Perl module HTML::Form, from the libwww-perl library, but the
multimedia/get_iplayer/README:Requires perl-html-parser, libwww-perl, rtmpdump and ffmpeg, all of which
multimedia/xmltv/README:libwww-perl, perl-xml-twig, perl-Date-Manip, perl-XML-Writer,
network/spamassassin/README:libwww-perl, perl-NetAddr-IP, perl-Net-Server, perl-Net-Ident, perl-MailTools,
network/twitter-cmdline/README:This package requires libwww-perl, avalaible at SlackBuilds.org.
perl/libwww-perl/README:libwww-perl - WWW client/server library for perl
perl/perl-HTTP-Cache-Transparent/README:This requires libwww-perl.
perl/perl-HTTP-Proxy/README:This needs libwww-perl.
perl/perl-http-response-encoding/README:This requires libwww-perl.
perl/perl-IO-Socket-SSL/README:optional dependency on libwww-perl which can be installed from SlackBuilds.org
perl/perl-SOAP-Lite/README:libwww-perl, perl-MIME-Lite, perl-Data-Dumper.
system/clamtk/README:libwww-perl, locale-gettext, perl-net-dns, perl-Find-File-Rule and
system/ZoneMinder/README:This requires perl-Date-Manip, libwww-perl, perl-PHP-Serialization, and
but I thought that this way I was missing some packages depending on other packages that depend on libwww-perl (and so on), there were some that I remember not in the list: so, to cut it short, I've tried an "apt-rdepends -r libwww-perl" on debian sid, and it seems they are actually quite a lot (also not considering the ones not appliable).

Last edited by ponce; 05-28-2012 at 04:02 PM.
 
1 members found this post helpful.
Old 05-28-2012, 04:29 PM   #5
aocab
Member
 
Registered: Nov 2009
Location: Heart of Texas
Distribution: Slackware-current
Posts: 138

Original Poster
Rep: Reputation: 30
@ponce:

Thanks for the feedback. Something told me to check with slackbuilds. The changelog indicated that a few things still needed to be rebuilt for perl so I assumed that maybe xscreensaver might have been accidentally built without libwww-perl.

I am not quite sure I want to go through all the trouble building libwww-perl with all it's dependencies just to get the random image option working again when grabbing a desktop image works.

@Gazl:

I would give the kludge a try but I have no idea on where to get a copy of the xscreensaver-getimage-file perl script from 5.14. My older copy of xscreensaver got deleted when I updated my local copy from the mirror.

Thanks & Cheers
 
Old 05-28-2012, 04:49 PM   #6
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
http://www.jwz.org/xscreensaver/xscr...er-5.14.tar.gz

The file is in the 'driver' subdirectory when you extract it.
 
Old 05-28-2012, 06:32 PM   #7
aocab
Member
 
Registered: Nov 2009
Location: Heart of Texas
Distribution: Slackware-current
Posts: 138

Original Poster
Rep: Reputation: 30
@Gazl:
Thanks for that. The kludge is working.

On a side note: I wonder If I could build libwww-perl from
slackbuilds without all the other submodules?

Most of the submodules appear to be web related except for:
perl-encode-locale, perl-lwp-mediatypes, and perl-file-listing.

I'm going to give it a try and see what happens.
If it does not work, I'll just build it as suggested.

Again thanks.
Cheers

edit: building just the submodules I thought would be needed
did not work (one of the submodules needed another submodule installed in order to build).

summary: the kludge works and installing libwww-perl with all
the necessary submodules works.

Again...thanks for all the help.
Cheers

Last edited by aocab; 05-28-2012 at 07:07 PM.
 
Old 05-29-2012, 02:53 AM   #8
sanjioh
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 92

Rep: Reputation: Disabled
Hi,

I don't mean to be too picky here, but it seems to me that the issue is not solved, since the fact that something in -current is broken still stands. Let's see if and how Pat is going to fix this.
 
Old 05-29-2012, 11:02 AM   #9
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
Quote:
Originally Posted by GazL View Post
I don't really walk in perl circles. Has the LWP module become so ubiquitous that Jamie can be forgiven for expecting it to be available?
LWP is *the* WWW library for Perl. Almost every script that accesses the web depends on it in some way. It's so common that even though it's not part of the standard Perl distribution, I could forgive someone for thinking it is. The reason it has so many dependencies is because Gisle KDE'ed it during the development of version 6.00: most of its dependencies were part of LWP itself, but he split them out into separate distributions for modularity purposes.

An easier solution, if you don't care about the neat bundling of Perl modules as Slackware packages, is to install LWP and all its dependencies automatically using CPANPLUS:

Code:
# cpanp -i LWP::UserAgent
Things will get messy when you upgrade Slackware's Perl in future, because LWP will be installed to /usr/lib[64]/perl5/site_perl/$PERLVERSION/ and will get left behind when you upgrade. There's no "nice" solution to this: it's either going to require bundling packages for LWP and its dependencies with Slackware, adding LWP and its dependencies to Slackware's Perl package, or patching that script in xscreensaver so it doesn't support RSS/Atom feeds etc. I would prefer option #1, but my opinion doesn't count, so there you go
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't locate XML/Simple.pm in @INC (@INC contains RaleighRalley Linux - Newbie 5 12-13-2013 05:43 PM
Perl Error LWP/Simple.pm netpumber Slackware 11 12-18-2008 12:06 AM
Locate and edit and image file - simple?!?! rendalli Other *NIX 7 11-29-2006 07:44 AM
Can't locate LWP/Simple.pm Dr_Death_UAE Linux - General 1 03-21-2006 03:30 PM
Netdiff can not locate Simple.pm Rivitir Linux - Software 0 01-16-2006 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration