免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2190 | 回复: 1
打印 上一主题 下一主题

安装Net:SSH2出错,有没有人遇到过? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-30 14:34 |只看该作者 |倒序浏览
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'

论坛徽章:
0
2 [报告]
发表于 2007-07-30 14:35 |只看该作者
这里两个文件都是存在的SSH2.so,DynaLoader.pm
#     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.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP