SLACKWARE 12.0 distro:
Then, this is the current state of the system:
Code:
root@darkstar:~# locate mplayer.1
/usr/local/share/man/man1/mplayer.1
From /etc/profile (the line was commented by me):
#export MANPATH=/usr/local/man:/usr/man
From /usr/lib/man.conf
MANPATH /usr/man
MANPATH /usr/share/man
MANPATH /usr/local/man
MANPATH /usr/local/share/man
MANPATH /usr/X11R6/man
#
MANPATH_MAP /bin /usr/share/man
MANPATH_MAP /sbin /usr/share/man
MANPATH_MAP /usr/bin /usr/share/man
MANPATH_MAP /usr/sbin /usr/share/man
MANPATH_MAP /usr/local/bin /usr/local/share/man
MANPATH_MAP /usr/local/sbin /usr/local/share/man
MANPATH_MAP /usr/X11R6/bin /usr/X11R6/man
MANPATH_MAP /usr/bin/X11 /usr/X11R6/man
MANPATH_MAP /usr/bin/mh /usr/share/man
#
Current path used by man:
root@darkstar:/etc# man -w
/usr/local/share/man:/usr/share/man:/usr/man:/usr/lib/java/man:/usr/share/texmf/man:/usr/local/man:/usr/X11R6/man
Current MANPATH enviroment variable contents:
root@darkstar:/etc# echo $MANPATH
:/usr/lib/java/man:/usr/share/texmf/man
Notice the ':' starting the line, as pointed out by bathory.
The mplayer installer did this:
Allocated its man file in /usr/local/share/man/man1/mplayer.1. Then it modified /etc/profile, adding the line
MANPATH /usr/local/share/man/man1
I think, if 'man mplayer' did not output the manual it was due to strange behaviour on the part of man and its path searching mechanism, and the mplayer installer is not to be blamed. These are notes to myself rather than any other thing. Anyways,
The solution:
I commented out the line 'export MANPATH=/usr/local/man:/usr/man'
Now 'man mplayer' outputs the manual. Of course, this is only one of several possible fixes and could not be done without the generous help of LQers. Regards.