【问题标题】:Binary file refuses to run due to a missing shared library由于缺少共享库,二进制文件拒绝运行
【发布时间】:2014-09-04 22:22:41
【问题描述】:

我尝试使用标准的configuremakesudo make install 序列构建从主页​​下载的recutils 1.7 版,但是在尝试运行生成的二进制文件时。像recinf,我得到了错误:

recinf: error while loading shared libraries: librec.so.1: cannot open shared object file: No such file or directory

这是否意味着我在构建过程中犯了一个错误,还是包本身有错误?

【问题讨论】:

  • 这可能只是意味着您需要以 root 身份运行 ldconfig

标签: configuration build makefile shared-libraries


【解决方案1】:

正如 Etan Reisner 所说,问题在于共享对象库已安装但未加载到缓存中,因此需要运行 ldconfig。运行后

sudo ldconfig

二进制文件运行正常。如果我查看 /usr/local/lib,我会看到那里的库。

【讨论】:

    猜你喜欢
    • 2017-01-19
    • 1970-01-01
    • 1970-01-01
    • 2011-01-02
    • 2016-06-04
    • 1970-01-01
    • 2012-04-22
    • 2013-05-05
    • 1970-01-01
    相关资源
    最近更新 更多