7

After recent upgrade I can't launch only one of my apps it always gives me this error:

Can't locate LWP/UserAgent/Cached.pm in @INC (you may need to install the 
LWP::UserAgent::Cached module) (@INC contains: /etc/perl /usr/local
/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share
/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) 
at /usr/share/perl/5.18/WWW/YoutubeViewer.pm line 242.

I followed as in instructed in the first answer here but all of those commands return positive outputs I got libwww-perl installed and running apt-get dist-upgrade doesn't give anything to upgrade either.

What else could I be missing?

JoKeR
  • 7,062

2 Answers2

18

you'll need to install libwww-perl.

wget http://www.cpan.org/modules/by-module/LWP/libwww-perl-6.06.tar.gz
tar xvzf libwww-perl-6.06.tar.gz
cd libwww-perl-6.06
perl Makefile.PL
make
make install

or

apt-get install libwww-perl

Or you can try this solution

perl -MCPAN -e 'install Bundle::LWP'
Waheed
  • 163
Maythux
  • 87,123
4

Try to install the missing module from CPAN:

sudo perl -MCPAN -e 'install LWP::UserAgent::Cached'