zoukankan      html  css  js  c++  java
  • linux执行命令之后显示error while loading shared libraries

    在执行一些命令的时候,显示error while loading shared libraries


    ./swman: error while loading shared libraries: libbase.so.0:cannot open shared object file: No such file or directory


    1.根据名字找到这个包所在的位置

    find /* -name "libbase.so.0"

    2. 将查找到结果的这个路径添加到/etc/ld.so.conf中

    vim /etc/ld.so.conf

    将lib所在的路径直接加入即可

    3.执行命令,让重新配置的生效

    /sbin/ldconfig –v


     然后重新进行执行命令即可

    发生的原因是因为在执行命令的时候程序所需要的库文件找不到,因为相关的路径是不正确的,加入正确的路径,那么就能找到库文件,从而正常执行相关的命令。

    for linux and python
  • 相关阅读:
    2016/09/18
    2016/09/16
    2016/09/15
    2016/09/14
    2016/09/13
    2016/09/12
    2016/09/03
    2016/09/02
    HDU1850 Being a Good Boy in Spring Festival(NIM)
    POJ3070 Fibonacci(矩阵快速幂)
  • 原文地址:https://www.cnblogs.com/kellyseeme/p/5525205.html
Copyright © 2011-2022 走看看