LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-13-2006, 11:28 AM   #1
EAD
Member
 
Registered: Mar 2006
Distribution: ARCH linux
Posts: 137

Rep: Reputation: 15
Question 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?

Last edited by EAD; 03-13-2006 at 12:42 PM.
 
Old 03-14-2006, 02:34 AM   #2
EAD
Member
 
Registered: Mar 2006
Distribution: ARCH linux
Posts: 137

Original Poster
Rep: Reputation: 15
Can any one help me pleaseee???
 
Old 03-14-2006, 02:46 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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?

Last edited by pixellany; 03-14-2006 at 02:48 AM.
 
Old 03-14-2006, 04:16 AM   #4
nitinatindore
Member
 
Registered: Dec 2004
Location: India
Distribution: Mandrake, Mandriva, PclinuxOS
Posts: 114

Rep: Reputation: 15
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.
 
Old 03-14-2006, 06:12 AM   #5
EAD
Member
 
Registered: Mar 2006
Distribution: ARCH linux
Posts: 137

Original Poster
Rep: Reputation: 15
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.
 
Old 03-14-2006, 09:33 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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?
 
Old 03-14-2006, 11:09 AM   #7
EAD
Member
 
Registered: Mar 2006
Distribution: ARCH linux
Posts: 137

Original Poster
Rep: Reputation: 15
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?
 
Old 03-14-2006, 11:20 AM   #8
EAD
Member
 
Registered: Mar 2006
Distribution: ARCH linux
Posts: 137

Original Poster
Rep: Reputation: 15
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 09:52 AM
man -K problem jmccay Linux - General 1 07-25-2004 08:25 PM
How to quit man (less) and keep man info on screen? peb Linux - Newbie 7 03-25-2004 11:02 PM
man problem in X lfur Linux - General 3 07-09-2003 08:49 PM
Compiling packages on RH 7.1 causes man files to be named man.gz mmboam Linux - General 0 05-09-2001 07:47 PM


All times are GMT -5. The time now is 10:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration