[lug] man pages RH 7.2

Gary Hodges Gary.Hodges at noaa.gov
Thu Oct 25 09:00:52 MDT 2001


"D. Stimits" wrote:

> Gary Hodges wrote:
> >
> > "D. Stimits" wrote:
> >
> > > Gary Hodges wrote:
> > > >
> > > > "D. Stimits" wrote:
> > > >
> > > > > Gary Hodges wrote:
> > > > > >
> > > > > > I have a new install of RH 7.2, and I don't have any man pages.  I
> > > > > > suppose a link(s) are missing for some reason, but I'm not sure where to
> > > > > > look.  The man pages are there, I just can't access them with man.
> > > > >
> > > > > Try the command "manpath". See what your path is. Assuming the path is
> > > > > ok, try as root, see if maybe it is just a permissions problem. Try to
> > > > > cd with a non-root user to the directory of a man page.
> > > >
> > > > The result of manpath is /usr/man .  When I look in /usr/man that are two
> > > > directories (man1 and man3) that each contain man pages of apps I have loaded
> > > > since the initial install.  All the man pages are located /usr/share/man .
> > > > Should I move the contents of the /usr/man pages to /usr/share/man and then
> > > > create links to /usr/share/man , or maybe it would just be easier to change
> > > > my manpath.
> > >
> > > The /usr/share/ stuff is the "modern" accepted directory, or
> > > /usr/local/share/, for a lot of things. Add extra directories beyond
> > > what you now have by editing /etc/man.config. I recommend making sure it
> > > searches (as a minimum):
> > > /usr/share/man
> > > /usr/local/man
> > > /usr/X11R6/man
> > > /usr/man
> > > /usr/lib/perl5/man
> > > (possibly /usr/local/share/man)
> >
> > Hmmm.  The following is already in my man.config file:
> >
> > MANPATH /usr/share/man
> > MANPATH /usr/X11R6/man
> > MANPATH /usr/local/man
> > MANPATH /usr/kerberos/man
> > MANPATH /usr/lib/perl5/man
> > MANPATH /usr/man
>
> Is the file /etc/man.config readable by all users? See if a regular user
> can "cat /etc/man.config". If it can, you might need to run man with
> "strace -oman.log man whatever", then view man.log. Most of the time you
> see a series of default paths and files being checked, often they don't
> exist and this is expected. But near the end, you'll see some failure
> that is not expected.

Thanks for your persistence in this thread.  I've just spent a half hour playing
around with your suggestions.  Yes, the file man.config can be seeing by a regular
user.  After running with the strace option several times, the best I can tell is the
MANPATH fields are not being read from the man.config file.  I can rearrange the
search order MANSECT and those changes are reflected in the created man.log file, but
changes to MANPATH don't seem to make any difference.  I'm not seeing any references
to this in google searches -- don't know if that means anything though.  It's a bit
long, but I'm including the results of "strace -oman.log man man" at the end of this
post.

Cheers,
Gary

