problem with man
makewhatis is screwd up, give me many erorrs.
I am using PClinuxOS and kernel 2.6.15 I installd Man 1.6c and from then it went bad saying: awk: cmd. line:75: $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^ΘΜΕ/)) || awk: cmd. line:75: ^ syntax error awk: cmd. line:75: (pages == "cat" && $1 ~ /^NAME/)) { awk: cmd. line:75: ^ syntax error awk: cmd. line:81: } else if (insh) { awk: cmd. line:81: ^ syntax error awk: cmd. line:75: $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^ΘΜΕ/)) || awk: cmd. line:75: ^ syntax error awk: cmd. line:75: (pages == "cat" && $1 ~ /^NAME/)) { awk: cmd. line:75: ^ syntax error awk: cmd. line:81: } else if (insh) { awk: cmd. line:81: ^ syntax error awk: cmd. line:75: $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^ΘΜΕ/)) || awk: cmd. line:75: ^ syntax error awk: cmd. line:75: (pages == "cat" && $1 ~ /^NAME/)) { awk: cmd. line:75: ^ syntax error awk: cmd. line:81: } else if (insh) { awk: cmd. line:81: ^ syntax error awk: cmd. line:75: $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^ΘΜΕ/)) || awk: cmd. line:75: ^ syntax error awk: cmd. line:75: (pages == "cat" && $1 ~ /^NAME/)) { awk: cmd. line:75: ^ syntax error awk: cmd. line:81: } else if (insh) { awk: cmd. line:81: ^ syntax error awk: cmd. line:75: $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^ΘΜΕ/)) || awk: cmd. line:75: ^ syntax error awk: cmd. line:75: (pages == "cat" && $1 ~ /^NAME/)) { awk: cmd. line:75: ^ syntax error awk: cmd. line:81: } else if (insh) { awk: cmd. line:81: ^ syntax error awk: cmd. line:75: $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^ΘΜΕ/)) || awk: cmd. line:75: ^ syntax error awk: cmd. line:75: (pages == "cat" && $1 ~ /^NAME/)) { awk: cmd. line:75: ^ syntax error awk: cmd. line:81: } else if (insh) { awk: cmd. line:81: ^ syntax error awk: cmd. line:75: $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^ΘΜΕ/)) || awk: cmd. line:75: ^ syntax error awk: cmd. line:75: (pages == "cat" && $1 ~ /^NAME/)) { awk: cmd. line:75: ^ syntax error awk: cmd. line:81: } else if (insh) { awk: cmd. line:81: ^ syntax error awk: cmd. line:75: $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^ΘΜΕ/)) || awk: cmd. line:75: ^ syntax error awk: cmd. line:75: (pages == "cat" && $1 ~ /^NAME/)) { awk: cmd. line:75: ^ syntax error awk: cmd. line:81: } else if (insh) { awk: cmd. line:81: ^ syntax error awk: cmd. line:75: $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^ΘΜΕ/)) || awk: cmd. line:75: What can I do to fix it up? |
Can any one help me pleaseee???
|
first, all the awk syntax errors are most likely caused by one issue.
You have PClinuxOS and it did not have the man utility?? How did you install Man 1.6c? .tar.gz file, rpm, etc.? At what step did the problem occur? What errors did you get with Makewhatis? Is the machine still working? |
Probably most possible answer is too uninstall those new man pages/mkwhatis/or whatever you installed, and revert back to the man docs that were bundled with the distro initially.
I faced a similar situation, a few years ago when I actually installed man pages of some other distro over some other. And the easiest solution was to uninstall the culprit. I think awk,sed and some other tools whose name I cant remember, are all actually involved in how man pages are formatted, and that's why everything gets screwed up. |
awk: cmd. line:75: $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^ΘΜΕ/)) ||
awk: cmd. line:75: ^ syntax error awk: cmd. line:75: (pages == "cat" && $1 ~ /^NAME/)) { awk: cmd. line:75: ^ syntax error awk: cmd. line:81: } else if (insh) { awk: cmd. line:81: ^ syntax error are the erorrs it gives me. I am using PCLINUX, but wanted a newer version of man. I have installed 1.6c from Tarball as source The machine is working good, and I can do Man xxx without any problem now. I hanv't installd any new man files, and before the install of the new Man, everything workd good. So what can I do? I don't want to loose all the man files, because they do work! I can do Man xxx, bet can't do makewhatis and I know AWK,and SED are invloved in Man, but man works good, makewhatis give me this erorrs. |
This is confusing---are we talking about the man pages--or the reader?
man 1.6c is the reader. Was there a problem with the reader that came with your distro? If not, the easiest solution might be to simply re-install the OS. The awk stuff is really strange---shell scripts for SW don't typically have lots of calls to awk. Is makewhatis a script or a binary? If a script, you might try reading it to see what it is doing. Also, keep in mind that issue with new SW are often just the wrong permissions on the new files. Have you tried running the offending commands as root? |
Yep tried them as a root, Man is a reader and works great on my OS, but makewhatis dont!
and it is a script but very complicetd. Can I get more help? |
for pages in man cat
do export pages eval path="\$$pages"path for mandir in $path do if [ x$verbose != x ]; then echo "about to enter $mandir" > /dev/stderr fi if [ -s ${mandir}/whatis -a $pages = man -a x$update = x ]; then if [ x$verbose != x ]; then echo skipping $mandir - we did it already > /dev/stderr fi else here=`pwd` cd $mandir for i in $sections do if [ -d ${pages}$i ] then cd ${pages}$i section=$i curdir=$mandir/${pages}$i export section verbose curdir find $mandir/${pages}$i/. -name '*' $findarg0 $findarg -print | $AWK ' this is the last line where AWK is being proceed, and in AWK I get the bugs what to do now? |
All times are GMT -5. The time now is 05:35 PM. |