cur报错undefinedl symbol是因为curl版本是7.35 libcurl是7.57的原因吗?具体报错如下
最开始是因为curl不支持https协议出现的问题,因为我之前不知道是openssl没有安装的原因,所以安装了好几个版本的curl,等安装完openssl以及libcurl之后才发现出现了现在的问题。
然后我重新下载了7.57版本的curl准备重新安装,make的时候又出现如下报错:
root@iZwz9akk7iswd53zv5vrzeZ:~/curl-7.57.0# make
Making all in lib
make[1]: Entering directory `/root/curl-7.57.0/lib'
make all-am
make[2]: Entering directory `/root/curl-7.57.0/lib'
make[2]: Leaving directory `/root/curl-7.57.0/lib'
make[1]: Leaving directory `/root/curl-7.57.0/lib'
Making all in src
make[1]: Entering directory `/root/curl-7.57.0/src'
Making all in ../docs
make[2]: Entering directory `/root/curl-7.57.0/docs'
Making all in .
make[3]: Entering directory `/root/curl-7.57.0/docs'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/curl-7.57.0/docs'
Making all in cmdline-opts
make[3]: Entering directory `/root/curl-7.57.0/docs/cmdline-opts'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/curl-7.57.0/docs/cmdline-opts'
make[2]: Leaving directory `/root/curl-7.57.0/docs'
make[2]: Entering directory `/root/curl-7.57.0/src'
CCLD curl
../lib/.libs/libcurl.so: undefined reference to `SSL_CTX_set_alpn_protos'
../lib/.libs/libcurl.so: undefined reference to `SSL_COMP_free_compression_methods'
../lib/.libs/libcurl.so: undefined reference to `SSL_get0_alpn_selected'
collect2: error: ld returned 1 exit status
make[2]: *** [curl] Error 1
make[2]: Leaving directory `/root/curl-7.57.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/curl-7.57.0/src'
make: *** [all-recursive] Error 1
curl版本信息如下:
root@iZwz9akk7iswd53zv5vrzeZ:~/curl-7.57.0# curl -v
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
curl: symbol lookup error: /usr/local/lib/libcurl.so.4: undefined symbol: SSL_COMP_free_compression_methods
root@iZwz9akk7iswd53zv5vrzeZ:~/curl-7.57.0# curl -V
curl 7.35.0 (x86_64-unknown-linux-gnu) libcurl/7.57.0 OpenSSL/1.0.1f zlib/1.2.11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
curl: symbol lookup error: /usr/local/lib/libcurl.so.4: undefined symbol: SSL_COMP_free_compression_methods
网上百度了很多也没有找到解决方法,跪求各位大佬指点迷津
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论