从 cpan 安装 Perl CGI 模块时出错

发布于 2024-11-25 11:25:52 字数 968 浏览 1 评论 0原文

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

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

并且cpanforce install也产生相同的结果。有谁遇到过这个错误,有谁知道如何修复它?

I get the following results when doing cpan install CGI on 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

And cpan force install also create same results. Has anyone had this error, does anyone know how to fix it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

痴情换悲伤 2024-12-02 11:25:52

如果您有数据包管理器,请不要从 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

Don't install modules from CPAN if you have a packet manager. This may cause problems with update or with other modules.
Just use:

apt-get install libcgi-pm-perl

OR, if you can't find the package with needed module, you must make a package first ( you need to install dh-make-perl package for that)

sample of creating debian/ubuntu package:

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

and install it with

sudo dpkg -i packagename.deb
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文