从cpan安装Perl CGI模块时出错

时间:2011-07-22 08:42:10

标签: perl apache2 cgi cpan

cpan install CGI上执行Ubuntu 10.4时,我得到以下结果。

Test Summary Report
-------------------
t/tmpdir.t             (Wstat: 0 Tests: 9 Failed: 0)
  TODO passed:   3, 6, 8
t/url.t                (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: No plan found in TAP output
Files=39, Tests=695,  2 wallclock secs ( 0.45 usr  0.11 sys +  1.19 cusr  0.21 csys =      1.96 CPU)
Result: FAIL
Failed 1/39 test programs. 0/695 subtests failed.
make: *** [test_dynamic] Error 255
  MARKSTOS/CGI.pm-3.55.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports MARKSTOS/CGI.pm-3.55.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 MARKSTOS/CGI.pm-3.55.tar.gz                  : make_test NO

cpan force install也会创建相同的结果。有没有人有这个错误,有谁知道如何解决它?

1 个答案:

答案 0 :(得分:0)

如果您有数据包管理器,请不要从CPAN安装模块。这可能会导致更新或其他模块出现问题。 只需使用:

apt-get install libcgi-pm-perl

或者,如果找不到包含所需模块的软件包,则必须先创建一个软件包(需要安装dh-make-perl软件包)

创建debian / ubuntu包的示例:

wget http://search.cpan.org/CPAN/authors/id/M/MA/MARKSTOS/CGI.pm-3.63.tar.gz
tar -xvpf CGI.pm-3.63.tar.gz
cd CGI.pm-3.63/
dh-make-perl
debian/rules binary

并使用

进行安装
sudo dpkg -i packagename.deb