Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

whatis

Status
Not open for further replies.

butterfm

Programmer
Feb 15, 2002
132
GB
On AIX 5.2
:/ >man -k ls
man: file /usr/dt/man/whatis not found
Create the whatis database using the catman -w command.
:/ >catman -w
catman: /usr/lbin/mkwhatis: exit status 1
Any ideas why this is failing ?

Thanks
M
 
Hi butt

Can you issue the command
echo $MANPATH
on your system and post the output

sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
Hi Sushveer,

The $MANPATH variable is unset (empty). I would guess from your question that it shouldn't be.

Matt.
 
Hi butt

Also check the files:/usr/share/man/whatis

and /usr/lbin/mkwhatis

They are very important..

sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
Hi butt

It helps to know that path and execute the command if it is set.
If u don't have set.it is ok.u can check the files as mentioned in the above post.. your problem is reolved if you have them in place..
No big deal..as simple as that...

sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
Hi Sushveer,

/usr/share/man/whatis doesn't exist.

>ls /usr/share/man
cat1 info

We have another machien running AIX 5.1 and the contents of /usr/bin/man are

>ls /usr/share/man
cat1 cat3 cat5 cat7 catl info man2 man4 man6 man8 mann
cat2 cat4 cat6 cat8 catn man1 man3 man5 man7 manl whatis

Any reason why we would be missing these on the 5.2 box and would it be OK to copy the missing files/dirs from the 5.1 machine to teh 5.2 machine ?

Thanks,
Matt
 
You don't have /usr/share/man/whatis because the catman -w command is failing. whatis is a man page database created by the catman -w command. The command may be failing because you might not have the file /usr/lbin/mkwhatis for some reason. Check to see if mkwhatis is there.

Use lslpp -l | grep bos.rte.man to see if you have the bos.rte.man fileset. Also, do an lslpp -f, pipe it to a file, and check the file to see which files you have from bos.rte.man. There should be about 11 files from that fileset.

If you don't have all the files, I'd recommend installing them from the 5.2 disks. I wouldn't copy them from a 5.1 machine to a 5.2.

And I wouldn't copy the directories from the 5.1 system's /usr/share/man. It would probably solve your current problem, but won't do you any good in the future when you might want to update your man pages.

 
Hi butter

Yes.!...You can copy them...no problem...I too did like that and got fixed...

sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
Thanks very much for all your help. It is much appreciated.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top