小编Dav*_*hih的帖子

在没有root权限的情况下更新ldconfig缓存

$ uname -a
Linux xhost10.bcgsc.ca 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

$ /sbin/ldconfig --version
ldconfig (GNU libc) 2.5
Run Code Online (Sandbox Code Playgroud)

我在本地安装了几个二进制文件和库,因为我没有root访问权限.

某些程序需要在运行时动态链接到非标准位置的共享库.

执行时,程序返回:

$ path/to/cc1
path/to/cc1: error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)

我已经添加了库的路径$LD_LIBRARY_PATH,但是如果ldconfig没有root访问权限我就无法更新缓存...

是否有用户特定的/etc/ld.so.cache

或者更一般地说,是否可以使用用户配置文件"屏蔽"系统配置文件?

linux centos shared-libraries library-path ldd

12
推荐指数
1
解决办法
8009
查看次数

标签 统计

centos ×1

ldd ×1

library-path ×1

linux ×1

shared-libraries ×1