Professional Web Applications Themes

Activating a Mac OS X man path ? - Mac Programming

A newbie Mac OS X user has installed a command-line executable "myapp" in directory /usr/local/bin and the man page "myapp.1" for it in /usr/local/man/man1. He has set the search path by putting the line: set path = ( /usr/local/bin $path ) in his $HOME/.cshrc file and it works OK. The permissions for the entire man pathname are 755 but 'man myapp' returns a message saying the page isn't found. His /etc/manpath.config file includes the following lines: ----------------------------------- # 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 ----------------------------------- What else ...

  1. #1

    Default Activating a Mac OS X man path ?

    A newbie Mac OS X user has installed a command-line executable "myapp" in
    directory /usr/local/bin and the man page "myapp.1" for it in
    /usr/local/man/man1.

    He has set the search path by putting the line:
    set path = ( /usr/local/bin $path )
    in his $HOME/.cshrc file and it works OK.

    The permissions for the entire man pathname are 755 but 'man myapp'
    returns a message saying the page isn't found.

    His /etc/manpath.config file includes the following lines:
    -----------------------------------
    # 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
    -----------------------------------

    What else is needed to "activate" the new man path?

    Thanks for your help.

    Regards,
    Charles Sullivan


    Charles Guest

  2. #2

    Default Re: Activating a Mac OS X man path ?

    On Fri, 05 Mar 2004 12:29:09 GMT, Charles Sullivan wrote: 
     
     
     
     

    Is MANPATH already set? Try the commands

    echo $MANPATH
    echo $PATH
    /usr/bin/manpath

    to see if the results are consistent. Notice that /usr/bin/manpath
    prints a warning if MANPATH is set.


    --
    Dave Seaman
    Judge Yohn's mistakes revealed in Mumia Abu-Jamal ruling.
    <http://www.commoncouragepress.com/index.cfm?action=book&bookid=228>
    Dave Guest

  3. #3

    Default Re: Activating a Mac OS X man path ?

    On Fri, 05 Mar 2004 13:33:16 +0000, Dave Seaman wrote:
     




    >
    > Is MANPATH already set? Try the commands
    >
    > echo $MANPATH
    > echo $PATH
    > /usr/bin/manpath
    >
    > to see if the results are consistent. Notice that /usr/bin/manpath
    > prints a warning if MANPATH is set.[/ref]

    Good point - I hadn't thought to ask the user whether he had set a MANPATH
    variable. (Given his level of experience with Unix, I suspect he's never
    heard of it.)

    But assuming that's not the case, and given the (default) MANPATH_MAP
    entry in /etc/manpath.config, should one expect 'man myapp' to
    automatically search the new /usr/local/man once /usr/local/bin has been
    created? Or would doing something else, like rebooting or logging out/in
    or running /usr/bin/manpath, be required?

    BTW, I should have mentioned that he's running OS X version 10.26.

    Regards,
    Charles Sullivan


    Charles Guest

  4. #4

    Default Re: Activating a Mac OS X man path ?

    On Fri, 05 Mar 2004 14:13:26 GMT, Charles Sullivan wrote: 
     
    >>
    >> Is MANPATH already set? Try the commands
    >>
    >> echo $MANPATH
    >> echo $PATH
    >> /usr/bin/manpath
    >>
    >> to see if the results are consistent. Notice that /usr/bin/manpath
    >> prints a warning if MANPATH is set.[/ref][/ref]
     

    He's probably never heard of fink, either. Fink sets your MANPATH for
    you when you source the appropriate init file.
     

    Creating /usr/local/bin is not enough. It has to be in your PATH.
    That's why I included "echo $PATH" in the commands to check.
     

    I can't test it under 10.2.6, but it definitely works under 10.3.2.




    --
    Dave Seaman
    Judge Yohn's mistakes revealed in Mumia Abu-Jamal ruling.
    <http://www.commoncouragepress.com/index.cfm?action=book&bookid=228>
    Dave Guest

  5. Moderated Post

    Default Re: Activating a Mac OS X man path ?

    Removed by Administrator
    Charles Guest
    Moderated Post

  6. Moderated Post

    Default Re: Activating a Mac OS X man path ?

    Removed by Administrator
    Dave Guest
    Moderated Post

  7. Moderated Post

    Default Re: Activating a Mac OS X man path ?

    Removed by Administrator
    Charles Guest
    Moderated Post

  8. Moderated Post

    Default Re: Activating a Mac OS X man path ? - Epilog

    Removed by Administrator
    Charles Guest
    Moderated Post

Similar Threads

  1. Activating Contribute on a new PC
    By ChrisBowles76 in forum Macromedia Contribute Connection Administrtion
    Replies: 0
    Last Post: June 24th, 01:46 PM
  2. Activating
    By Tony in forum Windows Vista
    Replies: 2
    Last Post: April 8th, 11:26 AM
  3. Activating Hyperlinks in PDF
    By Barron_Chugg@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 2
    Last Post: May 19th, 05:46 PM
  4. Activating Acrobat 6/0
    By CJ_Luddeni@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 1
    Last Post: May 8th, 04:32 AM
  5. Activating RDS with W2K
    By Bruno CHARLOUP in forum ASP Database
    Replies: 0
    Last Post: August 6th, 06:22 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139