Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 8 of 8
  1. #1
    wyvern is offline Registered User
    Join Date
    Sep 2001
    Location
    University of Betelgeuse V
    Posts
    268
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help, my man pages don't work!

    When i type, for instance, man sshd
    this is what comes out:
    /usr/bin/man: illegal option -- C
    man, version 1.1

    There are no aliases set for man.
    I'm using bash. It doesn't work in tcsh either. It worked in 10.1.5, I'm using 10.2 now. (6c115.) Any ideas?

    Oh, and this is my MANPATH:
    /sw/share/man:/sw/man:/usr/local/share/man:/usr/local/man:/usr/share/man:/usr/X11R6/man

  2. #2
    symphonix's Avatar
    symphonix is offline Scratch & Sniff Committee
    Join Date
    Jul 2001
    Location
    The Australian Jungles
    Posts
    4,025
    Thanks
    2
    Thanked 6 Times in 5 Posts
    Have a snoop through /etc/man.conf, perhaps?
    - iMac G5 1.8GHZ 17" | SuperDrive | 160GB | 512MB | Airport Extreme | Bluetooth Keyboard & Mouse | Wacom Intuos II
    - Pentax *ist DL - JVC MiniDV Camcorder - Airport Express - iPod Nano 1gb white

  3. #3
    wyvern is offline Registered User
    Join Date
    Sep 2001
    Location
    University of Betelgeuse V
    Posts
    268
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it's actually manpath.config and it looks fine to me... here it is, in its entirety:

    # $FreeBSD: src/gnu/usr.bin/man/manpath/manpath.config,v 1.18 2002/03/23 00:04:15 brian Exp $
    #
    # This file is read by manpath(1) to configure the mandatory manpath,
    # optional manpath and to map each path element to a manpath element.
    # The format is:
    #
    # MANDATORY_MANPATH manpath_element
    # OPTIONAL_MANPATH manpath_element
    # MANPATH_MAP path_element manpath_element
    # MANLOCALES locale1 locale2 ...
    #
    # every automatically generated MANPATH includes these fields
    #
    MANDATORY_MANPATH /usr/share/man
    #
    # check if the directory exists and if it does, add it to MANPATH
    #
    OPTIONAL_MANPATH /usr/local/lib/perl5/5.6.1/man
    #
    # set up PATH to MANPATH mapping
    #
    MANPATH_MAP /bin /usr/share/man
    MANPATH_MAP /usr/bin /usr/share/man
    MANPATH_MAP /usr/local/bin /usr/local/man
    MANPATH_MAP /usr/X11R6/bin /usr/X11R6/man
    #
    # set man locales, if needed
    #
    #MANLOCALES ru_RU.KOI8-R

  4. #4
    sao
    sao is offline member
    Join Date
    Aug 2001
    Location
    Singapore
    Posts
    176
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You have Fink installed.

    If you run:

    % which man

    It will tell you:

    /sw/bin/man

    In this case, either comment out in your .cshrc file

    # /sw/bin/init.csh

    or check again your MANPATH. I'm using Fink also and my MANPATH looks as follows:

    Code:
    151 [Sao @/Users/pm] % printenv MANPATH
    /sw/share/man:/sw/man:/Users/pm/man:/usr/local/share/man:/usr/share/man:/usr/X11R6/man

    Cheers...
    Somewhere, over the rainbow,
    way up high...

  5. #5
    wyvern is offline Registered User
    Join Date
    Sep 2001
    Location
    University of Betelgeuse V
    Posts
    268
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, I certainly do have fink installed. I do not see how the changes made to the manpath by fink would damage man at all... all it does is add /sw/share/man:/sw/man: and /usr/X11R6/man to the path. You can look for yourself: less /sw/bin/init.sh.
    My manpath looks just the same as yours except for /Users/pm.

  6. #6
    sao
    sao is offline member
    Join Date
    Aug 2001
    Location
    Singapore
    Posts
    176
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yikes! I didn't realize you're using Jaguar.

    Of course.

    $ man -C
    man: illegal option -- C
    man, version 1.1

    Unssuported.

    Try again uncommenting fink path in the .cshrc file, just to see if you get man back.


    Cheers...
    Somewhere, over the rainbow,
    way up high...

  7. #7
    wyvern is offline Registered User
    Join Date
    Sep 2001
    Location
    University of Betelgeuse V
    Posts
    268
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, i have been talking with people on #fink and learned a lot about how fink works with man pages. It installs a custom /sw/bin/fink which uses the "manconf" wrapper for /usr/bin/man which uses a -C option to inform man of fink's man page locations. However, the new darwin man in jag doesn't accept -C. So, there is a package "man" being worked on for fink which will install GNU man (not darwin man, though darwin man will still of course be in /usr/bin/) in /sw/bin.

  8. #8
    amcdaidtc is offline Registered User
    Join Date
    Jan 2003
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking

    Just sudo pico /sw/bin/man and change the line '/usr/bin/man -C /sw/etc/man.conf $*' to '/usr/bin/man -m /sw/etc/man.conf $*'.

    This will appease jaguar's man.

 

 

Similar Threads

  1. many html pages don't work
    By pedz in forum Mac OS X System & Mac Software
    Replies: 2
    Last Post: May 22nd, 2003, 11:51 PM
  2. Can't display OS X man pages
    By willmac in forum Unix & X11
    Replies: 2
    Last Post: May 14th, 2003, 02:32 AM
  3. JavaScript on text links... Doesn't work on local pages?
    By MDLarson in forum Design & Media
    Replies: 3
    Last Post: April 13th, 2003, 07:08 PM
  4. man pages
    By Dradts in forum Mac OS X System & Mac Software
    Replies: 2
    Last Post: November 23rd, 2001, 03:54 PM
  5. Missing chown & misleading man pages
    By ntwyman in forum Mac OS X System & Mac Software
    Replies: 4
    Last Post: July 6th, 2001, 02:49 PM

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
  •