Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 04-09-2012
Registered User
 
Join Date: Jan 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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 .

manpath is:


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

Quote:
/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
Sponsored Links
    #2  
Old 04-09-2012
methyl methyl is offline Forum Staff  
Moderator
 
Join Date: Mar 2008
Posts: 6,388
Thanks: 286
Thanked 668 Times in 640 Posts
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.
Sponsored Links
    #3  
Old 04-09-2012
Registered User
 
Join Date: Jan 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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 05:43 PM.. Reason: code tags
    #4  
Old 04-09-2012
Scrutinizer's Avatar
Moderator
 
Join Date: Nov 2008
Location: Amsterdam
Posts: 7,333
Thanks: 143
Thanked 1,754 Times in 1,591 Posts
xemacs.1 and the other .1 files should be in directory man1
Sponsored Links
    #5  
Old 04-09-2012
methyl methyl is offline Forum Staff  
Moderator
 
Join Date: Mar 2008
Posts: 6,388
Thanks: 286
Thanked 668 Times in 640 Posts
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 06:10 PM..
Sponsored Links
Closed Thread

Tags
man

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
display command output page per page Mat_k UNIX for Dummies Questions & Answers 3 01-19-2011 09:49 AM
MANPATH undefined error jambesh Shell Programming and Scripting 1 10-22-2010 09:41 AM
Where set manpath? lazycat79 Red Hat 0 09-13-2010 09:36 AM
manpath errors -- standard way to set? does anyone even use it anymore? jzacsh UNIX for Dummies Questions & Answers 2 02-23-2010 05:03 PM
How does the PATH and MANPATH environment variable get set? vtran4270 UNIX for Advanced & Expert Users 3 08-23-2002 02:09 AM



All times are GMT -4. The time now is 01:24 AM.