[英]Strawberry Perl SCP
I'm trying to follow the example shown in Net::SCP
我正在尝试遵循Net::SCP
显示的示例
I'm using strawberry perl with eclipse in my windows dev machine. 我在Windows开发机中使用带有Eclipse的草莓perl。 Eventually the script will be run on a linux server to distribute some config files as part of a deploy process. 最终,该脚本将在linux服务器上运行以分发一些配置文件,这是部署过程的一部分。
Eclipse complains that use Net::SCP qw(scp iscp);
Eclipse抱怨use Net::SCP qw(scp iscp);
can't be located: 找不到:
Can't locate Net/SCP.pm in @INC (you may need to install the Net::SCP module) (@INC contains: C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .)
Since I'm new to perl, my question is a multi-parter. 由于我是perl的新手,所以我的问题是多方面的。 Is the above example a good one to follow? 上面的例子是一个很好的例子吗? If so, how do I install the missing module. 如果是这样,我该如何安装缺少的模块。 If it is not, what alternative should I use? 如果不是,我应该使用什么替代方法?
Is the above example a good one to follow? 上面的例子是一个很好的例子吗?
Net::SCP
is just a simple wrappers around ssh and scp commands. Net::SCP
只是ssh和scp命令的简单包装。
Given you're developing on Strawberry Perl on Windows, you probably won't have access to these system commands and therefore won't be able to use the module. 鉴于您正在Windows上的Strawberry Perl上进行开发,因此您可能无权访问这些系统命令,因此将无法使用该模块。
The #See Also section states: For a perl implementation that does not require the system scp command, see Net::SFTP
instead. #See Also部分指出: 对于不需要system scp命令的perl实现,请参阅Net::SFTP
。
If so, how do I install the missing module. 如果是这样,我该如何安装缺少的模块。
To install modules use cpan
or cpanm
as documented at http://www.cpan.org/modules/INSTALL.html 要安装模块, 请按照http://www.cpan.org/modules/INSTALL.html上的说明使用cpan
或cpanm
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.