Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Where does OS X store its man pages?

Where does OS X store its man pages?
Thread Tools
Simon
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Dec 10, 2005, 08:48 AM
 
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...
     
slugslugslug
Mac Elite
Join Date: Jan 2002
Location: Durham, NC
Status: Offline
Reply With Quote
Dec 10, 2005, 01:41 PM
 
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. )
     
Simon  (op)
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Dec 12, 2005, 06:51 AM
 
Thanks. I'll take it over there.
     
Watson
Fresh-Faced Recruit
Join Date: Dec 2001
Status: Offline
Reply With Quote
Dec 13, 2005, 10:14 PM
 
You should try:
sudo /usr/libexec/makewhatis
     
Simon  (op)
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Dec 14, 2005, 01:33 AM
 
mac:~ simon$ sudo /usr/libexec/makewhatis
makewhatis: : No such file or directory

     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Dec 14, 2005, 02:51 PM
 
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:
Code:
[[email protected]: ~]$ echo $MANPATH
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"

     
Simon  (op)
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Dec 14, 2005, 03:31 PM
 
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 Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 02:06 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,