curl:/usr/local/lib/libldap_r-2.4.so.2:没有可用的版本信息

时间:2014-12-02 14:47:49

标签: linux ubuntu curl markup

在Ubuntu 14.04中,当我尝试使用curl时,我收到以下消息:

curl www.google.com
curl: /usr/local/lib/libldap_r-2.4.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libcurl.so.4)
curl: /usr/local/lib/liblber-2.4.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libcurl.so.4)

卷曲版本:

curl --version

curl: /usr/local/lib/libldap_r-2.4.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libcurl.so.4)
curl: /usr/local/lib/liblber-2.4.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libcurl.so.4)
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP

其他人是否遇到过这个问题?

1 个答案:

答案 0 :(得分:3)

此错误表示libcurl的编译版本为libldap_r,而不是/usr/local/lib中的版本。

作为解决方案,您可以为丢失的文件创建符号链接:

$ sudo ln -fs /usr/lib/liblber-2.4.so.2 /usr/local/lib/ 
$ sudo ln -fs /usr/lib/libldap_r-2.4.so.2 /usr/local/lib/