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: artemio on Mar 06, '06 08:49:08AM
Probably the most flexible option is to leave alone /usr/share/misc/man.conf and the $MANPATH variable, move all the stuff in /usr/local/man/ (if any) to the corresponding place in /usr/local/share/man/, and then

cd /usr/local/
rm -r man
sudo ln -s share/man man

This turns /usr/local/man into a symlink to /usr/local/share/man/. This way, if a third party app needs to install something in /usr/local/man/, it'll be fooled into installing it in the "official" location /usr/local/share/man/.

Cheers,

Artemio

P.S. To transfer all the stuff in /usr/local/man/ to /usr/local/share/man/, try

cd /usr/local/man
tar czvf - . | tar xzvf - -C ../share


[ Reply to This | # ]
Fix missing man pages for self-installed utilities (correction)
Authored by: artemio on Mar 06, '06 08:54:52AM
There was a typo in the instructions I gave to transfer all the stuff in /usr/local/man/ to /usr/local/share/man/. The correct command is:

cd /usr/local
tar czvf - man/ | tar xzvf - -C share


[ Reply to This | # ]