~>more man.log
execve("/usr/bin/man", ["man", "man"], [/* 35 vars */]) = 0
uname({sys="Linux", node="space1", ...}) = 0
brk(0)                                  = 0x8058aa8
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
x40017000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=74108, ...}) = 0
old_mmap(NULL, 74108, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3)                                = 0
open("/lib/i686/libc.so.6", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\307\1"..., 1024) = 102
4
fstat64(3, {st_mode=S_IFREG|0755, st_size=5780406, ...}) = 0
old_mmap(NULL, 1291080, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4002b000
mprotect(0x4015d000, 37704, PROT_NONE)  = 0
old_mmap(0x4015d000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x13
1000) = 0x4015d000
old_mmap(0x40163000, 13128, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON
YMOUS, -1, 0) = 0x40163000
close(3)                                = 0
munmap(0x40018000, 74108)               = 0
brk(0)                                  = 0x8058aa8
brk(0x8058ad0)                          = 0x8058ad0
brk(0x8059000)                          = 0x8059000
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2601, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40
018000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2601
brk(0x805a000)                          = 0x805a000
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
open("/usr/lib/locale/en_US/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=173408, ...}) = 0
mmap2(NULL, 173408, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40167000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_MESSAGES", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0
mmap2(NULL, 57, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3)                                = 0
getuid32()                              = 500
geteuid32()                             = 500
getgid32()                              = 500
getegid32()                             = 500
ioctl(0, 0x5401, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, 0x5401, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, 0x5413, {ws_row=85, ws_col=80, ws_xpixel=499, ws_ypixel=1109}) = 0
open("/etc/man.config", O_RDONLY)       = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=3914, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40
019000
read(3, "#\n# Generated automatically from"..., 4096) = 3914
brk(0x805e000)                          = 0x805e000
brk(0x8062000)                          = 0x8062000
brk(0x8066000)                          = 0x8066000
brk(0x806a000)                          = 0x806a000
brk(0x806e000)                          = 0x806e000
brk(0x8072000)                          = 0x8072000
brk(0x8076000)                          = 0x8076000
brk(0x807a000)                          = 0x807a000
brk(0x807e000)                          = 0x807e000
brk(0x8082000)                          = 0x8082000
brk(0x8086000)                          = 0x8086000
brk(0x808a000)                          = 0x808a000
brk(0x808e000)                          = 0x808e000
read(3, "", 4096)                       = 0
stat64("/usr/man/en_US", 0xbfff9650)    = -1 ENOENT (No such file or directory)
stat64("/usr/man/en", 0xbfff9650)       = -1 ENOENT (No such file or directory)
stat64("/usr/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/lib/perl5/man/en_US", 0xbfff9650) = -1 ENOENT (No such file or dire
ctory)
stat64("/usr/lib/perl5/man/en", 0xbfff9650) = -1 ENOENT (No such file or directo
ry)
stat64("/usr/lib/perl5/man", 0xbfff9680) = -1 ENOENT (No such file or directory)
open("/usr/man/man1/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(0x4, 0x2, 0x1, 0x4)             = 0
brk(0x8090000)                          = 0x8090000
getdents64(0x4, 0x808d238, 0x1000, 0)   = 112
getdents64(0x4, 0x808d238, 0x1000, 0)   = 0
close(4)                                = 0
open("/usr/man/man1/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(0x4, 0x2, 0x1, 0x4)             = 0
getdents64(0x4, 0x808d278, 0x1000, 0)   = 112
getdents64(0x4, 0x808d278, 0x1000, 0)   = 0
close(4)                                = 0
open("/usr/man/cat1/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/man8/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/cat8/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/man2/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/cat2/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/man3/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(0x4, 0x2, 0x1, 0x4)             = 0
getdents64(0x4, 0x808d398, 0x1000, 0)   = 112
getdents64(0x4, 0x808d398, 0x1000, 0)   = 0
close(4)                                = 0
open("/usr/man/man3/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(0x4, 0x2, 0x1, 0x4)             = 0
getdents64(0x4, 0x808d3d8, 0x1000, 0)   = 112
getdents64(0x4, 0x808d3d8, 0x1000, 0)   = 0
close(4)                                = 0
open("/usr/man/cat3/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/man4/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/cat4/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/man5/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/cat5/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/man6/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/cat6/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/man7/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/cat7/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/man9/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/cat9/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/mantcl/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOEN
T (No such file or directory)
open("/usr/man/cattcl/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOEN
T (No such file or directory)
open("/usr/man/mann/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/catn/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/manl/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/catl/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/manp/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/catp/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/mano/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/man/cato/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en_US/man", O_RDONLY) = -1 ENOENT (No such file or direc
tory)
open("/usr/share/locale/en_US/LC_MESSAGES/man", O_RDONLY) = -1 ENOENT (No such f
ile or directory)
open("/usr/share/locale/en/man", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=5210, ...}) = 0
mmap2(NULL, 5210, PROT_READ, MAP_PRIVATE, 4, 0) = 0x4001a000
close(4)                                = 0
write(2, "No manual entry for man\n", 24) = 24
_exit(1)                                = ?






More information about the LUG mailing list