Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.