Results 1 to 14 of 14

Thread: Man pages not working3573 days old

  1. #1
    Living Large mlangdn's Avatar
    Join Date
    Feb 2003
    Location
    Western Kentucky
    Posts
    3,291
    Threads
    300

    Awards Showcase

    Real Name
    Michael Langdon
    Local Date
    05-23-2013
    Local Time
    03:10 PM

    Man pages not working

    [michael@localhost michael]$ man less
    sh: line 1: /usr/bin/less: No such file or directory
    Error executing formatting or display command.
    System command (cd /usr/share/man && (echo ".pl 1100i"; /usr/bin/bzip2 -c -d '/usr/share/man/man1/less.1.bz2'; echo; echo ".pl \n(nlu+10") | /usr/bin/gtbl | /usr/bin/nroff -mandoc -c | /usr/bin/less -isrR) exited with status 127.
    No manual entry for less
    [michael@localhost michael]$


    This is what happened when trying to access man pages. Any man command request returns this.

    Anybody know what happened here? Could this be related to a freeze that happened last week and the subsequent error fix that Mandrake did?

  2. #2
    Hell's Very Own Grogan's Avatar
    Join Date
    Sep 2002
    Location
    Ontario, Canada
    Posts
    23,103
    Threads
    2409

    Awards Showcase

    Real Name
    Hugh Jorgen
    Local Date
    05-23-2013
    Local Time
    05:10 PM
    Heheh, it appears that you are missing the less program itself. The man program uses that to display the text. It does that... actually initiates a bunch of shell commands and the end result is a scrollable man page.

    Coincidence that it's the very program you're trying to read the man page for

    The program less probably comes in an rpm package of it's own. Go to your RPMS directory on the Mandrake CD and find it. Force it to install.

    P.S. Yes, I think you lost some data during that episode. You're only now starting to discover what's broken. Probably nothing that can't be fixed, as discovered.

  3. #3
    I hope you get it fixed! BobGuy's Avatar
    Join Date
    Sep 2002
    Posts
    2,747
    Threads
    432

    Awards Showcase

    Local Date
    05-23-2013
    Local Time
    04:10 PM
    Pull up a /dev/chair and lets see what you have.

    ls -la /usr/bin/less
    -rwxr-xr-x 1 root root 118 Feb 4 2003 /usr/bin/less*

    And

    rpm -qa | grep less
    less-381-1mdk
    lesstif-0.93.36-2mdk

    Do this as a user, if you get nothing then try it as su -, as the permissions may be all thats messed up.

    Thats what I have and 'less' works here, so yep sounds like yours is b0rked.

    Any man command request returns this.
    Sounds like you just don't have permission to open - use anything, but root would have if the packages are still there.
    BobGuyİ

    Thats my story and I'm sticking to it!

  4. #4
    Hell's Very Own Grogan's Avatar
    Join Date
    Sep 2002
    Location
    Ontario, Canada
    Posts
    23,103
    Threads
    2409

    Awards Showcase

    Real Name
    Hugh Jorgen
    Local Date
    05-23-2013
    Local Time
    05:10 PM
    Bob... top of the list. "sh: line1: /usr/bin/less: No such file or directory"

    I'm not just guessing here, that's a real clue.

    Yes, if he queries the rpm database the rpm will still show as being installed, because it indeed was. Useless... because files are missing.

  5. #5
    Living Large mlangdn's Avatar
    Join Date
    Feb 2003
    Location
    Western Kentucky
    Posts
    3,291
    Threads
    300

    Awards Showcase

    Real Name
    Michael Langdon
    Local Date
    05-23-2013
    Local Time
    03:10 PM

    Grogan and Bob,

    The packages are still there, but it does not work. After this episode, my Euphoria screensaver did not work and it was there. I fixed it by removing the packages for the screensavers, then re-installing the packages. I will do the same for the man pages and the less package, and any others that I find corrupted. Can't be too many as I have not noticed much wrong. Other than this, everything has been pretty smooth.

    Thanks Guys,

    Mike

  6. #6
    Hell's Very Own Grogan's Avatar
    Join Date
    Sep 2002
    Location
    Ontario, Canada
    Posts
    23,103
    Threads
    2409

    Awards Showcase

    Real Name
    Hugh Jorgen
    Local Date
    05-23-2013
    Local Time
    05:10 PM
    Mike, just start with the less package. No need to do Man, because the man program is indeed there.

    You may find other supporting files missing too, but cross that bridge when you come to it.

  7. #7
    Living Large mlangdn's Avatar
    Join Date
    Feb 2003
    Location
    Western Kentucky
    Posts
    3,291
    Threads
    300

    Awards Showcase

    Real Name
    Michael Langdon
    Local Date
    05-23-2013
    Local Time
    03:10 PM

    Ok, Thanks

  8. #8
    I hope you get it fixed! BobGuy's Avatar
    Join Date
    Sep 2002
    Posts
    2,747
    Threads
    432

    Awards Showcase

    Local Date
    05-23-2013
    Local Time
    04:10 PM
    Just curious Mike, what filesystem are you using?

    ext3, reisersfs etc?

    Yeah, Grogan I see what you mean now, I just did:

    $ cat /etc/shadow
    cat: /etc/shadow: Permission denied

    $ cat /usr/bin/less
    #!/bin/sh

    #export LESSCHARSET="${LESSCHARSET:-utf-8}"
    export LESSCHARSET="${LESSCHARSET:-koi8-r}"
    exec less.bin "$@"
    $

    Learn something new everyday, thanks for clarifying.

  9. #9
    Hell's Very Own Grogan's Avatar
    Join Date
    Sep 2002
    Location
    Ontario, Canada
    Posts
    23,103
    Threads
    2409

    Awards Showcase

    Real Name
    Hugh Jorgen
    Local Date
    05-23-2013
    Local Time
    05:10 PM
    Huh... learn something new every day indeed. Your "less" isn't even a program. It's a shell script that sets variables and runs less.bin (the real program)

    Fucking Mandrake, I tell ya

    If less.bin is present, mlangdn could probably just paste the contents of your /usr/bin/less script, save it as /usr/bin/less and chmod +x it.

  10. #10
    BBF Birthday Girl ! NightShade737's Avatar
    Join Date
    Jun 2003
    Location
    Worcs, UK
    Posts
    373
    Threads
    20
    Local Date
    05-23-2013
    Local Time
    09:10 PM
    Er..... shouldn't it be

    more filename | less

    ?

    NS

  11. #11
    Hell's Very Own Grogan's Avatar
    Join Date
    Sep 2002
    Location
    Ontario, Canada
    Posts
    23,103
    Threads
    2409

    Awards Showcase

    Real Name
    Hugh Jorgen
    Local Date
    05-23-2013
    Local Time
    05:10 PM
    Originally posted by NightShade737
    Er..... shouldn't it be

    more filename | less

    ?

    NS
    less is a replacement for more, that allows scrolling in both directions.

    You can simply type less filename or whatevercommand | less to control output.

    There is no need to use both more and less in the same command.

  12. #12
    BBF Birthday Girl ! NightShade737's Avatar
    Join Date
    Jun 2003
    Location
    Worcs, UK
    Posts
    373
    Threads
    20
    Local Date
    05-23-2013
    Local Time
    09:10 PM
    Eh? Oh, I phrased that really badly, and used the wrong command.

    What I meant was.....

    ls -a | less

    that makes more sence. But anyway, the actual point of my post was, doesn't he need a " | " in there?

    NS

  13. #13
    Hell's Very Own Grogan's Avatar
    Join Date
    Sep 2002
    Location
    Ontario, Canada
    Posts
    23,103
    Threads
    2409

    Awards Showcase

    Real Name
    Hugh Jorgen
    Local Date
    05-23-2013
    Local Time
    05:10 PM
    Originally posted by NightShade737
    Eh? Oh, I phrased that really badly, and used the wrong command.

    What I meant was.....

    ls -a | less

    that makes more sence. But anyway, the actual point of my post was, doesn't he need a " | " in there?

    NS
    Not in this case, because he was trying to get a long listing for the less program itself (to check for it's presence, and permissions)

    bash-2.05b$ ls -l /usr/bin/less
    -rwxr-xr-x 1 root bin 104324 Feb 14 02:40 /usr/bin/less

    But yes, if using less to manage the output of a directory listing, it would of course need a pipe.

  14. #14
    Living Large mlangdn's Avatar
    Join Date
    Feb 2003
    Location
    Western Kentucky
    Posts
    3,291
    Threads
    300

    Awards Showcase

    Real Name
    Michael Langdon
    Local Date
    05-23-2013
    Local Time
    03:10 PM

    Bob, file system is ext3.

    No man command has worked as of yet. It returns the same as for less in a previous post. I have tried less, more, whatis...etc... Nothing anywhere. If I type "man catshit", it just returns "no manual entry for catshit".

    Gonna backup some downloaded stuff and format, then re-install.

    Takin' the easy way out.

    Mike

    :rollout:

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •