Can't locate LWP/UserAgent.pm in @INC
Closed this issue · 1 comments
kozo2 commented
I got this error in the latest perl
Docker image.
root@1171278df483:~# perl --version
This is perl 5, version 28, subversion 0 (v5.28.0) built for x86_64-linux-gnu
Copyright 1987-2018, 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@1171278df483:~# ./spang-0.4.5/bin/spang
Can't locate LWP/UserAgent.pm in @INC (you may need to install the LWP::UserAgent module) (@INC contains: /root/spang-0.4.5/pm /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /root/spang-0.4.5/pm/SPANG/Querying.pm line 8.
BEGIN failed--compilation aborted at /root/spang-0.4.5/pm/SPANG/Querying.pm line 8.
Compilation failed in require at ./spang-0.4.5/bin/spang line 19.
BEGIN failed--compilation aborted at ./spang-0.4.5/bin/spang line 19.
root@1171278df483:~#
kozo2 commented
apt-get install libwww-perl
fixed this.