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: tirerim on Mar 06, '06 07:44:17AM
Alternatively, you can just set your MANPATH manually. In my .cshrc file, I have

setenv MANPATH /usr/local/man:/usr/share/man:/usr/X11R6/man:/usr/local/share/man:/usr/local/clamXav/man:/opt/local/share/man

which simply tells man to look in all of those directories. This also takes care of things that make their own subdirectories in /usr/local, the DarwinPorts directory hierarchy (/opt), etc. Note that for bash users, you'll have to use something like

export MANPATH=/usr/local/man:/usr/share/man:/usr/X11R6/man:/usr/local/share/man:/usr/local/clamXav/man:/opt/local/share/man

instead.

[ Reply to This | # ]

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 | # ]
Fix missing man pages for self-installed utilities
Authored by: vogunaescht on Mar 06, '06 09:41:45AM
Or put the same environment variable into ~/.MacOSX/environment.plist, which might look something like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>MANPATH</key>
        <string>/usr/local/man:/usr/X11R6/man:/usr/share/man</string>
</dict>
</plist>
Change the MANPATH string to your likeing.

[ Reply to This | # ]