从 cpan 安装 Perl CGI 模块时出错
在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您有数据包管理器,请不要从 CPAN 安装模块。这可能会导致更新或其他模块出现问题。
只需使用:
或者,如果您找不到包含所需模块的软件包,则必须先创建一个软件包(您需要为此安装 dh-make-perl 软件包)
创建 debian/ubuntu 软件包的示例:
并安装它
Don't install modules from CPAN if you have a packet manager. This may cause problems with update or with other modules.
Just use:
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:
and install it with