Man pages Help Mr. Wizard!!

I read some discussion from last summer, and I think that I did learn something, perhaps, maybe. . .? manpath is not an environment variable path sort of thing, but an executable designed by those who know better than us ordinary mortals? When I entered the command, I got this lisitng:
/usr/share/man:/usr/local/share/man. . .
from what I can tell from some books that I have been reading, it looks like the man pages are getting buried one directory, share, deeper than what is normally expected. Is that correct? If so, that might explain why installations such as Lua, Fink, Links or other Unix applications man pages are not showing up when one calls up a page for them.
Am I anywhere in the ball park?
Thank you for your time oh great and wise one.

Hi danuke,
In some systems man pages are in /usr/man/ and /usr/local/man/. But on MacOSX (and many other systems), pre-installed man pages are in /usr/share/man/, and the default location of man pages for user-installed commands is /usr/local/share/man/. But, some Unix apps will install man pages in /usr/local/man/ by default.
When I entered the command, I got this lisitng:
/usr/share/man:/usr/local/share/man. . .
What command did you enter? "echo $MANPATH" ?
If your MANPATH environment variable is set to the above value, do you know where MANPATH is set to the value? In your shell startup file?
On MacOSX, MANPATH is not set at all by default. Instead, default location of man pages are listed in /usr/share/misc/man.conf. If you look into this file, then you will find the default locations are /usr/share/man, /usr/local/share/man and /usr/X11R6/man. If MANPATH environment variable is set, however, the locations listed in man.conf will be ignored.
If you have already installed many man pages in /usr/local/man/, then
(a) add /usr/loal/man in /usr/share/misc/man.conf, and remove the definition of MANPATH in the shell startup file (such as .bash_profile) or wherever it may be set.
(b) or set MANPATH in your shell startup file
export MANPATH=/usr/share/man:/usr/local/share/man:/usr/local/man:/usr/X11R6/man
If you are installing a new Unix app from source and want to install its man page into /usr/local/share/man, then
./configure --mandir=/usr/local/share/man
will work in most of the cases.
PowerMacG4, PowerBookG4, iMac(C2D)   Mac OS X (10.4.8)  

