简体   繁体   English

Perl-无法在Windows上安装Net :: SSH2

[英]Perl - Unable to install Net::SSH2 on windows

I'm attempting to install Net::SSH2 using cpan on Windows. 我正在尝试在Windows上使用cpan安装Net::SSH2 I'm unable to install and getting the following error: 我无法安装并出现以下错误:

Warning: No success on command[C:\\Perl\\bin\\perl.exe Makefile.PL INSTALLDIRS=site] SALVA/Net-SSH2-0.69.tar.gz C:\\Perl\\bin\\perl.exe Makefile.PL INSTALLDIRS=site -- NOT OK 警告:命令[C:\\ Perl \\ bin \\ perl.exe Makefile.PL INSTALLDIRS = site]上没有成功SALVA / Net-SSH2-0.69.tar.gz C:\\ Perl \\ bin \\ perl.exe Makefile.PL INSTALLDIRS =网站-不好

Does anyone know why I'm receiving this error. 有谁知道为什么我会收到此错误。 Any help is greatly appreciated. 任何帮助是极大的赞赏。 The entire output is posted via screenshots below: 整个输出通过以下屏幕截图发布:

我的输出的屏幕截图 我的输出的屏幕截图继续

The output says to try downloading libssh2 from https://www.libssh2.org/ If you have libssh2 already, you could place it in a path where Perl can find it. 输出显示尝试从https://www.libssh2.org/下载libssh2。如果已经有了libssh2,则可以将其放置在Perl可以找到它的路径中。 If you look at the bottom of the output it gives a list of directories that it searches for libssh2. 如果查看输出的底部,它会提供一个目录列表,供其搜索libssh2。 One of those directories would be a likely place to put libssh2. 这些目录之一可能是放置libssh2的地方。

Compiling Net::SSH2 for Activestate Perl is not an easy task. 为Activestate Perl编译Net::SSH2并非易事。

Fortunately, Sisyphus has set up a repository of precompiled Perl packages (PPMs) which includes Net::SSH2 : http://www.sisyphusion.tk/ppmindex.html 幸运的是, Sisyphus已经建立了一个预编译的Perl软件包(PPM)的存储库,其中包括Net::SSH2http : //www.sisyphusion.tk/ppmindex.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM