VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: man not finding all manual pages  (Read 1818 times)

Tigerwolf

  • Vectorite
  • ***
  • Posts: 152
man not finding all manual pages
« on: October 24, 2007, 10:17:50 pm »

Lots of packages put stuff in /usr/share/man/*  and /usr/local/share/man/* directories.

"Man" isn't finding them.   
"Apropos" does find them after doing a makewhatis.  So it seems working as expected.

Both directories are listed in /usr/lib/man.conf, so it's like man's not reading that.   Even forcing with
   -C /usr/lib/man.conf   doesn't help.  Manually exporting a MANPATH=<directory> will work, so it's not an issue with page formatting.

Running 'set' from a shell shows"

MANPATH=:/usr/lib/java/man:/usr/lib/qt/doc/man:/opt/seamonkey/man:/usr/lib/java/man:
/usr/lib/qt/doc/man:/opt/seamonkey/man

None of those 'odd' directories appear in /usr/lib/man.conf.   They do not appear in /etc/profile, user .profile, or .bashrc, or in any of the startup scripts under /etc/rc.d/.    I can't seem to find where those are coming from.

So...
1.  What's actually setting the MANPATH ?
2.  Why is man ignoring the directories specified in /usr/lib/man.conf ?
Logged
=^_^=  Tigerwolf

Running: Vector Linux 5.8 Standard   12-16-2006

silentstone

  • Member
  • *
  • Posts: 25

I'm having the same problem. 

"man -k <keyword>" doesn't find man pages in /usr/share/man directories, despite /usr/share/man being in /usr/lib/man.conf.  I tried "makewhatis /usr/share/man", and this successfully built a whatis database in that folder.  However, "apropos" "man -k" and "echo $MANPATH" still miss /usr/share/man

/usr/lib/man.conf is the only man.conf file on the system that isn't a manpage for man.conf  :)

Oddly, the "man -d" command, which is supposed to list the directories searched by man, include /usr/share/man...
Code: [Select]
root:$ man -d           
Reading config file /usr/lib/man.conf
found man directory /usr/man
found man directory /usr/local/man
found man directory /usr/local/share/man
found man directory /usr/share/man
found man directory /usr/X11R6/man
found man directory /opt/postgresql/man
found man directory /opt/seamonkey/man
found manpath map /bin --> /usr/share/man
found manpath map /sbin --> /usr/share/man
found manpath map /usr/bin --> /usr/share/man
found manpath map /usr/sbin --> /usr/share/man
found manpath map /usr/local/bin --> /usr/local/share/man
found manpath map /usr/local/sbin --> /usr/local/share/man
found manpath map /usr/X11R6/bin --> /usr/X11R6/man
found manpath map /usr/bin/X11 --> /usr/X11R6/man
found manpath map /usr/bin/mh --> /usr/share/man

using /usr/bin/less -is as pager

using firefox as browser

using /usr/bin/lynx -dump to dump HTML pages as textWhat manual page do you want?
Logged

lagagnon

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1922
Re: man not finding all manual pages
« Reply #2 on: January 03, 2008, 09:37:31 am »

Try adding "/usr/share/man" to "export MANPATH line in the file /etc/profile .
Logged
"As people become more intelligent they care less for preachers and more for teachers". Robert G. Ingersoll

Triarius Fidelis

  • Vecteloper
  • Vectorian
  • ****
  • Posts: 2399
  • Domine, exaudi vocem meam
    • my website
Re: man not finding all manual pages
« Reply #3 on: January 03, 2008, 09:41:19 am »

IMO, /usr/share/man and /usr/share/info should be symbolic links to their /usr eqvs.
Logged
"Leatherface, you BITCH! Ho Chi Minh, hah hah hah!"

Formerly known as "Epic Fail Guy" and "Döden" in recent months