| View previous topic :: View next topic |
| Author |
Message |
Ant P. Veteran

Joined: 18 Apr 2009 Posts: 1123 Location: UK
|
Posted: Mon Feb 08, 2010 7:29 pm Post subject: Messed up manpages [solved] |
|
|
On one of my PCs, all the man pages are getting cut off abruptly. If I do "man man" it ends like this:
| Code: | SEE ALSO
apropos(1), whatis(1), less(1), groff(1), man.conf(5). (nlu+10
lines 221-254/254 (END) |
So far I've tried deleting /etc/man.conf then reinstalling but that did nothing, and I tried emptying everything in /var/cache/man too. The output of "man -d man" shows the same command on this as it does on a machine where it works. I'm guessing this is a configuration problem but I've no idea where to look now.
Last edited by Ant P. on Fri Feb 26, 2010 12:31 am; edited 1 time in total |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Feb 09, 2010 12:08 am Post subject: |
|
|
Please post the output of man -d man
and : echo "$LESSOPEN :: $LESS :: $PAGER" |
|
| Back to top |
|
 |
Ant P. Veteran

Joined: 18 Apr 2009 Posts: 1123 Location: UK
|
Posted: Tue Feb 09, 2010 12:59 am Post subject: |
|
|
man -d man:
| Code: | Reading config file /etc/man.conf
found man directory /usr/share/man
found man directory /usr/local/share/man
found man directory /usr/X11R6/man
found man directory /usr/local/man
found man directory /usr/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 as pager
using /usr/bin/lynx as browser
using /usr/bin/lynx -dump to dump HTML pages as text
adding /usr/local/share/man to manpath
adding /usr/share/man to manpath
adding /usr/share/binutils-data/x86_64-pc-linux-gnu/2.20/man to manpath
adding /usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.2/man to manpath
adding /usr/share/postgresql-8.4/man to manpath
no cat page stored because of nonstandard line length
using default preprocessor sequence
found tbl(1) directive
man:
not executing command:
(cd "/usr/share/man" && (echo ".ll 10.8i"; echo ".nr LL 10.8i"; echo ".pl 1100i"; /bin/cat '/usr/share/man/man1/man.1'; echo ".\\\""; echo ".pl \n(nlu+10") | /usr/bin/gtbl | /usr/bin/nroff -mandoc | /usr/bin/less) |
| Code: | ~ $ echo "$LESSOPEN :: $LESS :: $PAGER"
|lesspipe.sh %s :: -R -M --shift 5 :: /usr/bin/less |
|
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Feb 09, 2010 2:37 am Post subject: |
|
|
This in man -d man looks strange: | Code: | | /bin/cat '/usr/share/man/man1/man.1' |
Does that file even exist on your installation? /usr/share/man/man1/man.1
On all my boxes, the manpages are .bz2 |
|
| Back to top |
|
 |
Ant P. Veteran

Joined: 18 Apr 2009 Posts: 1123 Location: UK
|
Posted: Thu Feb 25, 2010 11:44 pm Post subject: |
|
|
(forgotten about this thread for a while)
Yes it's there, the md5sum is "5939d076a90b88e4bf5095653c3dc77e".
Anyway the "cut off" thing is happening after the end of the manpage contents (in place of where it usually has the footer) so it's only a cosmetic issue really. I think I'll just ignore it.
[Edit]
I figured out what was wrong: I'd been messing around with linking /bin/sh on that machine to /bin/dash, and for whatever reason that command printed by man -d has a "\n" that gets interpreted differently in bash. And of course /usr/bin/man has "sh" hardcoded into it...
But it's all fixed now - I just installed man-db instead and that doesn't have any problems. |
|
| Back to top |
|
 |
|