gpt4 book ai didi

Perl 脚本 - 在 @INC 中找不到 Net/SSH/Perl.pm

转载 作者:行者123 更新时间:2023-12-04 17:05:44 26 4
gpt4 key购买 nike

我正在尝试运行一个 Perl 脚本,该脚本只是从一台 Windows 2003 x64 复制到另一台相同类型的 Windows 机器上。

我安装了 ActivePerl 并收到以下错误:

F:\Supportsaves\Scripts\Supportsave_Script>Can't locate Net/SSH/Perl.pm in @INC (@INC contains: C:/Perl64/site/lib C:/Perl64/lib .) at F:\Supportsaves\Scripts\switches_supportsave.pl line 11.
BEGIN failed--compilation aborted at F:\Supportsaves\Scripts\switches_supportsave.pl line 11.

我已经搜索过,可能是 Net::SSH::Perl丢失,但我没有安装它(设置代理后)我得到
F:\Supportsaves\Scripts\Supportsave_Script>ppm install Net-SSH-Perl
ppm install failed: Can't find any package that provides Net-SSH-Perl

使用 ppm 时,我在 GUI 中找不到此模块。

CPAN 会产生其他错误。

任何帮助表示赞赏。
 Result after installing Net::SSH::Perl in Strawberry, CPAN   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, 2 wallclock secs ( 0.09 usr + 0.03 sys = 0.12 CPU)
Result: FAIL`

Failed 1/12 test programs. 0/106 subtests failed.
dmake.EXE: Error code 255, while making 'test_dynamic'
TURNSTEP/Net-SSH-Perl-1.34.tar.gz
2 dependencies missing (Math::Pari,Crypt::RSA); additionally test harness failed`

C:\Perl\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports TURNSTEP/Net-SSH-Perl-1.34.tar.gz
Running make install
make test had returned bad status, won't install without force`

`F:\Supportsaves\Scripts\Supportsave_Script>`

-----------------

Installing in Active Perl with CPAN Net::SSH::Perl does partly work well, there are
missing dependencies, which can't be installed either...

Result: PASS
TURNSTEP/Net-SSH-Perl-1.34.tar.gz
Tests succeeded but 7 dependencies missin
(Crypt::IDEA,Math::Pari,Crypt::DSA,Convert::PEM,String::CRC32,Math::GMP,Crypt
::RSA)
TURNSTEP/Net-SSH-Perl-1.34.tar.gz
[dependencies] -- NA
Running make install
make test had returned bad status, won't install without force`

`F:\Supportsaves\Scripts\Supportsave_Script>`

Crypt::IDEA fails ...
C:\Perl\site\lib\auto\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32
\bin\ld.exe: cannot find -lbufferoverflowU
collect2: ld returned 1 exit status
dmake.exe: Error code 129, while making 'blib\arch\auto\Crypt\IDEA\IDEA.dll'
DPARIS/Crypt-IDEA-1.08.tar.gz
C:\Perl\site\bin\dmake.exe -- NOT OK
CPAN: YAML::XS loaded ok (v0.35)
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible `

最佳答案

据我所知,Net::SSH::Perl模块仅位于 Bribes ppm 存储库中

http://www.bribes.org/perl/ppm/

如果将它添加到 ppm 的存储库列表中,它应该正确安装它。

关于Perl 脚本 - 在 @INC 中找不到 Net/SSH/Perl.pm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9892637/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com