我添加了一个新的手册页目录
/usr/local/share/man/man1b其中包含的文件,如。
troff.1bIn /etc/man.conf i添加
_subdir ...some names... man1b
_default /usr/{share,X11R7,X11R6,pkg,local,local/share}/man/
local /usr/local/share/man/
1b {cat,man}1bman -p打印
...
/usr/local/share/man/man1b但如果我输入
man 1b troff我得到了错误信息
man: no entry for troff in the manual.(我不能使用man,因为groff在cat1的其他地方也安装了手册页。)
怎样才能正确地添加人的路径?
PS:如果我将文件重命名为troff.1,那么man1b troff工作。但是我认为这个类别也可以是文件扩展名。它是否是NetBSD的一个bug (文件名troff.1b在OpenBSD和Linux中工作)?
发布于 2015-04-30 01:35:13
您可能需要更新您的MANPATH环境变量,至少在这种情况下我就是这样做的。
$ export MANPATH=/usr/local/share/man/从手册页(为man):
MANPATH If MANPATH is set, man uses it as the path to search for manual page files. It overrides the configuration file and the automatic search path, but is overridden by the -M invocation option. See SEARCH PATH FOR MANUAL PAGES.
https://unix.stackexchange.com/questions/132602
复制相似问题