Similar Messages

  • Makepkg: How to include source-bundled 'man pages' in the package?

    I'm trying to create a PKGBUILD for my own Python program.
    The source code has been packaged using Python's distutils.  Now, AFAICT distutils do not help you in any intelligent way to include a man page, so I just used a MANIFEST template to add the file to the source package.
    As for the PKGBUILD, I'm currently using an 'install -D -m0644' command (in the 'package' function) to copy the page from a directory under $srcdir to "${pkgdir}/usr/share/man/man1/${pkgname}.1.gz".
    However, seeing that makepkg has some built-in functions for compressing man pages, I figured that maybe it could deal with the proper placement too? My manual approach works nicely, but well, I figure the less of a hack job, the better.
    Thanks in advance - this is my first program and package build so I wanna get it right :)

    Thanks joyfulgirl - I guess I hadn't really thought through what kind of a deal makepkg is.
    At any rate, I figured I wouldn't have been the only Pythonista dealing with this issue and starting reading other people's setup scripts and according to Mutagen's setup.py putting desktop software man pages in 'share/man/man1' under the 'installation prefix' (a local variable, usually '/usr' or '/usr/local') can be considered a POSIX universal. Don''t know if this is reliable or just one hack replacing another, but it would mean being able to let Python's setup script take care of pretty much everything.

  • Man pages present, utilities absent? ("at" "talk" others?) [Solved]

    Hi,
    I wasn't sure where to post this so I'm gonna post it here.
    I've got man page entries from certain utiilities from the posix programmers manual, like "at" and "talk" but these utilities aren't actually installed,
    I've searched the pacman repository and I'm not actually sure these utilities are even provided as a package at all.
    Is there something that I can use like "at"?  (besides crontabs)
    Also, is this worth filing a bug report over?  (I searched the bugs list, I didn't find anything matching this description, although I only tried searching for "man pages" and "posix", and only checked the first page for "man pages".
    There's also some problems with viewing certain man-pages, like that dhcpcd man page where some of the characters are garbled, but I think this is probably a known bug relating to the switchover to UTF-8 as the standard locale.
    Thanks
    Last edited by pseudonomous (2008-10-08 23:30:57)

    The pkg 'man-pages' is directly taken from http://www.kernel.org/doc/man-pages/, which is funded by the Linux Foundation. You can see in the link that this pkg provides man pages for system-calls, glibc lib functions, device-files, file-formats and section 7 (miscellanea).
    Each pkg (e.g. util-linux-ng) is supposed to provide it's own manual pages. The 'POSIX programmer manuals' are provided to document the fact that how should these utilities behave or be implemented (if somebody wants to implement them...). This doesn't mean that these utilities are installed (they may be if their pkg is installed).
    Hope it helps !!
    P.S. POSIX is a *nix standardization effort.
    Last edited by Onwards (2009-01-17 18:35:11)

  • Correct location of man pages?

    Hi, I'm still pretty new at the command line. I installed growlnotify to play around with it, but the install script puts the man page in the wrong place (/usr/local/man/man1). I found a post that said it should be moved to /usr/local/share/man/man1, but that directory doesn't exist.
    Where is the correct place to move it?
    And the command should look like this, right?:
    $ mv /usr/local/man/man1/growlnotify.1 CORRECT-DIRECTORY
    Thanks for any help.
    Message was edited by: aaronfalls

    Both locations are both correct. /usr/local is the traditional location for may software packages get installed. But platform A may like /usr/local/man and platform B may like /usr/local/share/man. The Growl developer may have started life on a platform that used /usr/local/man and used that because it what they always use.
    Just add the path to the MANPATH environment variable.
    NOTE: fink.com puts their man pages in /sw/man. MacPorts.org uses both /opt/local/man and /opt/local/share/man, most likely based on what the OpenSource author choose, and not something MacPorts choose.
    My current MANPATH contains the following man page locations:
    /sw/share/man
    /usr/share/man
    /usr/local/share/man
    /usr/X11/man
    /sw/lib/perl5/5.8.8/man
    /usr/X11R6/man
    /sw/lib/perl5-core/5.8.6/man
    /sw/lib/perl5/5.8.6/man
    /opt/local/man
    /usr/local/man
    /opt/local/share/man

  • Completion of Man Pages in bash [SOLVED]

    Sorry to post such a trivial topic, but the irc channel was unfortunately less than helpful.
    I would like to have man pages tab complete, e.g. 'man pac\t' -> 'man pacman'.
    I do NOT want bash-completion. It is bloated, unnecessary, and contrary to my notion of the Arch Way. Unfortunately, documentation for the completion mechanism itself is scarce, and usually only shows how to do filetype completion. Google has not helpful, this forum recommends the bash-completion package. I have looked at the package itself to look for the pertinent function or command. Grepping for man, manpage, manual was unsuccessful, and the pertinent command is not readily apparent.
    Last edited by egan (2010-02-07 23:13:25)

    File completion should be good enough an example as you're replacing the list of files with a list of man pages - which are files in (below) a specific directory. Basically you need to write a function that returns the list of possibilities - which will be a list of man pages in this case.
    There's a good example (of the general mechanism) at this page http://www.debian-administration.org/ar … ion_part_2 as well as in books like "Learning The Bash Shell" by O'reilly. The man page also covers it (search for "Programmable Completion").

  • [SOLVED] Weird characters in man pages

    Hi,
    I remember I had read a similar thread, but I can't find it anymore.
    My problem is that man pages show strange characters and it's quite difficult to read at times. Here is an example:
    The traditional protocol for writing to someone is that the string <80><98>-o', either at the end of a line or on a line by itself, means that it's the other person's turn to talk.   The  string
           <80><98>oo' means that the person believes the conversation to be over.
    How do I fix this?
    Thanks.
    Last edited by finferflu (2008-02-27 17:53:23)

    Hello
    Here is a post on that problem if you can read french : http://forums.archlinuxfr.org/viewtopic.php?id=1084
    The members suggested to replace
    export LESSCHARSET="utf8"
    by
    export LESSCHARSET="UTF-8"
    in /etc/profile.
    One suggest to replace the line inside /etc/man.conf (from the gentoo wiki fr)
    NROFF iconv -f utf8 -t iso8859-1 | /usr/bin/nroff -Tlatin1 -c -mandoc
    I must admit that it doesn't work for me neither, and the above does not solve the problem. The file I tested is UTF-8 encoded and the LESSCHARSET defined to use UTF-8 gives badly accentuated characters (But at least printable characters). I think you will have to tweak a little these lines, but it's a start.
    Note that these lines suit (or don't suit) french man pages, but you may have to change the given charsets (especially latin1).
    Hope it will help you search
    Cilyan
    Edit: Ah, time to write the answer, the problem is solved !
    Edit2: The tip given by dyscoria does not work for me.
    Last edited by Cilyan (2008-02-27 18:01:57)

  • Man pages character encoding

    hi there,
    I just installed arch the weekend before.
    When I'm browsing the man pages I got problems with the character encoding. Most of them are displayed correctly, but sometimes there stands something like that: ?<80><98> instead of an character. As I do not know how to take an screenshot of an manpage without having an GUI installed I took a picture( XD ).
    [img=http://img411.imageshack.us/img411/184/dsc00185hj0.th.jpg]
    What configuration files do you need to help me? or do you know what my problem is, yet?
    thanks in advance

    I got a file named /etc/profile.pacnew
    what is the file I have to merge/replace it with?
    furthermore I got the problem with my manpages, which is solved by using unset MANPATH, but it will reappear after a reboot. These problems are probably connected.
    I just don't know which files I have to merge, remove or keep and so on.
    thx
    edit:
    ok replaced profile with profile.pacnew, as I can't remember that I changed something in the profile ever since. this solves the problem.
    does pacman tell me if it create such a .pacnew kinda file?
    Or how do I know that this files is existing, searching for all files with an .pacnew ending once in a while an mergen them with the old file?
    Last edited by okar (2008-03-18 18:08:29)

  • Man Pages when installing from source

    Hello,
    Whenever I can, I prefer to install applications by source following the steps:
    1. sudo ./configures --prefix=/usr/local/app-name
    2. sudo make
    3. sudo make install
    Everything runs fine (the only difference is the prefix parameter), but the applications is not automatically added to the PATH.
    If the app should be available to all users I create a symbolic link in /usr/bin pointing to /usr/local/app-name/bin. If it is just for a single user, I added the location to .bash_profile file of the user.
    Now I noticed that the man page of the app-name is unavailable, because the man page file is installed in /usr/local/app-name/share/man, in a location different from the rest.
    Can someone help me to fix the linkage of the man pages? Where does the man command reads from by default?
    Note: I prefer to install with --prefix to /usr/local/app-name because it's easier to remove the entire application when I don't need it.
    Thank you.

    Yeah... it worked like a charm!
    Thank you Zerwas.
    I marked as Solved but what if we want the man page to be available to all users without the need to edit .bash_profile? Can we create a symbolic link somewhere? (like I do with the /usr/bin) Certainly there's a default folder for man pages.
    Thanks again.

  • How to install man pages

    I recently installed Solaris 8 but did not install the man pages. Is it possible to install them now. If yes, then can I get from the install CD or can I download from sun's website.
    thanks for your help
    SG

    yes, you can install manpages after the installation is done.
    in the admintool you can choose software, then add.
    now you must specify your media (cd) and choose the software to install.

  • Convert terminal man page to pdf/export man page as pdf

    Hi there,
    Would anyone of you know how to export a man page as a pdf?
    -jns

    I've read several books on UNIX and the bash shell, and read the sections of several MacOSX books on UNIX. I started dabbling way way back, used Linux a bit on a rebuilt 486, installed some UNIX based stuff on pre-OS X Macs (there was Yellow Dog, and something else, whose name escapes me, I used on my 7100). Back then it was best to buy books. These days you can find anything you want to know along those lines on the internet. An excellent place to start:
    http://www.osxfaq.com/Tutorials/LearningCenter/index.ws
    Whenever I discover/see a useful command I add it to my "cheat sheet" along with an example and an explanation of it. I've organized my "cheat sheet" into categories that make sense to me, so that I can quickly find what I want.
    A really handy helpful application for this sort of thing is Clix from Rixstep:
    http://rixstep.com/4/0/clix/index.shtml
    It has various lists of commands, categories and explanations. Truly great software, and it's free.
    Francine
    Francine
    Schwieder

  • [Solved] Looking for arch's original man page color codes

    Hey everyone. I'm new to arch, and enjoying having everything begin to work out for me. One thing I was wondering though is what the color codes are that the man pages use before X is loaded or anything similar.
    Per the archwiki, I'm using the following to provide myself with colored man pages in urxvt:
    From .Xresources:
    ! colored man pages on rxvt-unicode-256color
    URxvt.colorIT: #87af5f
    URxvt.colorBD: #d7d7d7
    URxvt.colorUL: #87afd7
    This works, but it's not the same colorscheme as what arch starts out with initially. Anyone know what that colorscheme is? Or where I could look to find it?
    Last edited by zematis (2014-05-12 22:21:30)

    ayekat, thanks for the warm welcome!
    ayekat wrote:What article in the wiki?
    Here's the section in the Wiki I was referring to:
    https://wiki.archlinux.org/index.php/ma … vt-unicode
    karol wrote:Are you talking about using man pages before installing Arch or after installing but in the tty? Do you want to get the same colors in X?
    (I think) I was talking about the colors that the man pages are in the TTY. Specifically, my processes is:
    Boot up arch
    Login (X yet not started)
    Look at a man page - like the colors
    Startx - boot to window manager (i3)
    Look at a man page - want to change the colors
    That said, I liked the colors the man pages had before installing Arch quite a bit, and wouldn't object to learning what those are.
    ayekat wrote:Here you are changing how urxvt displays characters that are marked as underline, italic or bold; in particular you are changing their colours.
    The thing is, it won't only affect man pages viewed in urxvt, but everything.
    Makes sense
    ayekat wrote:As for changing the colour scheme of the manpage, you'll probably want to do it more properly, using the LESS_TERMCAP environment variables.
    I tried copying your format to my .bashrc and it worked great! So that's a win. Now I just need to figure out what the '\e[#;#;#m' numbers mean. I think I can probably handle that one on my own though. I found a resource here at:
    http://misc.flogisoft.com/bash/tip_colo … ng#colors2
    And it looks like it covers what I need to know.
    Thanks for your help!
    And honestly, at this point I think I can figure out what colorscheme I like given the info at hand. So I think we can call this one taken care of.
    If it interests anyone, I found a .sh script at the above link to display all 256 colors, then modified it to show the colors bolded, italicized etc. Here's the script:
    #!/bin/bash
    # This program is free software. It comes without any warranty, to
    # the extent permitted by applicable law. You can redistribute it
    # and/or modify it under the terms of the Do What The Fuck You Want
    # To Public License, Version 2, as published by Sam Hocevar. See
    # http://sam.zoy.org/wtfpl/COPYING for more details.
    for coltype in {0..8} ; do # Bold, Italic etc.
      for fgbg in 38 48 ; do #Foreground/Background
        for color in {0..256} ; do #Colors
          #Display the color
          echo -en "\e[(0${coltype});(${fgbg};5;${color}m ${color}\t\e[0m"
          #Display 10 colors per lines
          if [ $((($color + 1) % 10)) == 0 ] ; then
            echo #New line
          fi
        done
        echo #New line
        echo #New line
      done
      echo #New line
    done
    exit 0

  • Made fresh install man pages installed but does not work

    Hello there...I made an Arch Linux kdemod fresh install on my computer...I installed man-pages, but when I press 
    man name_of_command
    I get this error:
    bash: man: command not found
    Any help?

    Search the forum for this issue, its been brought up many times.

  • How do you get rsync to output a log file - don't understand the MAN pages sorry

    Hi There,
    Just trying to backup our web hosting server using rsync but can't figure out how to add a log file.
    The MAN pages say to use the following syntax:
    rsync -av --rsync-path="rsync --log-file=/tmp/rlog" src/ dest/
    But when I add that log command into my call like this:
    rsync -avz -e --rsync-path="rsync --log-file=/Users/username/rsync.log" ssh user@server:/home/ /Volumes/ServerVolume/webserver-backups/LIVE/home/
    I get errors and the command won't run - obviously my syntax is wrong somehow.
    Does anyone know how to add a log file to an rsync command?
    Any help would be much appreciated.

    If that second example is your specific entry then the answer is obvious.
    You need to more closely follow your quotes. All quotes have to be balanced (meaning that whenever you open a set of quotes there needs to be a matching close quote).
    In your case you state:
    rsync -avz -e --rsync-path="rsync --log-file=/Users/username/rsync.log"
    Note how your quotes are arranged... you're telling rsync that --rsync-path is "rsync --log-file=/Users/username/rsync.log", and there's no surprise that it fails.
    The correct format for this would be more like:
    rsync -avz -e --rsync-path="rsync" --log-file="/Users/username/rsync.log"
    (although I also question the validity of the --rsync-path command... are you sure that's right? because I'm not.
    Beyond that, though, the file arguments are incorrect - or, at least, there's a superflous 'ssh' command that's snuck its way in there somehow...

  • Man page or example for ddi_walk_devs

    Hallo,
    I'm developing a pseudo driver for Solaris 8 on UltraSparc 540 architecture.
    I would like walk trough the dev_info tree and store some infos about my machine. I know it is possible to do this at user level with the functions of libdevinfo library but unfortunately it can't work in a driver I've found the prototypes and short comments for a set of functions like ddi_walk_devs, ddi_get_child ... in the file
    /usr/include/sys/sunddi.h
    There are no documents or man pages about.
    Is there anyone who has already used this functions or could help me.
    Thank you very much for your help.
    al_vise

    Hi Al,
    ddi_walk_devs(device, function, argument);
    The first argument is a device node to start from.If you want to start from the top there is a ddi_root_node function.
    ddi_walk_devs then walks the device tree a level at a time, calling a function specified by you as the second arg. This function is passed a pointer to the device node, and your final pointer argument.
    However, before calling this, the device tree has to be locked. This used to be done with a reader_writer lock, now there is a new undocumented function to do it (i_ndi_block_device_tree_changes).
    The ddi_walk_devs function is deliberately not documented because it is not intended for use in leaf drivers, and its is subject to change (as per the tree locking).
    Hope that helps.
    Regards,
    Ralph
    SUN DTS

  • Man pages wont work

    i updated my system with pacman and now when i try to use a man page i get this:
    bash: man: command not found
    and help to get man pages working again would be much appriciated
    nevermind i got it fixed i just reinstalled man-db and man-pages
    Last edited by thoron (2009-04-04 21:27:08)

    Also make sure you merge your /etc/profile{,.pacnew} files.

Maybe you are looking for

  • CS6 Photoshop crashes when trying to use type tool or opening up .psd files. Any ideas on how to fix it???

    I have Adobe CS6 Design Standard (MAC). I have had it about a year and a half and use it a ton! Just yesterday while I was using Photoshop, I clicked to use the type tool, the "initializing type tool" box popped up then a few seconds later the whole

  • Poor graphics !

    Hi, My PC model is Toshiba C50-A-153 with integrated Intel graphics card. The graphics are poor especially when scrolling in firefox and the PDF readers. The problem is the same with many other distros with the stock installed Intel driver.  On my ot

  • Running a .dll in a .VI

    Hi, i have some issues running a dll in a .VI. to be more specific... I am running a main VI, and that main VI calls for a .dll when it is running labview crashes. after that y tried another way, I made the main VI a .dll then when i ran it everythin

  • Is it just me? Look, it's not rocket science but it's not Janet and John either!

    Janet and John being the main characters in a very old reading scheme for children in the UK. Look, John sees Janet. Janet sees the dog. Like that. Anyway. I used to get a bit fed up with Adobe's marketing of Golive that implied you could just plonk

  • BPS Content Installation Problem... ???

    Hi All, We are trying to transport BPS Standard Planning Content from Client 000 to working client 001. Process followed: login to BW Client 000 with user-DDIC -> BPS0 -> Tools -> Transport. Now, we are not able to create a Request/Task. what should