LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1222|回复: 3

ldconfig ?

[复制链接]
发表于 2005-9-5 15:54:16 | 显示全部楼层 |阅读模式
我在shell下,键入ldconfig
显示bash: ldconfig: command not found
我man ldconfig有手册页.
于是我就ldconfig -v path   
结果还是bash: ldconfig: command not found

这个是怎么回事讷?
发表于 2005-9-5 16:10:43 | 显示全部楼层

  1. [rick@Fedora-Core ~]$ whereis ldconfig
  2. ldconfig: /sbin/ldconfig /usr/share/man/man8/ldconfig.8.gz
复制代码

so you must be root to run the command
回复 支持 反对

使用道具 举报

发表于 2005-9-5 16:35:25 | 显示全部楼层
你的环境不包括/sbin,因此,或许需要用绝对路径来执行

  1. /sbin/ldconfig
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-6 11:13:23 | 显示全部楼层
Thank U!
回复 rickxbx, 我确实是用root运行的,我是安装OpenGL编程环境的时候,安装完mesa后,最后要ldconfig的.
结果在我发贴问的时候,重新安装mesa结果ldconfig就OK了.可能是mesa没有make好.

回复 寂寞烈火,不明白您的意思.我的ldconfig路径 ldconfig: /sbin/ldconfig /usr/share/man/man8/ldconfig.8.gz

我也试过 ldconfig -v 绝对路径  ldconfig -v 相对路径 都是bash: ldconfig: command not found
谢谢您给我的提示
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表