如何在Linux手册页数据库中添加条目

时间:2012-12-25 13:06:18

标签: linux man

我有一个名为mongoose.1的mongoose web服务器的手册页,作为make和make install命令的结果,在我的ubuntu 12.04上安装了mongoose web服务器。 但是,手册页条目不在手册页数据库中。

我在命令行输出

:“man mongoose”

akshay@akshay-Inspiron-N5010:~/mongoose$ man mongoose
  No manual entry for mongoose
  See 'man 7 undocumented' for help when manual pages are not available.

我知道存储它们的所有手册页的路径是: -

/usr/local/share/man/

我很感谢您的答案。

2 个答案:

答案 0 :(得分:15)

安装联机帮助页的目录应列在/etc/manpath.configMANPATH环境变量中。例如,如果手册页是

/opt/mongoose/share/man/man1/mongoose.1

然后您可以使用

进行设置
MANPATH=/opt/mongoose/share/man man mongoose

(或更改MANPATH或类似shell启动文件中的.bashrc

答案 1 :(得分:1)

找到解决方案: 我们必须将mongoose.1这是一个man文件复制到文件夹/ use / share / man / man1 /

akshay @ akshay-Inspiron-N5010:〜/ mongoose $ sudo cp mongoose.1 / usr / share / man / man1 /

在/ usr / share / man /中有从man1到man8命名的文件夹。我猜对了mongoose.1的man page扩展名是'1'所以我把它复制到man1文件夹中。 我是对的吗?

这一步之后, man mongoose成功显示手动页面条目。