linux - 无法加载库

标签 linux installation shared-libraries

我使用的工具反复返回错误,指出它无法在 libppl.so.12: cannot open shared object file: No such file or directory 加载库文件 ( <path_to_file> ) .关键是所需的文件确实存在。

我试过设置 LD_LIBRARY_PATH ,将条目添加到 ld.so.confld.so.conf.d然后运行 ​​ldconfig,这是我在下面提供的链接中找到的解决方案。但是,问题仍然存在。运行时ldconfig -v ,我可以看到它查看文件目录但不填充任何 so 的缓存目录中的文件,包括位于 <path_to_file> 的文件.

可能是什么问题?

有用的链接:

cannot open shared object file: No such file or directory

Linux error while loading shared libraries: cannot open shared object file: No such file or directory

最佳答案

该工具可能是 32 位的,而您拥有 64 位版本的库。 您可以通过 file 命令检查二进制架构。

此外,您可以通过 LD_PRELOAD 强制库

关于linux - 无法加载库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35904686/

相关文章:

linux - 无法在 Linux Mint 17.3 上安装 git

c# - SQL Server Express C# 应用程序安装组合

Qt |无法让任何加密库工作

linux - 在 Red hat 中编译时出现段错误,但在 ubuntu 中运行正常

c# - 安装期间创建防火墙规则 : netsh or WindowsFirewall API?

C#编译错误: Can't find main from *. csproj文件

gcc - 为什么有些图书馆打不开?

c++ - 包含没有 header 的 SO 文件

linux - 在 for 循环中排除具有特定前缀的文件名(globbing)

python - Tensorflow py3.5 从源代码 : "not a supported wheel"? 安装