Operating System - HP-UX
1838598 Members
4283 Online
110128 Solutions
New Discussion

Re: I cant display Man pages

 
soma1958_1
New Member

I cant display Man pages

My man pages suddenly stoped to display on my hp 10.20 server. The PATH variable is ok and I did catman command two times but no progress.

Please how to trouble shoot this problem, and From where to start and what are the steps to follow for repair.
17 REPLIES 17
Pete Randall
Outstanding Contributor

Re: I cant display Man pages

Do you get an error message? Is your MANPATH set correctly?


Pete

Pete
Umapathy S
Honored Contributor

Re: I cant display Man pages

What is the exact error you got. Is MANPATH set correctly.

Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Mark Greene_1
Honored Contributor

Re: I cant display Man pages

Your MANPATH variable should start with /usr/share/man, as all the OS man pages live under that directory. The permissions for the directory and the ones below should be read and execute.

mark
the future will be a lot like now, only later
Bruno Ganino
Honored Contributor

Re: I cant display Man pages

The user may overridee default root directories for manual entries with the environment variable MANPATH.
But you can try to search manual entries in:
/usr/share/catman/
/usr/share/man
/usr/catman
/usr/man

HTH
Bruno
Torino (Turin) +2H
soma1958_1
New Member

Re: I cant display Man pages

-1 no error messages are displayed. the man comman returns null
2-The path variable is set to /usr/share/man

3 But found sticky bit dr-xr-xr-t on the /urs/share/man directory why like that while supposed to be dr-xr-xr-x. How to get rid of the sticky bit.

please help
Bruno Ganino
Honored Contributor

Re: I cant display Man pages

For change permission to a file you must use
"chmod" command.
For details on chmod see manual.
If you want i could send (cut and paste) of my documentation.
Regards.
Bruno
Torino (Turin) +2H
Elmar P. Kolkman
Honored Contributor

Re: I cant display Man pages

What are the permissions on /usr/share/man/cat* and the files in those directories ?
If the directories and files are not readable for the user you try to use man as, this can be the cause of the problem... But you would get an error then.

Another, more probable error, could be that the catman process failed, resulting in empty files in those cat directories. So when looking at the permissions, also check the size of the files. If they are empty, it would give exactly the result you get. If so, remove the files in the cat directory and it should work again, though a bit slower (it needs to be formatted every time you access a new man page).
Every problem has at least one solution. Only some solutions are harder to find.
soma1958_1
New Member

Re: I cant display Man pages

Lets begin from the zero what are the steps for rebuilding the man pages. please clearfy for me. I couldnt fix the problem till now.

what are the essential directories and what are the steps to format or reinstall them.

thanks for all
Elmar P. Kolkman
Honored Contributor

Re: I cant display Man pages

To rebuild the pages it depends on what your problem is...

To try if the files are still intact, select a command you need the manpage for. Let's say you need the manpage of ls. Then do the following:

cd /usr/share/man
ls -ld man*/ls* (but this can be replaced by any other command)

If it is in a directory ending with .Z, do the following:
zcat
Or, if the directory name does not end with .Z, do:
cat man*/ls* | nroff -man | pg

This should return the manual page you needed.

If this works, take a look for the 'cat' page:
ls -ld cat*/ls*

If this returns a file, look at the permissions and size. Try:
man ls

If this results in nothing, like your problem, remove the cat file:
rm cat*/ls*

and do the man command again:
man ls

This should result in the output: Reformatting man page...
And then the man page you need.

If this works, remove all 'cat' files that don't work, or just all, and you should be fine.

If these steps fail somewhere, and need more help, please inform where it goes wrong, so we can be of more assistance. But perhaps you need to re-install them.
Every problem has at least one solution. Only some solutions are harder to find.
soma1958_1
New Member

Re: I cant display Man pages

using the command ls -ld man*/ls* the output is:

r--r--r-- 6 bin bin 7503 Jun 10 1996 man1.Z/ls.1
-r--r--r-- 1 bin bin 1821 Jun 10 1996 man1.Z/lsacl.1
-r--r--r-- 6 bin bin 7503 Jun 10 1996 man1.Z/lsf.1
-r--r--r-- 6 bin bin 7503 Jun 10 1996 man1.Z/lsr.1
-r--r--r-- 6 bin bin 7503 Jun 10 1996 man1.Z/lsx.1
-r--r--r-- 1 bin bin 2295 Jun 10 1996 man1m.Z/lsdev.1m
-r--r--r-- 1 bin bin 1776 Jun 10 1996 man1m.Z/lssf.1m
-r--r--r-- 1 bin bin 1821 May 30 1996 man2.Z/lseek.2
-r--r--r-- 13 bin bin 3077 May 30 1996 man2.Z/lseek64.2
-r--r--r-- 1 bin bin 3259 May 30 1996 man2.Z/lstat.2
-r--r--r-- 13 bin bin 3077 May 30 1996 man2.Z/lstat64.2
-r--r--r-- 2 bin bin 999 May 30 1996 man2.Z/lsync.2
-r--r--r-- 2 bin bin 2276 May 30 1996 man3.Z/lsearch.3c

