[Linux error] Cannot open shared object file

OpenCV runtime error: "libopencv_core.so.3.2: cannot open shared object file: No such file or directory"

1st:

sudo find / -name "libopencv_core.so.3.2*"

if you can get the result: /usr/local/lib/libopencv_core.so.3.2. please follow the second step,

if not, the second step may not work.

2nd;

Create a file called /etc/ld.so.conf.d/opencv.conf and write to it the path to the folder where the binary is stored

For example, I wrote /usr/local/lib/ to my opencv.conf file.

3rd:

Run the command line as follows.

sudo ldconfig -v

When you finished these steps, your issue may be resolved.

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-21 10:42:02       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-21 10:42:02       106 阅读
  3. 在Django里面运行非项目文件

    2024-01-21 10:42:02       87 阅读
  4. Python语言-面向对象

    2024-01-21 10:42:02       96 阅读

热门阅读

  1. GBASE南大通用示例:创建 NOVALIDATE 方式的约束

    2024-01-21 10:42:02       54 阅读
  2. C# Static与拓展方法

    2024-01-21 10:42:02       56 阅读
  3. python插件架构介绍

    2024-01-21 10:42:02       57 阅读
  4. [go] 组合模式

    2024-01-21 10:42:02       46 阅读
  5. Swift 分类继承

    2024-01-21 10:42:02       50 阅读
  6. springboot使用配置文件配置我们自己配置类的值

    2024-01-21 10:42:02       58 阅读
  7. ROS 2 Humble (Ubuntu Jammy)安装配置

    2024-01-21 10:42:02       67 阅读
  8. SpringSecurity(10)——Csrf防护

    2024-01-21 10:42:02       43 阅读
  9. React Hooks 基本使用

    2024-01-21 10:42:02       44 阅读
  10. 【Ubuntu】使用NFS共享挂载硬盘

    2024-01-21 10:42:02       56 阅读
  11. 数据库学习计划

    2024-01-21 10:42:02       60 阅读