清除并重建ldconfig高速缓存? [英] Purging and rebuilding ldconfig cache?

查看:978
本文介绍了清除并重建ldconfig高速缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试清除指向库的链接的ldconfig高速缓存. 我有一个本地文件夹,其中放置了新建的库. 我想更新ldconfig缓存以指向这些新建的库.

I am trying to purge the ldconfig cache of links to libraries to link against. I have a local folder where newly built libraries are placed. I want to update the ldconfig cache to point to these newly built libs.

我尝试使用ldconfig -c命令,给它我自己的.conf文件. 我还尝试替换/etc/ld.so.conf文件以指向libs的新路径. 但是即使这样做,当我使用ldconfig -p命令检查高速缓存时,它仍然显示旧的库.

I have tried using the ldconfig -c command, giving it my own .conf file. I also tried replacing the /etc/ld.so.conf file to point to the new path of libs. But even after doing this, when I check the cache using the ldconfig -p command , it is still showing the old libs.

因此,如何清除和重建ldconfig高速缓存? 补充一下:我在Ubuntu 13.10上.

Hence how to purge and rebuild the ldconfig cache? Just to add : I am on Ubuntu 13.10.

推荐答案

晚了2年,但如果有人偶然发现了它,例如su,请运行以下命令:

2 years late, but in case someone stumble upon this, as su, run the following commands:

rm /etc/ld.so.cache
ldconfig

这篇关于清除并重建ldconfig高速缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