はてなダイアリーライター
結城浩さん作。さっそく利用させてもらおうとした、が。
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.1 /usr/local /share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6. 1 /usr/local/lib/site_perl .) at ./hw.pl line 15. BEGIN failed--compilation aborted at ./hw.pl line 15.
とのこと。Debian ユーザなので、「Debian」「UserAgent.pm」で検索。
Alfredo Daniel Rezinovsky, el domingo 22 de junio a las 16:34 me escribiste:
> Tengo unos scripts en Perl que se quejan que no encuentran
> LWP::Useragent.pm
>
> Que paquete se supone que tengo que instalar ?$ apt-cache search perl lwp user agent
libcrypt-ssleay-perl - Support for https protocol in LWPsupongo...
なるほど。
# apt-cache search
ね。うちのシステムでも libcrypt-ssleay-perl が見つかった。
# apt-get install libcrypt-ssleay-perl
だ。
が、まだうまくいかない。同じエラーメッセージが出る。んー。さらに調べつづけると、libwww-perl というのが必要らしいことがわかる。
# apt-get install libwww-perl
ね。これでどうだ。・・・OK !!
以下、メモ。