打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
libssh2 collect2: ld returned 1 exit status

环境:

Debian 6 zlib-1.2.5 openssl-1.0.0d libssh2-1.2.8

问题:

错误信息:

collect2: ld returned 1 exit status
[scp_nonblock] Error 1
[all-recursive] Error 1

collect2: ld returned 1 exit statusmake[2]: *** [scp_nonblock] Error 1make[2]: Leaving directory `/home/www-data/pkgs/build/libssh2-1.2.8/example'make[1]: *** [all] Error 2make[1]: Leaving directory `/home/www-data/pkgs/build/libssh2-1.2.8/example'make: *** [all-recursive] Error 1

解决:

编译参数(+):LDFLAGS=-ldl

./configure --with-openssl --with-libssl-prefix=/usr/local/ssl/ LDFLAGS=-ldl

make clean ./configure --with-openssl --with-libssl-prefix=/usr/local/ssl/ LDFLAGS=-ldl configure: summary of build options:   version:          -  Host type:        i686-pc-linux-gnu  Install prefix:   /usr/local  Compiler:         gcc  Compiler flags:   -g -O2  Library types:    Shared=yes, Static=yes  Crypto library:   openssl: yes (AES-CTR: no) libgcrypt: no  Debug build:      no  Path to sshd:     /usr/sbin/sshd (only for self-tests)  libz compression: yes makemake install
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【原创】ld returned 1 exit status
交叉编译 hostapd
编译常用环境变量
/usr/bin/ld: cannot find -lssl
Linux php安装
基于ubuntu-2.6.35内核的SDIO-WiFi驱动移植
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服