Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed iftop on Mac OS X 10.7 from source but the installer didn't copy the man page to where it should be. I have no idea where it should be either. Does anyone know where I should cp it to?

I found this thread http://arstechnica.com/civis/viewtopic.php?f=19&t=527075 but as you can see no one actually answers the question.

echo $MANPATH

returns nothing by the way.

share|improve this question
    
You can pass --path to man to show the path of a page instead of the page itself, which can quickly reveal where most pages are kept (e.g. man --path man). For a more extensive discussion of where man pages can be, read "Search Path For Manual Pages” in man’s man page. – duozmo Feb 19 at 3:41
    
My previous comment now has a broken link, as Apple appears to removed man pages from their developer library on the web, but just type man man to view the page locally. – duozmo yesterday
up vote 4 down vote accepted

The man pages on MacOS X are located in /usr/share/man.

Checking a nearby system, the $MANPATH variable's contents look like: /usr/share/man:/usr/local/share/man:/usr/X11/share/man

As for the application you compiled, how did you install the binary? Was this installed from a basic tarball?

share|improve this answer
    
Followed the ./configure && make in the instructions. Thanks for the reply. I had found the answer before I posted my own answer but I had to wait 8 hours cos I'm new. – Jez Caudle May 24 '12 at 10:18

As mentioned above - the path is /usr/share/man

As an option - you can install iftop using homebrew - then it will store man pages in /usr/local/Cellar/iftop/0.17/share/man

And to specify a right path to man pages during the install from sources - you can pass --mandir= parameter to ./configure script

i.e. something like

./configure --disable-debug --prefix=/usr/local --mandir=/usr/share//man and then do make install

share|improve this answer

I found a link to someone writing a script to convert man pages to pdf so they could read them on their iPad.

The location of man pages on OS X is:

/usr/share/man/

share|improve this answer

On Mac OS X, the /private/etc/manpaths file is the default file that will tell man where to look for manpages.

On my machine, it contains two paths:

/usr/share/man /usr/local/share/man

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.