/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available

简介: /usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available

今天在cmake的时候,报错/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)

报错原因:libcurl.so.4的指向错误

解决步骤如下:

第一步:

locate libcurl.so.4
/home/ubuntu/Packages/curl-7.74.0/lib/.libs/libcurl.so.4
/home/ubuntu/Packages/curl-7.74.0/lib/.libs/libcurl.so.4.7.0
/home/ubuntu/Packages/curl-7.76.1/lib/.libs/libcurl.so.4
/home/ubuntu/Packages/curl-7.76.1/lib/.libs/libcurl.so.4.7.0
/usr/lib/x86_64-linux-gnu/libcurl.so.4
/usr/lib/x86_64-linux-gnu/libcurl.so.4.6.0
/usr/local/lib/libcurl.so.4
/usr/local/lib/libcurl.so.4.7.0

第二步:

输入:ll /usr/local/lib/libcurl.so.4 查看 libcurl.so.4的指向为 libcurl.so.4.7.0,删除错误指向,重新创建新的链接指向为:/usr/lib/x86_64-linux-gnu/libcurl.so.4.6.0

ll /usr/local/lib/libcurl.so.4
lrwxrwxrwx 1 root root 16 4月  11 21:53 /usr/local/lib/libcurl.so.4 -> libcurl.so.4.7.0*
sudo rm -rf /usr/local/lib/libcurl.so.4  // 删除错误链接
sudo ln -s /usr/lib/x86_64-linux-gnu/libcurl.so.4.6.0 /usr/local/lib/libcurl.so.4  //创建新的链接,注意自己的路径!

参考博客:https://blog.csdn.net/wangshuai_hzau/article/details/83217264

相关文章
|
Ubuntu 关系型数据库 MySQL
libmysqlclient.so.18(libmysqlclient.so.20 libmysqlclien.so) => not found
libmysqlclient.so.18(libmysqlclient.so.20 libmysqlclien.so) => not found
884 0
libmysqlclient.so.18(libmysqlclient.so.20 libmysqlclien.so) => not found
|
Linux C++
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found问题解决方法
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found问题解决方法
2168 0
|
编译器 Linux
ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found
ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found
1312 0
libtoolize: error: Please install GNU M4, or 'export M4=/path/to/gnu/m4'
libtoolize: error: Please install GNU M4, or 'export M4=/path/to/gnu/m4'
152 0
|
C语言
编译OpenJDK8:configure error /usr/lib64/ccache/gcc is a symbolic link to ccache
编译OpenJDK8:configure error /usr/lib64/ccache/gcc is a symbolic link to ccache
129 0
|
Linux PHP
configure: error: Cannot find ldap libraries in /usr/lib
<p style="padding-top:0px; padding-bottom:0px; margin-top:0px; margin-bottom:0px; clear:both; height:auto; overflow:hidden; color:rgb(80,80,80); font-family:宋体,'Arial Narrow',arial,serif; font-siz
1809 0
Error: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8‘ not found (required by /usr/anaconda3/bin/)
Error: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8‘ not found (required by /usr/anaconda3/bin/)
603 0
Error: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8‘ not found (required by /usr/anaconda3/bin/)
ls -al /usr/lib | grep libevent --- 查看libevent是否已安装
ls -al /usr/lib | grep libevent --- 查看libevent是否已安装
256 0