Which of the following environment variables overrides or extends the list of directories holding shared libraries?
A. LD_LOAD_PATH
B. LD_LIB_PATH
C. LD_LIBRARY_PATH
D. LD_SHARE_PATH
E. LD_RUN_PATH
题解
「LD_LIBRARY_PATH」环境变量所保存的路径,为程序在运行(runtime)阶段的时候会去寻找动态函数库的位置。而「LIBRARY_PATH」环境变量所保存的路径,为程序在编译(compile & link)阶段的时候会去寻找动态函数库的位置。
所以选项 C 是正确答案。至于其他选项的环境变量名称,可能有部份的程序会用到。
