Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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 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.