没有人的手动输入


9

我正在使用Centos 6.6 Docker映像。我以为我已经安装了所有东西来访问手册页,但是显然不是...

$ yum install -y man man-pages man-pages-overrides
[...]
Complete!
$ which man
/usr/bin/man
$ man man
No manual entry for man

我想念什么?


关于评论中的问题(感谢大家的帮助):

$ echo $MANPATH
# empty
$ man 1 man
No entry for man in section 1 of the manual
$ man 7 man
No entry for man in section 7 of the manual
$ ll /usr/share/man/man1/
total 8
drwxr-xr-x  2 root root 4096 Sep 23  2011 ./
drwxr-xr-x 61 root root 4096 Jan 31 01:55 ../
$ yum search man | grep db
ModemManager.x86_64 : Mobile broadband modem management service
hsqldb-manual.noarch : Manual for hsqldb
db4-utils.x86_64 : Command line tools for managing Berkeley DB (version 4)
foomatic-db-ppds.noarch : PPDs from printer manufacturers
ldb-tools.x86_64 : Tools to manage LDB files

$ rpm -q -l man | grep man.1
/usr/share/doc/man-1.6f
/usr/share/doc/man-1.6f/COPYING
/usr/share/doc/man-1.6f/README
/usr/share/man/bg/man1/man.1.gz
/usr/share/man/cs/man1/man.1.gz
/usr/share/man/da/man1/man.1.gz
/usr/share/man/de/man1/man.1.gz
/usr/share/man/el/man1/man.1.gz
/usr/share/man/en/man1/man.1.gz
/usr/share/man/es/man1/man.1.gz
/usr/share/man/fi/man1/man.1.gz
/usr/share/man/fr/man1/man.1.gz
/usr/share/man/hr/man1/man.1.gz
/usr/share/man/it/man1/man.1.gz
/usr/share/man/ja/man1/man.1.gz
/usr/share/man/ko/man1/man.1.gz
/usr/share/man/man1/man.1.gz
/usr/share/man/nl/man1/man.1.gz
/usr/share/man/pl/man1/man.1.gz
/usr/share/man/pt/man1/man.1.gz
/usr/share/man/ro/man1/man.1.gz
/usr/share/man/sl/man1/man.1.gz

是否不MANPATH覆盖环境变量?另外,请尝试以下操作:man -M /usr/share/man man
myaut 2015年

man 1 man和的结果是什么man 7 man
Faheem Mitha 2015年

Debian有一个名为的软件包man-db。当然,CentOS的设置可能有所不同。
Faheem Mitha 2015年

你有文件/usr/share/man/man1/man.1.gz吗?
Mark Plotnick

谢谢大家,为了方便起见,我在问题中直接回答了。
安托2015年

Answers:



0

如果echo $MANPATH为空,则需要设置路径。

echo "MANPATH=/usr/share/man" >> ~/.bashrc

再次登录。


我正在使用Debian9。$ MANPATH为空,并且man可以工作。
Prvt_Yadav

CentOS 6.7上的@ Debian_yadav +同上(尽管不是docker),以及man我使用过的所有其他实现。
dave_thompson_085 '18
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.