|
|
Where does OS X store its man pages?
|
|
|
|
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status:
Offline
|
|
For some strange reason I don't have any man pages on my PowerBook. For example, when I do 'man ls' I just get the message 'No manual entry for ls'. On my g/f's PowerBook with the exact same OS X version (10.4.3) the man pages are fine. I was wondering if I could just copy over a file or folder that holds the man page information, but I couldn't find anything that looked like it. Can somebody here tell me what file or folder I have to copy over to get my man pages back? I'd really prefer to do it this way that reinstalling the entire OS just to get a few man pages back...
|
•
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Jan 2002
Location: Durham, NC
Status:
Offline
|
|
They seem to primarily be in [FONT="Courier New"]/usr/share/man/[/FONT] and [FONT="Courier New"]/usr/local/man/[/FONT]. People in the Unix forum might be able to tell you if you need to do anything more important than just cp -R them over.
(
Last edited by slugslugslug; Dec 10, 2005 at 03:24 PM.
)
|
|
|
|
|
|
|
|
|
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status:
Offline
|
|
Thanks. I'll take it over there.
|
•
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Dec 2001
Status:
Offline
|
|
You should try:
sudo /usr/libexec/makewhatis
|
|
|
|
|
|
|
|
|
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status:
Offline
|
|
mac:~ simon$ sudo /usr/libexec/makewhatis
makewhatis: : No such file or directory
|
•
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status:
Offline
|
|
Originally Posted by Simon
mac:~ simon$ sudo /usr/libexec/makewhatis
makewhatis: : No such file or directory
Well I've never heard of `makewhatis` but I've got one in /usr/libexec/ (Mac OS X 10.4.3).
Similar to the $PATH environment variable, used by the shell to search for executable programs, `man` uses $MANPATH to find man pages... This is all figured out internally through some system configs and a few other magic shell variables, so I never even bother with setting a $MANPATH. Your culprit may be a $MANPATH that is limiting where `man` is looking.
Check out your $MANPATH and see if this could be the case. My user's is showing as empty:
If you get a result other than that, then issue an `unset MANPATH` and try to view the manpage again...
|
"In Nomine Patris, Et Fili, Et Spiritus Sancti"
|
|
|
|
|
|
|
|
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status:
Offline
|
|
My manpath was set to some garbage like /usr/lib:/usr/x11R6. As soon as I did a MANPATH='' everything was back to normal. Unfortunately everytime I opened a new bash shell window I got the bad manpath back. So I added the MANPATH='' statement to my .bashrc. Now everything is fine. Thanks.
|
•
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|