Link to home
Start Free TrialLog in
Avatar of Basil000
Basil000

asked on

Where do I set the manpath

After installing QT, for some reason, my manpath is /usr/local/qt/man.  Where/what do I edit to add in /usr/man, /usr/local/man, and all that stuff? (right now I can only do man moc, and nothing else, but the files are all there.)
Avatar of Recall
Recall

In my RH Linux installation the manpaths are defined in /etc/man.config.  Under the manpath section mine reads

MANPATH /usr/man
MANPATH /usr/local/man
MANPATH /usr/X11R6/man
MANPATH /usr/lib/perl5/man

Hope this helps

Avatar of Basil000

ASKER

I have that file, and it has those manpaths in it, but I still can't get any manpages.
Depending on your shell you could set:
For sh/bash (add to .basrc or .profile):
MANPATH=$MANPATH:/usr/local/man:/usr/X11R6/man
export MANPATH

For csh/tcsh (add to .cshrc or .tcshrc)
setenv MANPATH "$MANPATH:/usr/man:/usr/local/man"
and so on ...

Just log out and relogin ... should be working. Unless you didn't
install the man pages.
If you want to make the man pages available to all users, add:

MANPATH=$MANPATH:/usr/local/man etc etc

to your /etc/profile file.

Paul
That works Paul, just make it an answer now...
ASKER CERTIFIED SOLUTION
Avatar of paulmitch
paulmitch

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial