Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Fix missing man pages for self-installed utilities' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Fix missing man pages for self-installed utilities
Authored by: tforrest on Mar 06, '06 07:30:42AM
What if you have software that installs man pages in usr/local/man and usr/local/share/man?

[ Reply to This | # ]
Fix missing man pages for self-installed utilities
Authored by: Ben Smith on Mar 06, '06 07:39:38AM

Personally I solved this problem by adding this to /Users/<my user>/.bash_profile

MANPATH=$MANPATH:/usr/local/man

-Ben



[ Reply to This | # ]
Fix missing man pages for self-installed utilities
Authored by: jonbauman on Mar 07, '06 05:16:52PM

Setting the MANPATH variable is somewhat deprecated, so I'd recommend against it. The problem is that setting it completely overrides the nice heuristics that man uses to locate manual pages. This is particularly important if you are installing your own versions of standard utilities because if you set things up correctly, man will automatically choose the manpage for the version that comes first in your PATH.

I think the best solution is to make a symbolic link from /usr/local/share/man to /usr/local/man. Then, man's heuristics will correctly find the manpages for any command in /usr/local/bin.

---
jon

[ Reply to This | # ]