我正在使用 Ubuntu 16.04。使用 CMake 时,出现此错误:
$ cmake --version
cmake: /lib/x86_64-linux-gnu/libssl.so.1.0.0: no version information available (required by /usr/local/lib/libcurl.so.4)
cmake: /lib/x86_64-linux-gnu/libssl.so.1.0.0: no version information available (required by /usr/local/lib/libcurl.so.4)
cmake: /lib/x86_64-linux-gnu/libssl.so.1.0.0: no version information available (required by /usr/local/lib/libcurl.so.4)
cmake version 3.5.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
ldd
OpenSSL 返回的内容如下:
$ ldd /usr/bin/openssl
/usr/bin/openssl: /lib/x86_64-linux-gnu/libssl.so.1.0.0: no version information available (required by /usr/bin/openssl)
/usr/bin/openssl: /lib/x86_64-linux-gnu/libssl.so.1.0.0: no version information available (required by /usr/bin/openssl)
/usr/bin/openssl: /lib/x86_64-linux-gnu/libssl.so.1.0.0: no version information available (required by /usr/bin/openssl)
linux-vdso.so.1 => (0x00007ffd59249000)
libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f5bf2eb5000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f5bf2a71000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5bf26a7000)
libdl.so.2 => /lib/x86_64-linux-gnu/./libdl.so.2 (0x00007f5bf24a3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5bf312e000)
我安装的 OpenSSL 版本是OpenSSL 1.0.2p
。openssl version
返回OpenSSL 1.0.2p 14 Aug 2018
。具体来说,
$ apt-cache policy openssl
openssl:
Installed: 1.0.2g-1ubuntu4.13
Candidate: 1.0.2g-1ubuntu4.13
Version table:
*** 1.0.2g-1ubuntu4.13 500
500 http://hk.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
100 /var/lib/dpkg/status
1.0.2g-1ubuntu4 500
500 http://hk.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
$ type openssl
openssl is hashed (/home/ddeng/anaconda3/bin/openssl)
如何解决这个问题呢?