LD_LIBRARY_PATH

LD_LIBRARY_PATH

vim /etc/ld.so.conf
====================
LD_LIBRARY_PATH: defines the path of dynamic libraries used at the run time
LD_RUN_PATH: at compile time tells the exe file what is path of dynamic libraries used at the run time
======================
ldd exe // show the used dynamic libs

你可能感兴趣的:(LD_LIBRARY_PATH)