LD_LIBRARY_PATH与LIBRARY_PATH的区别
看起来很像,但是完全是两码事。
LIBRARY_PATH is used by gcc before compilation to search for directories containing libraries that need to be linked to your program.
LIBRARY_PATH是编译时候用的
LD_LIBRARY_PATH is used by your program to search for directories containing the libraries after it has been successfully compiled and linked.
LD_LIBRARY_PATH是程序运行是使用的
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步