extending default lib search path in ubuntu

老子叫甜甜 提交于 2019-12-02 20:43:09
isti_spl

create (as root) a new file in /etc/ld.so.conf.d/ containing, the new path. For example:

sudo echo "/path-to-your-libs/" >> /etc/ld.so.conf.d/your.conf

after that run

sudo ldconfig

No need to change libc.conf.

Using sudo, without becoming root

This will create a your.conf file with a reference to /path-to-your-libs/:

$ echo '/path-to-your-libs/' |sudo tee -a /etc/ld.so.conf.d/your.conf

Do not forget to finish off with a dynamic link library cache refresh:

$ sudo ldconfig
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!