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

When I build some source in custom location, i.e.:

configure --prefix=$HOME/.local

and then, make install..., man pages are copied in ~/.local/share/man/ but inaccessible from man command

How can I make man recognise pages in my custom location?

share|improve this question
up vote 4 down vote accepted

For one-off manpage reading, just point man at the specific file:

man ~/.local/share/man/manX/manpage.1.gz

Otherwise, if you want to always check ~/.local/share, then set the MANPATH environment variable for your user session (typically in your .bashrc file). To check what the current MANPATH is, do:


you'll probably want to append :$HOME/local/.share/man to the end of that.

share|improve this answer
Thanks. Interestingly MANPATH has already $HOME/.local/man but not $HOME/.local/share/man. I added export MANPATH=$HOME/.local/share/man:$MANPATH in .bashrc – zetah Mar 14 '12 at 6:21

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.