谨慎试之:libopencv_core.so.3.4, needed by //usr/local/lib/libopencv_imgcodecs.so

简介: 谨慎试之:libopencv_core.so.3.4, needed by //usr/local/lib/libopencv_imgcodecs.so

两种解决思路:


指定opencv的路径。

如果是编译,使用-L指定。

如果是运行,可以修改LD_LIBRARY_PATH、/etc/ld.so.conf文件,然后使用ldconfig更新一下。

这两个办法肯定能解决问题。


野蛮删除法(强烈不推荐,除非是好玩)

 吾确实解决了问题。结果有网友怒斥吾,应该是卸载出错了,甚至导致重装系统。所以:


一定要把重要东西备份到服务器。谨慎使用。


 祝大家都平安健康,诸事圆成。


编译时错误如下:

/usr/bin/ld: warning: libopencv_core.so.3.4, needed by //usr/local/lib/libopencv_imgcodecs.so, may conflict with libopencv_core.so.2.4

这显然是两个版本同时,链接时不知道找哪个.3.4是自己编译的,2.4是系统自带的,删除:


         
目录
相关文章
|
关系型数据库 MySQL Linux
【Linux环境】centos安装mysql5.7.26报 ./mysqld: error while loading shared libraries: libaio.so.1: cannot op
【Linux环境】centos安装mysql5.7.26报 ./mysqld: error while loading shared libraries: libaio.so.1: cannot op
299 0
|
4月前
|
应用服务中间件 Shell 网络安全
nginx安装提示 libssl.so.3: cannot open shared object file: No
【8月更文挑战第1天】### 原因 未将安装的ssl中的`libssl.so.3`链接到`/usr/lib`导致缺失。 ### 解决方案 1. 检查openssl是否已安装,若为低版本则需重装。 ```sh whereis openssl
2202 6
|
6月前
|
PHP
php 使用phpize报错Cannot find config.m4. Make sure that you run ‘/usr/bin/phpize‘ in the top l
php 使用phpize报错Cannot find config.m4. Make sure that you run ‘/usr/bin/phpize‘ in the top l
249 1
未解决:lrelease: could not exec ‘/usr/lib/qt5/bin/lrelease‘: No such file or directory
未解决:lrelease: could not exec ‘/usr/lib/qt5/bin/lrelease‘: No such file or directory
247 0
|
计算机视觉
谨慎试之:libopencv_core.so.3.4, needed by //usr/local/lib/libopencv_imgcodecs.so
谨慎试之:libopencv_core.so.3.4, needed by //usr/local/lib/libopencv_imgcodecs.so
361 0
自行编译cups绕过错误:file /etc/rc.d/rc.local from install of systemd conflicts with file from
自行编译cups绕过错误:file /etc/rc.d/rc.local from install of systemd conflicts with file from
99 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