起因

困扰我好久的一个报错,终于解决了
ubuntu 缺少动态依赖库
之前我一直以为是 python代码的问题,以为是模块相互调引起的报错,忽略了最后一行这个错误
OSError: libGCBase_gcc421_v3_0.so: cannot open shared object file: No such file or directory

解决

百度搜了一下,问题应该是在 python程序 调用海康相机的动态依赖库 出现了问题!

  1. 终端输入:
    cd /etc
  2. 修改ld.so.conf权限:
    chmod 777 ld.so.conf
  3. 打开 ld.so.conf,添加依赖路径
    在文本开头添加l两行文件路径
    ubuntu 缺少动态依赖库
    保存退出!
  4. 终端运行 sudo /sbin/ldconfig

参考:
https://blog.csdn.net/qq_37945352/article/details/90109959

相关文章:

  • 2022-12-23
  • 2021-06-24
  • 2021-09-06
  • 2021-08-29
  • 2021-10-16
  • 2022-03-04
  • 2022-02-07
  • 2021-09-20
猜你喜欢
  • 2021-12-09
  • 2021-11-03
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
相关资源
相似解决方案