原文地址:https://www.linux.com/blog/add-new-library-path-ubuntu-1010
To add new library path in ubuntu 10.10
To add new library path, create new file in /etc/ld.so.conf.d folder and open it in your favorite editor
$ sudo gedit /etc/ld.so.conf.d/newlib.conf
Add the path to file and save it
/path/to/new/lib
Run 'ldconfig' to update the necessary links and cache
$ sudo ldconfig