Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Perl脚本-Can';t在@INC中找到Net/SSH/Perl.pm_Perl - Fatal编程技术网

Perl脚本-Can';t在@INC中找到Net/SSH/Perl.pm

Perl脚本-Can';t在@INC中找到Net/SSH/Perl.pm,perl,Perl,我正在尝试运行一个Perl脚本,它只是从一台Windows2003x64复制到另一台相同类型的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\switche

我正在尝试运行一个Perl脚本,它只是从一台Windows2003x64复制到另一台相同类型的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.
我已经搜索了,可能缺少,但我没有安装(在设置代理后)我得到的

当使用ppm时,我在GUI中找不到该模块

CPAN会产生其他错误

感谢您的帮助



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

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

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

试试这个,这可能会起作用:

ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSH2.ppd
ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSH-Perl.ppd

关于,

CPAN会产生什么“其他错误”?据我所知,它在CPAN中。。。请注意:ActivePerl通常在从CPAN安装包含需要编译的C(XS)文件的模块时非常糟糕。最好的方法是使用ppm,或者迁移到草莓Perl。Borodin和Jack Maney的说法已经过时了。ActivePerl并不比其他流行的Windows发行版差,因为在需要的时候。相关:我添加了这个存储库,它以某种方式显示了0个pkg,我找不到Net::SSH::PerlIt找不到正确的代码。。。。F:\Supportsaves\Scripts\Supportsave\u Script>ppm安装ppm安装失败:PPD没有提供用于此平台安装的代码。这可能对您有所帮助。该脚本下载并构建一个完整的perl CPAN镜像。在此之后,您可以仅复制所需的模块。
http://www.bribes.org/perl/ppm/
ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSH2.ppd
ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSH-Perl.ppd