man命令出错

回复 收藏
之前man命令是可以正常使用的,yum安装了zip跟unzip之后就出错了,使用man全提示以下错误:
[root@localhost bin]# man cd
sh: /usr/bin/gunzip: No such file or directory
fgets: No such file or directory
Error reading man page /usr/share/man/man1/cd.1.gz
No manual entry for cd
——————————————————————————————————————
[root@localhost bin]# whereis gunzip
gunzip: /bin/gunzip /usr/bin/gunzip /usr/share/man/man1/gunzip.1.gz
——————————————————————————————————————
[root@localhost bin]# ls -lh /usr/bin/gunzip
lrwxrwxrwx 1 root root 16 Mar  5 13:22 /usr/bin/gunzip -> ../../bin/gunzip
——————————————————————————————————————
[root@localhost bin]# ls -lh gunzip
-rwxr-xr-x 1 root root 61 Mar 18  2014 gunzip
——————————————————————————————————————
[root@localhost bin]# cat gunzip
#!/bin/sh
PATH=${'/bin'}:$PATH
exec gzip -d "$@"
——————————————————————————————————————

试过yum reinstall 重新安装gzip这个错误还是存在,各位大虾帮帮忙
2015-03-05 13:54 举报
已邀请:
0

疾风

赞同来自:

重新安装man
0

狠懒

赞同来自:


man 重装过了,还是不行
0

狠懒

赞同来自:

找到问题所在了,man.config文件里面有一行:

.gz          /usr/bin/gunzip     -c
改成
.gz         /bin/gunzip    -c
问题就解决了,但具体是为什么就不知道了

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: