Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于 ldd 标识的依赖项,我如何知道它是使用二进制文件的 RPATH 还是环境的 LD_LIBRARY_PATH ?
我怎么知道它是使用二进制文件的 RPATH 还是环境的 LD_LIBRARY_PATH ?
假设 Linux,像这样运行:
env LD_DEBUG=files,libs /path/to/executable
输出将告诉您所有您想知道的信息:查找各种库时加载程序的搜索路径是什么,以及原因。