[SOLVED] xscreensaver-5.15 Can't locate LWP/Simple.pm in @INC
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
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).
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.