Man pages missing?

Hi
In a core install, I noticed that the man pages are missing. How do I install them? And I mean the man pages plus those ones that are part of the programming in C functions.
Also ... what's the name of the package which contains such usefull programs as strace and string?
Last edited by Bangel (2008-03-02 13:49:37)

Okay, im not sure about which stuff to merge from profile.pacnew to profile apart from unset MANPATH.
# /etc/profile
export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin"
export MANPATH="/usr/man:/usr/X11R6/man"
export LESSCHARSET="latin1"
export INPUTRC="/etc/inputrc"
export LESS="-R"
export LC_COLLATE="C"
export COLUMNS LINES
export PS1='[\u@\h \W]\$ '
export PS2='> '
umask 022
if [ "$TERM" = "xterm" -o "$TERM" = "xterm-color" -o "$TERM" = "rxvt" -o "$TERM" = "xterm-xfree86" ]; then
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
fi
# load profiles from /etc/profile.d
# (to disable a profile, just remove execute permission on it)
if [ `ls -A1 /etc/profile.d/ | wc -l` -gt 0 ]; then
for profile in /etc/profile.d/*.sh; do
if [ -x $profile ]; then
. $profile
fi
done
unset profile
fi
# End of file
File: /etc/profile.pacnew
# Note the explicit use of 'test' to cover all bases
# and potentially incompatible shells
#Determine our shell without using $SHELL, which may lie
shell="sh"
if test -f /proc/mounts; then
case $(/bin/ls -l /proc/$$/exe) in
*bash) shell=bash ;;
*dash) shell=dash ;;
*ash) shell=ash ;;
*ksh) shell=ksh ;;
*zsh) shell=zsh ;;
esac
fi
# Load shell specific profile settings
test -f "/etc/profile.$shell" && . "/etc/profile.$shell"
#Set our umask
umask 022
# Set our default path
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
export PATH
# Some readline stuff that is fairly common
HISTSIZE=1000
HISTCONTROL="erasedups"
INPUTRC="/etc/inputrc"
LESS="-R"
LC_COLLATE="C"
export HISTSIZE HISTCONTROL INPUTRC LESS LC_COLLATE
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -x $profile && . $profile
done
unset profile
fi
# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP
# Man is much better than us at figuring this out
unset MANPATH

Similar Messages

  • Man page sections 2 or 3 missing

    New iMac, new Xcode install from the app store, it appears I do not have man page sections 2 or 3.  Can I get those somewhere?
    OSX 10.7.3
    XCode 4.3.1
    Thanks.

    Upgraded to XCode 4.3.2, then downloaded command line tools from within XCode, and there they are.

  • Bug with Solaris man page on dlsym

    I hope someone at Sun working on Solaris is reading this. There are bugs in the Solaris 10 man page on dlsym - there are a couple of places that says "see the .". Apparently soemthing is missing. My version of man pages is "Last change: 26 Sep 2005".

    The prototype of pthread_create() is correct on Solaris 10 man page (SunOS 5.10 Last change: 23 Mar 2005):
    int pthread_create(pthread_t *restrict   thread,   const
    pthread_attr_t *restrict         attr,         void
    *(*start_routine)(void*), void *restrict arg);
    But the prototype of pthread_cleanup_push() is correct on Solaris 10 man page (SunOS 5.10 Last change: 4 Oct 2005) is incorrect:
    void pthread_cleanup_push(void (*handler, void *),void *arg);
    I guess Sun simply has to check all the man pages of the pthread functions carefully one by one to make sure this error is fixed.

  • Can't view man pages on solaris 8 x86

    Hi,
    I installed solaris 8 on a intel x86 machine not using the webwizard because I wanted a minimal installation.
    When I try to view man pages I get the following error:
    man manReformatting page. Please Wait...Invalid SGML. File cannot be formatted
    sys(cd /usr/share/man; /usr/lib/sgml/sgml2roff /usr/share/man/sman1/man.1 > /tmp/sman_3827) fail!
    aborted (sorry)
    when I list /usr/lib/sgml then I got the following files:
    ls -ltotal 2830
    -rwxr-xr-x 1 root bin 68016 Jan 9 2000 instant
    -rwxr-xr-x 1 root bin 1366552 Jan 9 2000 nsgmls
    -rwxr-xr-x 1 root bin 3183 Jan 6 2000 sgml2roff
    Don't know what is wrong but I think I'm missing a package, anybody clues...
    with regards,
    Martijn de Munnik
    [email protected]

    Depending on how minimal your install was, you may not have installed the man pages.
    Take a look in /usr/share/man and see if you have the man pages installed, and if not, install them.

  • Man pages don't have new field about License

    at least PKGBUILD.proto has it.
    but plz add it to the man pages too [for example in makepkg]
    ty
    and I would start using License because It's extra important
    I should expect in the near future,
    IgnoreLicenseType = non-free
    and similar stuff that would keep acroread {and not only}out of the way..?
    licensetypes coud be gpl-lgpl-compatible {it includes the latest BSD license}, X11, and so on..

    Hello Xentac. hmm I missed the 1. point it seems..
    anyways, you 've added the license feature to Pacman.
    so at least one can find it on the man makepkg in the fields where you mention url source etc..
    I think that the IgnoreLicenseType = non-free is the way for AL to go
    But I'm just user with some pkgs (at the moment) so you decide

  • [SOLVED] Where are all of the Man pages?

    On my system, man-pages do not exist for many things e.g.  bash commands like ls, rm, cp & cd are missing?
    The directory /usr/man/ has the following folders: man1, 3, 4, 5, 7, 8
    It would seem that at least numbers 2 & 6 are missing.
    I have reinstalled the man utility (though it already worked) & man-pages, though it doesn't give me access to the bash commands that I know man pages exist for.
    Any ideas?
    Last edited by handy (2008-10-19 03:49:01)

    Onwards wrote:
    handy wrote:Which is now entered in my /etc/profile/ but it has no noticeable effect.
    /etc/profile is read by the login shells only. So you could have got the desired effect w/o a reboot by doing either:
    su -
    OR...
    konsole --ls #starting it as a login shell
    What I needed to know was not just the line to add & where, which first answer told me, but also the line to delete, which second useful answer told me. I had logged out after adding the line, & decided after the removing the offending line that I will reboot for good measure!
    Thanks for your confirmation that a logout would have done the job.

  • Thr_create() returns -1 which isn't specified in the man page. What is -1?

    Hello,
    I'm for the first time experimenting with Solaris threads as I'm porting an AIX app. over to Solaris.
    Anyhow, I have a sample program that creates a simple thread. For some reason, the return value of of the initial thr_create is -1, which isn't specified in the man page for thr_create. The man page lists the following return values, non of which are -1:
    RETURN VALUES
    Zero indicates a successful return and a non-zero value
    indicates an error.
    ERRORS
    If any of the following conditions occur, these functions
    fail and return the corresponding value:
    EAGAIN The system-imposed limit on the total number
    of threads in a process has been exceeded or
    some system resource has been exceeded (for
    example, too many LWPs were created).
    EINVAL The value specified by attr is invalid.
    If any of the following conditions are detected,
    pthread_create() fails and returns the corresponding value:
    ENOMEM Not enough memory was available to create the
    new thread.
    If any of the following conditions are detected,
    thr_create() fails and returns the corresponding value:
    EINVAL o stack_base is not NULL and stack_size is
    less than the value returned by
    thr_min_stack(3T).
    o stack_base is NULL and stack_size is not
    zero and is less than the value returned by
    thr_min_stack(3T).
    However, I don't see a -1 there and therefore, don't know what this means.
    Here is the simple code that I wrote for this experiment as well as the output. It doesn't get too far into the program before exiting - I've bolded where it exits:
    #define _REENTRANT
    #include <stdio.h>
    #include <thread.h>
    #include <errno.h>
    /* Function prototypes for thread routines */
    void sub_a(void );
    void sub_b(void );
    void sub_c(void );
    void sub_d(void );
    void sub_e(void );
    void sub_f(void );
    thread_t thr_a, thr_b, thr_c;
    void main()
    thread_t main_thr;
    int rc = 0;
    main_thr = thr_self();
    printf("Main thread = %d\n", main_thr);
    if (rc = thr_create(NULL, 0, sub_b, NULL, THR_NEW_LWP, &thr_b))
    printf("\n rc = %d",rc);
    switch(rc)
    case EAGAIN: printf("This one1");
    break;
    case EINVAL: printf("This one2");
    break;
    case ENOMEM: printf("This one3");
    break;
    default: printf("rc = %d");
    break;
    fprintf(stderr,"Can't create thr_b\n"),
    * exit(1); *
    /* if (thr_create(NULL, 0, sub_a, (void *)thr_b, THR_NEW_LWP, &thr_a))
    fprintf(stderr,"Can't create thr_a\n"), exit(1); */
    if (thr_create(NULL, 0, sub_c, (void *)main_thr, THR_NEW_LWP, &thr_c))
    fprintf(stderr,"Can't create thr_c\n"), exit(1);
    printf("Main Created threads A:%d B:%d C:%d\n", thr_a, thr_b, thr_c);
    printf("Main Thread exiting...\n");
    thr_exit((void *)main_thr);
    void sub_a(void arg)
    thread_t thr_b = (thread_t) arg;
    thread_t thr_d;
    int i;
    printf("A: In thread A...\n");
    if (thr_create(NULL, 0, sub_d, (void *)thr_b, THR_NEW_LWP, &thr_d))
    fprintf(stderr, "Can't create thr_d\n"), exit(1);
    printf("A: Created thread D:%d\n", thr_d);
    /* process
    for (i=0;i<1000000*(int)thr_self();i++);
    printf("A: Thread exiting...\n");
    thr_exit((void *)77);
    void * sub_b(void *arg)
    int i;
    printf("B: In thread B...\n");
    /* process
    for (i=0;i<1000000*(int)thr_self();i++);
    printf("B: Thread exiting...\n");
    thr_exit((void *)66);
    void * sub_c(void *arg)
    void *status;
    int i;
    thread_t main_thr, ret_thr;
    main_thr = (thread_t)arg;
    printf("C: In thread C...\n");
    if (thr_create(NULL, 0, sub_f, (void *)0, THR_BOUND|THR_DAEMON, NULL))
    fprintf(stderr, "Can't create thr_f\n"), exit(1);
    printf("C: Join main thread\n");
    if (thr_join(main_thr,(thread_t *)&ret_thr, &status))
    fprintf(stderr, "thr_join Error\n"), exit(1);
    printf("C: Main thread (%d) returned thread (%d) w/status %d\n", main_thr, ret_thr, (int) status);
    /* process
    for (i=0;i<1000000*(int)thr_self();i++);
    printf("C: Thread exiting...\n");
    thr_exit((void *)88);
    void * sub_d(void *arg)
    thread_t thr_b = (thread_t) arg;
    int i;
    thread_t thr_e, ret_thr;
    void *status;
    printf("D: In thread D...\n");
    if (thr_create(NULL, 0, sub_e, NULL, THR_NEW_LWP, &thr_e))
    fprintf(stderr,"Can't create thr_e\n"), exit(1);
    printf("D: Created thread E:%d\n", thr_e);
    printf("D: Continue B thread = %d\n", thr_b);
    thr_continue(thr_b);
    printf("D: Join E thread\n");
    if(thr_join(thr_e,(thread_t *)&ret_thr, &status))
    fprintf(stderr,"thr_join Error\n"), exit(1);
    printf("D: E thread (%d) returned thread (%d) w/status %d\n", thr_e,
    ret_thr, (int) status);
    /* process
    for (i=0;i<1000000*(int)thr_self();i++);
    printf("D: Thread exiting...\n");
    thr_exit((void *)55);
    void * sub_e(void *arg)
    int i;
    thread_t ret_thr;
    void *status;
    printf("E: In thread E...\n");
    printf("E: Join A thread\n");
    if(thr_join(thr_a,(thread_t *)&ret_thr, &status))
    fprintf(stderr,"thr_join Error\n"), exit(1);
    printf("E: A thread (%d) returned thread (%d) w/status %d\n", ret_thr, ret_thr, (int) status);
    printf("E: Join B thread\n");
    if(thr_join(thr_b,(thread_t *)&ret_thr, &status))
    fprintf(stderr,"thr_join Error\n"), exit(1);
    printf("E: B thread (%d) returned thread (%d) w/status %d\n", thr_b, ret_thr, (int) status);
    printf("E: Join C thread\n");
    if(thr_join(thr_c,(thread_t *)&ret_thr, &status))
    fprintf(stderr,"thr_join Error\n"), exit(1);
    printf("E: C thread (%d) returned thread (%d) w/status %d\n", thr_c, ret_thr, (int) status);
    for (i=0;i<1000000*(int)thr_self();i++);
    printf("E: Thread exiting...\n");
    thr_exit((void *)44);
    void sub_f(void arg)
    int i;
    printf("F: In thread F...\n");
    while (1) {
    for (i=0;i<10000000;i++);
    printf("F: Thread F is still running...\n");
    OUTPUT:
    # /emc/smithr15/solthread
    Main thread = 1
    rc = -1Can't create thr_b
    rc = -1#
    Any ideas as to what -1 indicates and how to solve this?
    Thanks for your response,
    dedham_ma_man

    ok, my bad. I wasn't linking in the -lthread library.
    Thanks anyway.

  • No scrolling when viewing man pages with Gnome terminal?

    Hi all,
    I have just installed Oracle Solaris 11 on x86. For a long time I've used Solaris 9 on SPARC. I like the new OS, but I'm having a problem viewing man pages with Gnome terminal. When I view a long man page, e.g., "man newfs", I don't get a functional scroll bar on the right hand side of the window. And although the space bar works to advance the page, when I reach the end, it doesn't return to the command prompt. It just beeps, prints "END", and I can only exit by closing the window. Can anyone tell me how to fix this? Suggestions would be much appreciated.
    Many thanks,
    Chris Tidy

    It does sound like you're using "less" instead of more. When you see the "(END)" prompt you can simply type "q" and it will exit back to the command line prompt making it unnecessary to close the window. See the "less" manual page for more detail on the less command. Under Solaris 9 the paging was done with the "more" command. If you set the PAGER environment variiable to "more" the man page will use more and revert to the behavior you'd be used to with Solaris 9. Less erases the text you've already read when you type that final "q" which is a behavior I don't like. I didn't bother to determine if there is a way to fix that with less, I just went back to more. The choice between "more" and "less" is a personal preference.

  • Can we update the man pages for "dynamic_pager"?

    The configuration file is listed as, /Library/Preferences/com.apple.virtualMemory.plist but from what I understand, it is located in /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist.

    Send Apple feedback about it, and they will likely update the man page: http://www.apple.com/feedback/macosx.html
    Alternatively you can edit the man page file for the dynamic_pager itself. It is located here: /usr/share/man/man8/dynamic_pager.8

  • Man pages in other languages

    Hi,
    Is it possible to install man pages in other languages (i.e. Spanish)? Bash shell seems to be working in Spanish but not man pages. I have checked and it only comes with some languages (Russian, German, etc.) Could it be possible to install them from any source?
    Thanks in advance

    Open Dictionary.app in the Applications folder and go to its Preferences.  There you will see what Apple provides and you can check the boxes to activate it.  If you want something more, you will have to find it on the internet and install it.
    http://m10lmac.blogspot.com/2013/01/adding-dictionaries-to-dictionaryapp.html

  • How to install package's man page

    Hi all!
    I'm the maintainer of pcsx2-svn in AUR and currently the installation process doesn't install the man page automatically. In the source code I have a "pcsx2.man" file, that I'm gzipping and moving to the correct man folder. See command:
    gzip -9 "${pkgdir}/opt/pcsx2/docs/pcsx2.man"
    mv "${pkgdir}/opt/pcsx2/docs/pcsx2.man.gz" "${pkgdir}/usr/share/man/man1/pcsx2.1.gz"
    Is there a more proper way to do this in Archlinux?
    Thanks in advance!
    p.s.: `make install` will not install the man page, only the translation files.

    Ah, simple as that? I didn't how this works until now... Thanks, falconindy!
    Last edited by josephg (2011-03-21 03:01:59)

  • 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)

  • Priocntl system call returning values not in man page

    If you look at the man page for priocntl(2) it says that pc_clname in pcinfo_t will only contain the following values:
    RT for realtime
    TS for time-share
    FX for fixed-priority
    but I've also seen the following returned
    FSS presumably for Fair share
    IA presumable for Interactive
    Is this just a doc bug or is priocntl not supposed to be passing these back. The way priocntl(1) and (2) read I was inferring that the difference was somewhat on purpose in that Interactive mode is just a special Time Share mode and thus would show up as TS when queried using priocntl(2).
    You may ask who cares but we use a third party class library (RW) and the version of the code we have, which I will admit is old, only handles TS and RT coming back from priocntl, exceptions when IA comes back.
    On a related note, does anyone know if a "workstation" machine will somehow default to Interactive mode for some processes, namely the ones not started at boot time? On a server box, e450, if you run 'priocntl -d -i all. All the processes show up under Time Share but if I run the same
    command on a workstation box, sparc 5, I get that some are in Time Share and others are in Interactive.
    Thanks.

    Or you can use one of these in the JSP page:
    <jsp:usebean id="var_name" class="class_name" scope="request">Only thing to remember is that if it can't find the variable name then it will call the default constructor to create a new instance, and if that doesn't exist then you will get a runtime error in your JSP page which looks pretty ugly.

  • 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

Maybe you are looking for

  • External iSight not recognized

    I have been reading up on iSight connection troubles for a while now, to no avail. My *external firewire isight* stopped being recognized and/or turned on from one day to the next. It *does not function in any software* (iVisit, iChat) i have been us

  • Work from home and just moved house, really slow i...

    Hello, I have just moved house ( 2 weeks ago) I use to get BT infinity so I was expecting a big drop but nothing like this. When I orderd my new BT package I was told to estimate speed of 12mb. My internet cuts out regularly - 5 to 10 times aday and

  • Problems in Opening same jspx in different modes based on user selection

    Hello, I'm using JDeveloper 11.1.1.4.0 Following is my use case and problems with each of the solutions that I have tried so far. 1. Screen1 displays 4 af:tables. Right cilck of each table is a separate context sensitive menu. 2. Using context sensit

  • Need Help in Soap- XI- RFC( V.V.Urgent)

    Hi, I need to integrate Web Service with SAP using soap and RFC adapters. Can any one them explain how to configure sender SOAP adapter and Reciver RFC adapter. They are providing url for soap message. [ if any one enter some data in webservice it at

  • Deleted delivery

    Hi all, In our process, sales orders will be created background and are rush order in nature. Which means deliveries will be created immidiately. These order will be created in morning and user get the list of orders and corresponding deliveries. One