无法加载库

时间:2016-03-09 23:23:20

标签: 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

1 个答案:

答案 0 :(得分:2)

该工具可能是3​​2位,您可以使用64位版本的库。 您可以通过file命令检查二进制体系结构。

此外,您可以通过LD_PRELOAD

强制修改图书馆
相关问题