error while loading shared libraries: libopencv_highgui.so.3.0: cannot open shared object file问题解决
2017-12-14 11:05
866 查看
在运行人员检测的服务器,程序dlsd时,./dlsd之后报错:
error while loading shared libraries: libopencv_highgui.so.3.0: cannot open shared object file: No such file or directory
找不到需要的库。
解决方法:
(1)ldd dlsd查看缺少哪些库:
如图,缺少opencv相关的库。
(2)locate libopencv_imgcodecs.so.3.0
查找这个库的所在目录,发现在/usr/local/opencv-3.0.0/目录下
(3)在/etc/ld.so.conf.d目录中新建一个xxx.conf文件
并在其内容中写入刚才找到的库的路径:
例如vim /etc/ld.so.conf.d/opencv.conf
添加:
/usr/local/lib
/usr/local/opencv-3.0.0/lib
(注意,编辑此文件需要su权限)
保存后执行:
ldconfig
(4)重新运行./dlsd 正常运行
(注意,有时候程序运行不了可能仅仅是因为没有su)
error while loading shared libraries: libopencv_highgui.so.3.0: cannot open shared object file: No such file or directory
找不到需要的库。
解决方法:
(1)ldd dlsd查看缺少哪些库:
如图,缺少opencv相关的库。
(2)locate libopencv_imgcodecs.so.3.0
查找这个库的所在目录,发现在/usr/local/opencv-3.0.0/目录下
(3)在/etc/ld.so.conf.d目录中新建一个xxx.conf文件
并在其内容中写入刚才找到的库的路径:
例如vim /etc/ld.so.conf.d/opencv.conf
添加:
/usr/local/lib
/usr/local/opencv-3.0.0/lib
(注意,编辑此文件需要su权限)
保存后执行:
ldconfig
(4)重新运行./dlsd 正常运行
(注意,有时候程序运行不了可能仅仅是因为没有su)
相关文章推荐
- 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- 解决error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No su
- 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- 解决error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No su
- error while loading shared libraries: libopencv_core.so.2.4: cannot open shared object file: No such
- 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- 解决./exam5-5: error while loading shared libraries: libdemo.so: cannot open shared object file:
- 解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- 错误解决 error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such fil
- 解决error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No su
- 解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- 解决error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No su
- 2.Samba安装问题:error while loading shared libraries: libXXX.so.X: cannot open shared object file
- caffe出现error while loading shared libraries: libopencv_core.so.3.1: cannot open shared object file:
- 解决error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No su
- 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- 解决Linux: error while loading shared libraries: ...: cannot open shared object file: No such file or directory 类似问题
- 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file