安装Net:SSH2出错,有没有人遇到过?
root@szcdev01 # cd Net-SSH2-0.10
root@szcdev01 # ls
Changes Makefile SSH2.bs SSH2.xs const-xs.inc lib t
MANIFEST Makefile.PL SSH2.c blib example pm_to_blib typemap
META.yml README SSH2.o const-c.inc fallback ppport.h
root@szcdev01 # export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/ssl/lib
root@szcdev01 # perl Makefile.PL
Net::SSH2: using library -L/usr/local/lib -lssh2 and include path -I/usr/local/include.
Writing Makefile for Net::SSH2
root@szcdev01 # make
cc -c -I/usr/local/include -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -KPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE" SSH2.c
"SSH2.xs", line 707: warning: argument #3 is incompatible with prototype:
prototype: pointer to void : "/usr/local/include/libssh2.h", line 263
argument : pointer to function() returning void
"SSH2.xs", line 1749: warning: argument #2 is incompatible with prototype:
prototype: pointer to const unsigned char : "/usr/local/include/libssh2_publickey.h", line 81
argument : pointer to const char
"SSH2.xs", line 1749: warning: argument #4 is incompatible with prototype:
prototype: pointer to const unsigned char : "/usr/local/include/libssh2_publickey.h", line 81
argument : pointer to const char
"SSH2.xs", line 1763: warning: argument #2 is incompatible with prototype:
prototype: pointer to const unsigned char : "/usr/local/include/libssh2_publickey.h", line 87
argument : pointer to const char
"SSH2.xs", line 1763: warning: argument #4 is incompatible with prototype:
prototype: pointer to const unsigned char : "/usr/local/include/libssh2_publickey.h", line 87
argument : pointer to const char
Running Mkbootstrap for Net::SSH2 ()
chmod 644 SSH2.bs
rm -f blib/arch/auto/Net/SSH2/SSH2.so
LD_RUN_PATH="/usr/local/lib" cc -G SSH2.o -o blib/arch/auto/Net/SSH2/SSH2.so -L/usr/local/lib -lssh2
chmod 755 blib/arch/auto/Net/SSH2/SSH2.so
cp SSH2.bs blib/arch/auto/Net/SSH2/SSH2.bs
chmod 644 blib/arch/auto/Net/SSH2/SSH2.bs
Manifying blib/man3/Net::SSH2::File.3
Manifying blib/man3/Net::SSH2:ublicKey.3
Manifying blib/man3/Net::SSH2:ir.3
Manifying blib/man3/Net::SSH2::SFTP.3
Manifying blib/man3/Net::SSH2::Listener.3
Manifying blib/man3/Net::SSH2::Channel.3
Manifying blib/man3/Net::SSH2.3
root@szcdev01 # make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Net-SSH2....# Failed test (t/Net-SSH2.t at line 19)
# Tried to use 'Net::SSH2'.
# Error: Can't load '/export/home/test/SFTP/Net-SSH2-0.10/blib/arch/auto/Net/SSH2/SSH2.so' for module Net::SSH2: ld.so.1: perl: fatal: libgcc_s.so.1: open failed: No such file or directory at /usr/perl5/5.8.4/lib/i86pc-solaris-64int/DynaLoader.pm line 230.
# at (eval 1) line 2
# Compilation failed in require at (eval 1) line 2.
t/Net-SSH2....NOK 1&Net::SSH2::constant not defined at t/Net-SSH2.t line 22
# Looks like you planned 72 tests but only ran 1.
# Looks like your test died just after 1.
t/Net-SSH2....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-72
Failed 72/72 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/Net-SSH2.t 255 65280 72 143 198.61% 1-72
Failed 1/1 test scripts, 0.00% okay. 72/72 subtests failed, 0.00% okay.
*** Error code 2
make: Fatal error: Command failed for target `test_dynamic'
相关推荐
Net-SSH-Perl所有的包
安装Net::SSH::Perl用的所有的包
Windows Server 2012 R2离线安装.NET Framework 4.7.2全攻略与疑难排解
.NET Framework作为Windows平台的核心运行库,为众多桌面应用、Web服务和企业系统提供底层支持。其安装过程本质上是将一组托管代码执行环境、基础类库和公共语言运行时(CLR)集成到操作系统中,确保应用程序能够正确调用系统API和资源。这一技术价值在于为开发者提供了统一的编程模型,显著提升了软件的可移植性和开发效率,广泛应用于企业级业务系统、IIS Web服务器和传统WinForms/WPF应用程序。在实际部署中,尤其是在Windows Server等服务器环境或离线场景下,安装过程常因系统兼
Windows下Cygwin环境的Hadoop安装(1)- Cygwin安装和配置
在windows下通过安装cygwin模拟linux环境,然后再安装hadoop,是一种简单方便的方式。为hadoop准备的windows下cygwin环境安装过程如下: - 下载安装文件 最新的cygwin安装文件setup.exe下载地址在这里:http://cygwin.com/install.html。用最新版本的cygwin就可以,我用的是2.774版本的安装程序。 - 安装cyg
Linux虚拟机安装教程:Ubuntu+VMware从零到SSH连接
很多搜索“Linux安装”的开发者会遇到“激活码”“破解版”等关键词,实际上Linux作为开源系统本就免费,无需激活。真正需要授权的是虚拟化软件,而VMware Workstation Pro对个人用户也已免费开放。本文从虚拟机的核心概念入手,解释为什么虚拟机是新手学习Linux的最稳路径,并以Ubuntu 24.04 LTS为例,详细演示VMware虚拟机的创建、Ubuntu系统安装、软件源配置、静态IP设置和SSH远程连接。同时,针对安装中常见的虚拟化未开启、网络不通等问题提供排查思路。无论你是准备搭建
net-ssh:SSH(协议2)客户端的纯Ruby实现
网路:: SSH 6.x 文件: : 问题: : 代码: : 电子邮件: 从v2.6.4开始,所有gem版本均已签名。 请参阅。 描述: Net :: SSH是SSH2客户端协议的纯Ruby实现。 它允许您编写通过SSH2调用远程服务器上的进程并与之交互的程序。 特征: 在远程服务器上执行进程并捕获其输出 通过单个SSH连接并行运行多个进程 支持SSH子系统 通过SSH连接转发本地和远程端口 支持的算法 Net :: SSH 6.0默认禁用弱算法的使用。 强烈建议您安装支持最新算法的服务器版本。 通过添加以下选项,可以返回到先前的行为: append_all_supported_algorithms: true 不安全的算法肯定会在Net :: SSH 7. *中删除。 主机密钥 姓名 支持 细节 ssh-rsa 好的 ssh-ed25519 好的 需要宝石ed


其他技术讨论专区
