1832145 Members
2831 Online
110038 Solutions
New Discussion

Installing Man Pages???

 
SOLVED
Go to solution
Rob Smith
Respected Contributor

Installing Man Pages???

Recently I installed a couple of packages, lsof, gcc, but whenever I try to view the manpages I get a, "not found" response. I tried addding each program's man page directory to MANPATH but this does not work either. Is there anything else I am supposed to do?

TIA
Rob

Learn the rules so you can break them properly.
2 REPLIES 2
Curtis Larson
Trusted Contributor

Re: Installing Man Pages???

did you use the right manpath directory:
/usr/local/man/man1/gcc.1, you'd use /usr/local/man

did you set your manpath variable:
MANPATH="$MANPATH:/usr/local/man"

caps count and don't forget the ":"

did you export the manpath variable:
export MANPATH

did you modify the login scripts for your next login:

usually in the /etc/MANPATH file
Tim Malnati
Honored Contributor
Solution

Re: Installing Man Pages???

Many of the contributed utilities from the Software Porting and Archiving site load under /opt. What I generally do is add links from /usr/contrib/bin and /usr/contrib/man/ to the exectable files and the man pages that are loaded. The /usr/contrib directory structures are already part of the default system PATH and MANPATH. This makes it easier down the street when you want to upgrade any of these packages. It is generally preferred to not place these links under /usr/local where ther may be some security concerns (many shops don't allow /usr/local in anyone's PATH).