????5??????????
?????????3??????·???£?
????1) ???????????????????·???£???????????????????/lib??/usr/lib????(???????????)?? ???????????ldconfig???ldconfig?????????? ???????????????(/lib??/usr/lib)???????????????/etc/ld.so.conf?????е????£? ???????????????????(?????lib*.so*)?? ???????????????????(ld.so)????????????????. ???????????/etc/ld.so.cache?? ?????????????????????????????б?.
????#ldconfig
????2) ????????????????£???????/etc/ld.so.conf??????????????????????????????/usr/local/lib(?????????????????????)??????"??/lib??/usr/lib"???£? ????????ldconfig??????? ??????1??????????????????????/etc/ld.so.conf?У? ????:
????# cat /etc/ld.so.conf
????include ld.so.conf.d/*.conf
????# echo "/usr/local/lib" >> /etc/ld.so.conf
????# ldconfig
????3) ????????????????£????export??????·????????????????????????????????????"??/lib??/usr/lib" ???£?  ???????????/etc/ld.so.conf?м?·??(?????????????·??). ?????export?????????LD_LIBRARY_PATH??????loader????Щ???п?????????????????г??????????????????????.
???????簲??????mysql??/usr/local/mysql???£? ????????????????/usr/local/mysql/lib???棬 ???????.bashrc??.bash_profile??shell???????????伴??:
????#export LD_LIBRARY_PATH=/usr/local/mysql/lib:$LD_LIBRARY_PATH
????????????????????????? ???????????????????????.
????4??????????汾???????????????????????????????????????汾????????????????
???????磺
????error while loading shared libraries: libncurses.so.4: cannot open shared
????object file: No such file or directory
????#ls /usr/lib/libncu*
????/usr/lib/libncurses.a   /usr/lib/libncurses.so.5
????/usr/lib/libncurses.so  /usr/lib/libncurses.so.5.3
?????????????libncurses.so.4??????libncurses.so.5???????????????
????????????????
????#ln -s  /usr/lib/libncurses.so.5.3  /usr/lib/libncurses.so.4