/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
833 0
libmysqlclient.so.18(libmysqlclient.so.20 libmysqlclien.so) => not found
|
编译器 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
1278 0
/usr/bin/xsltproc: not found
/usr/bin/xsltproc: not found
127 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
125 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
1801 0
|
关系型数据库 MySQL PHP
configure: error: Cannot find libmysqlclient under /usr/local/mysql.
<p><br></p> <p><span style="color:#3333ff">执行下面语句:</span></p> <p>./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql  --with-mysqli=/usr/
3437 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/)
584 0
Error: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8‘ not found (required by /usr/anaconda3/bin/)