man page in MANPATH not found


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers man page in MANPATH not found
# 1  
Old 04-09-2012
man page in MANPATH not found

dear unix experts,

the 'man' command on my system isn't finding a manpage that is
in a MANPATH directory, or even when I specify the path directly:

Code:
12:56pm ilya@node1390 /idi/sabetilab/ilya/usr/share/man $ man -M . xemacs
No manual entry for xemacs
12:56pm ilya@node1390 /idi/sabetilab/ilya/usr/share/man $ man ./xemacs.1
WARNING: terminal is not fully functional

- (press RETURN)
...manpage appears...

manpages in other dirs in the manpath are found
(including /idi/sabetilab/ilya/usr/man ), but not in /idi/sabetilab/ilya/usr/share/man .
[/code]
manpath is:

Code:
12:58pm ilya@node1390 /idi/sabetilab/ilya/usr/share/man $ echo $MANPATH

Code:
/idi/sabetilab/ilya/usr/share/man:/broad/software/free/Linux/redhat_5_x86_64/pkgs/python_2.6.5/share/man:/broad/software/free/Linux/redhat_5_x86_64/pkgs/graphviz_2.26.3/share/man:/broad/software/free/Linux/redhat_5_x86_64/pkgs/gtk+_2.18\
.6/share/man:/broad/software/free/Linux/redhat_5_x86_64/pkgs/fontconfig_2.8.0/share/man:/broad/software/free/Linux/redhat_5_x86_64/pkgs/glib_2.22.4/share/man:/broad/software/free/Linux/redhat_5_x86_64/pkgs/gettext_0.17/share/man:/broad/\
software/free/Linux/redhat_5_x86_64/pkgs/sun-java-jdk_1.6.0-21_x86_64/man:/broad/lsf/7.0/man:/idi/sabetilab/ilya/usr/man:/idi/sabetilab/ilya/usr/share/man:/broad/software/dotkit/man

thanks for help,

ilya
# 2  
Old 04-09-2012
The man command expects the name of the command not the path to the command.
If there is a man page for xemacs on your system, try:
Code:
man xemacs

Then try a fuzzy search:
Code:
man -k xemacs

See also:
man man


Failing that please post what Operating System and version you are running so posters with a similar O/S can comment.
# 3  
Old 04-09-2012
Here is the relevant trace. The system is CentOS.
What I'm trying to understand is why man does not find the manpage
xemacs.1 even though its directory is in MANPATH.

thanks for help!

Code:
5:26pm ilya@tin /cvar/selection/sweep2/nsvn/Temp $ echo $MANPATH
/broad/software/free/Linux/redhat_5_x86_64/pkgs/python_2.6.5/share/man:/broad/software/free/Linux/redhat_5_x86_64/pkgs/graphviz_2.26.3/share/man:/broad/software/free/Linux/redhat_5_x86_64/pkgs/gtk+_2.18.6/share/man:/broad/software/free/Linux/redhat_5_x86_64/pkgs/fontconfig_2.8.0/share/man:/broad/software/free/Linux/redhat_5_x86_64/pkgs/glib_2.22.4/share/man:/broad/software/free/Linux/redhat_5_x86_64/pkgs/gettext_0.17/share/man:/broad/software/free/Linux/redhat_5_x86_64/pkgs/sun-java-jdk_1.6.0-21_x86_64/man:/broad/lsf/7.0/man:/idi/sabetilab/ilya/usr/man:/idi/sabetilab/ilya/usr/share/man:/broad/software/dotkit/man
5:26pm ilya@tin /cvar/selection/sweep2/nsvn/Temp $ ls -l /idi/sabetilab/ilya/usr/share/man
total 187
-rw-r--r--+ 1 ilya sabetilab    17 Sep 27  2010 ctags.1
-rw-r--r--+ 1 ilya sabetilab 12359 Sep 27  2010 etags.1
-rw-r--r--+ 1 ilya sabetilab    19 Sep 27  2010 gnuattach.1
-rw-r--r--+ 1 ilya sabetilab    19 Sep 27  2010 gnuclient.1
-rw-r--r--+ 1 ilya sabetilab    19 Sep 27  2010 gnudoit.1
-rw-r--r--+ 1 ilya sabetilab 12103 Sep 27  2010 gnuserv.1
drwxr-xr-x+ 2 ilya sabetilab   162 Apr  8 19:41 man1/
drwxr-xr-x+ 2 ilya sabetilab   859 Apr  5 14:04 man3/
drwxr-xr-x+ 2 ilya sabetilab    16 Mar 13 21:03 man5/
drwxr-xr-x+ 2 ilya sabetilab     6 Jun 10  2010 man7/
drwxr-xr-x+ 2 ilya sabetilab    26 Mar 13 21:03 man8/
-rw-r--r--+ 1 ilya sabetilab 23490 Sep 27  2010 xemacs.1
5:26pm ilya@tin /cvar/selection/sweep2/nsvn/Temp $ man xemacs
No manual entry for xemacs
5:26pm ilya@tin /cvar/selection/sweep2/nsvn/Temp $ man -k xemacs
gnuclient [gnuserv]  (1)  - Server and Clients for XEmacs
gnuserv              (1)  - Server and Clients for XEmacs
xcscope.el [xcscope] (1)  - xemacs cscope lisp support package
xemacs               (1)  - Emacs: The Next Generation
xemacs              (rpm) - Different version of Emacs
xemacs-common       (rpm) - Byte-compiled lisp files and other common files for XEmacs
xemacs-packages-base (rpm) - Base lisp packages for XEmacs
xemacs-packages-extra (rpm) - Collection of XEmacs lisp packages
5:26pm ilya@tin /cvar/selection/sweep2/nsvn/Temp $ uname -a
Linux tin.broadinstitute.org 2.6.18-194.8.1.el5 #1 SMP Thu Jul 1 19:04:48 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
5:26pm ilya@tin /cvar/selection/sweep2/nsvn/Temp $


