还在苦苦敲代码开发APP?你out啦! 试试积木搭建APP吧~

Linux平台编译curl:checking run-time libs availability... failed

来源:清泛原创     2018-03-16 15:32:18    人气:     我有话说( 0 人参与)

64位编译1)configure过程失败如下, checking run-time libs availability failed configure: error: one or more libs av

64位编译

       1)configure过程失败如下,

        checking run-time libs availability... failed

        configure: error: one or more libs available at link-time are not available run-time. Libs used at link-time: -lidn -lssh2 -lssl -lcrypto -lssl -lcrypto -ldl -lz -lldap -lz -lrt

        找了一下,这些库都分别在/usr/lib64和/usr/local/lib目录下(libssh2.so在/usr/local/lib目录下,其他的在/usr/lib64),

       export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib64:$LD_LIBRARY_PATH 

       再次configure,成功!显示各个模块的支持情况如下

curl version: 7.37.1  
Host setup: x86_64-unknown-linux-gnu  
Install prefix: /usr/local  
Compiler: gcc  
SSL support: enabled (OpenSSL)  
SSH support: enabled (libSSH2)  
zlib support: enabled
...

编译支持SFTP的libcurl

./configure --with-ssl --with-libssh2


libcurl openssl libssh2 zlib sftp

注:本文为本站或本站会员原创优质内容,版权属于原作者及清泛网所有,
欢迎转载,转载时须注明版权并添加来源链接,谢谢合作! (编辑:admin)
分享到: