???????????????(??????????)??????(????ù????????)?????????????·?????????н???????????? Linux ???? /lib ?? /usr/lib ??????????????????·????????????????????е????????????????????·???????????á????????????????·???????????????λ?????? ???????·????С???????????????·????????????????????????????
????1.??????????? LD_LIBRARY_PATH ????????????·????
????2.???? /etc/ld.so.conf ??????????????·????

?????????????????????·????????/etc/ld.so.conf????????????
???????????????????????????·?????д???OK??????????????磺
????/usr/X11R6/lib
????/usr/local/lib
????/opt/lib
???????????????????????·???????÷?????????????????(??????????????)???λ???????????????????????????????л???? ????????????????????????????????λ???????????????·????????????Ч?????????????????б???? /etc/ld.so.cache ???н??????????/etc/ld.so.cache ?????????????????????????????????????? /etc/ld.so.conf ???????????·???? /sbin/ldconfig ??????Щ????·???μ???????????????????????(ldconfig ??????? root ??????)????????????????????????λ???? /etc/ld.so.conf ?н??????????·?????????????????????? /sbin/ldconfig ??????? /etc/ld.so.cache ???????????ldconfig ????????????????????/etc/ld.so.conf?г???·???μ????????浽/etc/ld.so.cache ?????á???????????Щ???????(?????????glib)?????????ld.so.conf?????μ??·?????????????? /sbin/ldconfig????е????????????浽ld.so.cache?У???????????????????????/usr/lib?μ??????????? ??????????????б???????xxx?????????????????????????????computer?????????
????????????????????????(??????????)??????·????????????????÷?????????????? -L ????????????????? -L ?????·???????????????????????????????????????????????????????????·????
????????????????????????·??????????????????????????? LD_LIBRARY_PATH ??????????? /etc/ld.so.conf ????????á????У?????????÷????? root ???????? /etc/ld.so.conf ???????? /sbin/ldconfig ????????????????????????е???? GTK2 ????????????????????°???? GTK ?????????????? GTK ?汾??????????????ó?????????????????????Щ???????в???????????????????????Щ??????? GTK ??????????????????ж?????????·???????y??????????????С????????÷??????? root ?????????????
????$ export LD_LIBRARY_PATH=/opt/gtk/lib:$LD_LIBRARY_PATH
???????????????????? LD_LIBRAY_PATH ???????????
????$ echo $LD_LIBRARY_PATH
??????????????????????????