Last edited by Scrutinizer; 04-09-2012 at 06:43 PM.. Reason: code tags
# 4  
Old 04-09-2012
xemacs.1 and the other .1 files should be in directory man1
# 5  
Old 04-09-2012
Explanation: The man -k gave the exact manual chapter. We need to tell man which chapter (where it is not the default).
For example:
Code:
man 1 xemacs


Last edited by methyl; 04-09-2012 at 07:10 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to write a UNIX man page

I realise that with GNU 'info' a lot of developers become, dare I say it, quite lazy when it comes to providing a well written man page - and some argue they're not needed at all. But I find, in the products that I develop, that man pages are used more often for quick reference, and therefore the... (1 Reply)
Discussion started by: cambridge
1 Replies

2. Solaris

man page question

What does the last change means in man page .. does that this man page has not been updated since 2003 or something else ? newfs-options The options are documented in the newfs man page. SunOS 5.10 Last change: 9 Dec 2003 1 System... (2 Replies)
Discussion started by: fugitive
2 Replies

3. Solaris

Unable to get help from man page

Help, it seem that i am unable to get man help form solaris 10. I am running SunOS unknown 5.10 Generic_120012-14 i86pc i386 i86pc when ever i try to man a command what i get is "No manual entry" like the one below. # man grep No manual entry for grep. # man ls No manual entry for ls.... (8 Replies)
Discussion started by: ezsurf
8 Replies

4. UNIX for Advanced & Expert Users

man page issue

Man page is not working my system. It is giving the following the following error > man ls gdbm fatal: read error with debug option > man -d ls ... .... ... ... using less as pager checking for locale en_US add_nls_manpath(): processing /usr/local/man:/usr/share/man:/usr/X11R6/man... (4 Replies)
Discussion started by: praveenkumar_l
4 Replies

5. Red Hat

scp-1.2.27 man page

Hi Guys, I'm looking for the man page for scp version 1.2.27 I have an old redhat server that has a few large scripts that use this version and I want to know what the -A flag does and the man page is not on there. (4 Replies)
Discussion started by: Tornado
4 Replies

6. Solaris

help interpreting usermod man page

Hi, I put an expiration on a few id's that I want to remove now. From the man page -e expire Specify the future date on which a login can no longer be used; after this date, no user will be able to access this login. This option is useful ... (0 Replies)
Discussion started by: amheck
0 Replies

7. UNIX for Dummies Questions & Answers

adding a man page

I was wonderiong if ther is a way for a user to add a man page specific to thier account. similar to copying the .1 or .1.gz to /usr/share/man/man1 "cp *.1.gz /usr/share/man/man1". Except for using another folder as I don't have access to /usr/share/man/man1. I would think that this might involve... (1 Reply)
Discussion started by: jacob358
1 Replies

8. UNIX for Dummies Questions & Answers

how do you create a man page?

i've never done this before. i created a script that I placed in /usr/bin, but want to create a man page for it. i'm clueless thanks (3 Replies)
Discussion started by: theDirtiest
3 Replies

9. News, Links, Events and Announcements

Usefull HP-UX Man Page Online

Usefull HP-UX Man Page Online Link LINK: HP-UX Man Page http://www.doc.ic.ac.uk/~mac/manuals/hpux-manual-pages/hpux.man1.html (0 Replies)
Discussion started by: killerserv
0 Replies
Login or Register to Ask a Question