运行perl源

时间:2012-05-05 04:27:35

标签: perl

  

可能重复:
  What's the easiest way to install a missing Perl module?

我为perl脚本下载了source code。但是,当我尝试运行它时,它会给我以下错误:

Can't locate Palm/PDB.pm in @INC (@INC contains: /root/Desktop /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /etc/perl/MobiPerl/MobiFile.pm line 3.
BEGIN failed--compilation aborted at /etc/perl/MobiPerl/MobiFile.pm line 3.
Compilation failed in require at ./html2mobi line 21.
BEGIN failed--compilation aborted at ./html2mobi line 21.

我可以做些什么来运行这个脚本?

2 个答案:

答案 0 :(得分:4)

您需要从CPAN下载正确的模块 - 在这种情况下, Palm::PDB

this question的答案解释了如何install missing Perl modules

答案 1 :(得分:2)

您需要从某处找到并安装模块Palm::PDB。它可以在CPAN上找到。