cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)错误
程序员文章站
2022-06-09 17:30:21
...
碰到错误
cmake: /usr/local/lib/libcurl.so.4: no version information available (required by cmake)
先找到 libcurl.so.4在哪
locate libcurl.so.4
输出
/usr/lib/x86_64-linux-gnu/libcurl.so.4
/usr/lib/x86_64-linux-gnu/libcurl.so.4.5.0
/usr/local/lib/libcurl.so.4
/usr/local/lib/libcurl.so.4.4.0
查看.so文件信息
[email protected]:~$ ls -l /usr/local/lib/libcurl.so.4
lrwxrwxrwx 1 root root 16 10月 15 15:02 /usr/local/lib/libcurl.so.4 -> libcurl.so.4.4.0
删除libcurl.so.4旧的软链接
[email protected]:~$ sudo rm /usr/local/lib/libcurl.so.4
建立新的软链接
[email protected]:~$ sudo ln -s /usr/lib/x86_64-linux-gnu/libcurl.so.4.5.0 /usr/local/lib/libcurl.so.4
查看文件
[email protected]:~$ ls -l /usr/local/lib/libcurl.so.4
lrwxrwxrwx 1 root root 42 10月 21 17:04 /usr/local/lib/libcurl.so.4 -> /usr/lib/x86_64-linux-gnu/libcurl.so.4.5.0
camke 问题解决
[email protected]:~$ cmake --version
cmake version 3.10.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).