The output of zcat man1.Z/ls.1.Z: No such file or directory
man1.Z/lsacl.1.Z: No such file or directory
man1.Z/lsf.1.Z: No such file or directory
man1.Z/lsr.1.Z: No such file or directory
man1.Z/lsx.1.Z: No such file or directory
man1m.Z/lsdev.1m.Z: No such file or directory
man1m.Z/lssf.1m.Z: No such file or directory
man2.Z/lseek.2.Z: No such file or directory
man2.Z/lseek64.2.Z: No such file or directory
man2.Z/lstat.2.Z: No such file or directory
man2.Z/lstat64.2.Z: No such file or directory
man2.Z/lsync.2.Z: No such file or directory
man3.Z/lsearch.3c.Z: No such file or directory

What does that mean please help?
soma1958_1
New Member

Re: I cant display Man pages

I need an urgent reply please
Hemanth Gurunath Basrur
Honored Contributor

Re: I cant display Man pages

Hi,

After observing the following output:

r--r--r-- 6 bin bin 7503 Jun 10 1996 man1.Z/ls.1
-r--r--r-- 1 bin bin 1821 Jun 10 1996 man1.Z/lsacl.1
-r--r--r-- 6 bin bin 7503 Jun 10 1996 man1.Z/lsf.1
-r--r--r-- 6 bin bin 7503 Jun 10 1996 man1.Z/lsr.1
-r--r--r-- 6 bin bin 7503 Jun 10 1996 man1.Z/lsx.1
-r--r--r-- 1 bin bin 2295 Jun 10 1996 man1m.Z/lsdev.1m
-r--r--r-- 1 bin bin 1776 Jun 10 1996 man1m.Z/lssf.1m
-r--r--r-- 1 bin bin 1821 May 30 1996 man2.Z/lseek.2
-r--r--r-- 13 bin bin 3077 May 30 1996 man2.Z/lseek64.2
-r--r--r-- 1 bin bin 3259 May 30 1996 man2.Z/lstat.2
-r--r--r-- 13 bin bin 3077 May 30 1996 man2.Z/lstat64.2
-r--r--r-- 2 bin bin 999 May 30 1996 man2.Z/lsync.2
-r--r--r-- 2 bin bin 2276 May 30 1996 man3.Z/lsearch.3c

The output of zcat man1.Z/ls.1.Z: No such file or directory
man1.Z/lsacl.1.Z: No such file or directory
man1.Z/lsf.1.Z: No such file or directory
man1.Z/lsr.1.Z: No such file or directory
man1.Z/lsx.1.Z: No such file or directory
man1m.Z/lsdev.1m.Z: No such file or directory
man1m.Z/lssf.1m.Z: No such file or directory
man2.Z/lseek.2.Z: No such file or directory
man2.Z/lseek64.2.Z: No such file or directory
man2.Z/lstat.2.Z: No such file or directory
man2.Z/lstat64.2.Z: No such file or directory
man2.Z/lsync.2.Z: No such file or directory
man3.Z/lsearch.3c.Z: No such file or directory

I conclude that the manpages are not compressed. All the manpages should be compressed.

Follow the steps given below:

1. Execute the following command, file ls.1
Check the output if it is a compressed file or if it is in nroff format.

You can view the manpages in nroff format by using the foll. command:

nroff -man ls.1|more

2. If it is not a compressed file, execute the command, compress ls.1. Now, the file name would be ls.1.Z.

3. Now, copy the file ls.1.Z to the appropriate location /usr/share/man/...

4. Also, check pre-install and post-install scripts.

You are done.

HTH.

Regards,
Hemanth
Thayanidhi
Honored Contributor

Re: I cant display Man pages

Hi,

I feel man command itself having some problem.
Becuase man command returns no error.
Check

#which man
and check man command exists with proper size.
Also you can do

# what `which man`

and post the results.

TT

Attitude (not aptitude) determines altitude.
Abdullatif Abdulla
New Member

Re: I cant display Man pages

t2:/usr/share/man/man1.Z> file ls.1
ls.1: compressed data, block compressed, 16 bits

t2:/usr/share/man/man1.Z> file ls.1
ls.1: compressed data, block compressed, 16 bits
t2:/usr/share/man/man1.Z> which man
/usr/bin/man
t2:/usr/share/man/man1.Z> ll /usr/bin/man
-r-xr-xr-x 1 bin bin 0 Oct 7 16:13 /usr/bin/man

It seems to me that that /usr/bin/man command has 0 value shall I restore the old one. And what are the steps after.
Patrick Wallek
Honored Contributor

Re: I cant display Man pages

Yes, restore it. After just try viewing a man page again.
Thayanidhi
Honored Contributor

Re: I cant display Man pages

From backup you restore only /usr/bin/man and check it with

#what `which man`

you should see some thing similar to this.

# what `which man`
/usr/bin/man:
$Revision: B.11.11_LR
Fri Oct 27 00:58:14 PDT 2000 $
#

This is from 11.11, you may see a similar but different result.

then try to run man.

TT
Attitude (not aptitude) determines altitude.
Abdullatif Abdulla
New Member

Re: I cant display Man pages

Thanks for every body the problem is solved thanks and 10 points for each