zoukankan      html  css  js  c++  java
  • error while loading shared libraries的解決方法

    /tests: error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory
    出现这类错误表示,系统不知道
    xxx.so放在哪个目录下,这时候就要在/etc/ld.so.conf中加入xxx.so所在的目录。

    一般而言,有很多的so会存放在/usr/local/lib这个目录底下,去这个目录底下找,果然发现自己所需要的.so文件。

    所以,在/etc/ld.so.conf中加入/usr/local/lib这一行,保存之后,再运行:/sbin/ldconfig –v更新一下配置即可。

    如果是加在第二行的话应该在第一行末尾空一格然后加上“\”换行符。O(∩_∩)O哈哈~这个问题我N天没解决,也找了很多资料,终于在你这里解决了,表示万分感谢!

    也可能是文件权限问题,比方说A用户要调用B用户下的.so,而B用户不允许其它组用户访问,那么也会报找不到.so文件的错。

  • 相关阅读:
    stm32 fatfs 文件系统分析和代码解析
    STM32 USB协议和代码分析
    微型跟踪器A产品体验和分析
    辅听一号产品体验和测评
    华为sound x智能音箱初体验
    TPC-H 分析
    论文解析 -- TPC-H Analyzed: Hidden Messages and Lessons Learned from an Influential Benchmark
    Calcite分析 -- Cost
    Calcite分析 -- ConverterRule
    Calcite分析 -- TopDownRuleDriver
  • 原文地址:https://www.cnblogs.com/linengier/p/3013714.html
Copyright © 2011-2022 走看看