Linux service can't load library path in the /etc/ld.so.conf.d

自闭症网瘾萝莉.ら 提交于 2019-12-21 07:07:23

问题


I have a service in Linux.

When I start it use service start or start in init.d. It can't load config which has stored in /etc/ld.so.conf.d/. So some process which load the library path in /etc/ld.so.conf.d/. can't be launched by this service.

But when I run this service script in shell, it works fine.

How to load the library path in the /etc/ld.so.conf.d/?

Thanks a lot.


回答1:


Did you run ldconfig (as root) lately? There's a shared library cache that's updated by that program, and if you updated a file in /etc/ld.so.conf.d without running ldconfig, the cache data could be out of date.



来源:https://stackoverflow.com/questions/18326251/linux-service-cant-load-library-path-in-the-etc-ld-so-conf-d

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