Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
360 views
in Technique[技术] by (71.8m points)

manpage - How to add entry in Linux man page database

I have a manual page for mongoose web server named as mongoose.1 as a result of doing make and make install command to install mongoose web server on my ubuntu 12.04. But ,the man page entry is not in manual page database.

output on my command line when I did : "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.

I know the path of all man pages where they are stored is:-

/usr/local/share/man/

I am thankful for your answers in advance.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The directory where the manpage is installed should be listed either in /etc/manpath.config or in the MANPATH environment variable. E.g., if the manpage is

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

then you can set it using

MANPATH=/opt/mongoose/share/man man mongoose

(or change the MANPATH in your .bashrc or similar shell startup file).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...