Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed nginx 1.2.0 from source on ubuntu 12.04 (precise) but it says there is no manpage entry for nginx when I run man nginx.

How to I install it?

share|improve this question

1 Answer 1

If there a man directory where you installed it (e.g. /usr/local/nginx/man), you can add that path to /etc/manpath.config.

share|improve this answer
I tried that but manpath.config being readonly I don't want to tamper with it. Instead I tried to add the nginx.1.gz manpage downloaded from http://manpages.ubuntu.com/manpages/precise/man1/nginx.1.html and I put it in /usr/share/man/man1/ then ran mandb but it didn't find the new file. Any ideas? –  czzarr Aug 20 '12 at 20:40
Try adding the line MANDATORY_MANPATH <directory containing manpage> to /etc/manpath.config If it breaks something, you can just remove that line from the file. You'll need to use sudo to edit the file (e.g., sudo gedit /etc/manpath.config from the command line will work). –  dxvxd Aug 21 '12 at 4:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.