开发者社区> 问答> 正文

关于Perl使用net::ssh::perl模块的问题?报错

@宝仔love 你好,想跟你请教个问题:

您好!

   看到您的文章《perl自动化批量执行脚本》,上面提供的代码是运行在什么操作系统上。我现在在windows安装该模块,在执行到dmake test的时候,就报错。

t/03-packet.t ...... Use of uninitialized value $ENV{"HOME"} in concatenation (.
) or string at E:\perl\modules\Net-SSH-Perl-1.34\blib\lib/Net/SSH/Perl.pm line 1
08.
The getpwuid function is unimplemented at E:\perl\modules\Net-SSH-Perl-1.34\blib
\lib/Net/SSH/Perl/SSH1.pm line 30.
# Looks like your test exited with 255 before it could output anything.
t/03-packet.t ...... Dubious, test returned 255 (wstat 65280, 0xff00)

Test Summary Report
-------------------
t/03-packet.t    (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 10 tests but ran 0.
Files=12, Tests=106,  3 wallclock secs ( 0.09 usr +  0.05 sys =  0.14 CPU)
Result: FAIL
Failed 1/12 test programs. 0/106 subtests failed.
dmake:  Error code 255, while making 'test_dynamic'

感觉这个模块只能运行在unix环境。您是否遇到过这样的问题,请您帮忙看看。谢谢!!

展开
收起
爱吃鱼的程序员 2020-06-14 21:02:13 484 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    嗯,我是运行在linux下面的,win下没试过,不过我建议你去学习ansible把。

    2020-06-14 21:02:29
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
低代码开发师(初级)实战教程 立即下载