To add new library path in ubuntu 10.10

原文地址: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

猜你喜欢

转载自blog.csdn.net/lzl001/article/details/84970354