(Answer) (Category) Linux on PowerPC FAQ-O-Matic : (Category) System Configuration :
makewhatis is broken. how do i fix it?
There are two fixes:
1. Use an older (1.x) version of bash. To do this, just name the old binary something like /usr/local/bin/oldbash. Then, change the first line of makewhatis to read:
        #!/usr/local/bin/oldbash
2. Make a simple fix to the script that will let it run with bash 2.x. There are three lines in the script which use eval statements, each of which looks similar to this:
        eval $topath=$"$topath":$name
You need to add in a \ before the second $ to delay the evaluation of that dollar sign until the eval actually processes it. The example line would look like this:
        eval $topath=\$"$topath":$name
Either of those will allow the script to run normally.
chuck@athera.ml.org
I fixed it a different way - just 
vi `which makewhatis`

and find the line:
TMPFILE=/root/whatis$$

and change it to:
[ -x "$TMP" ] || TMP="/tmp"
TMPFILE=$TMP/whatis$$

(I don't have a /root, and you might not, either).
mike@blakeley.com
[Append to This Answer]
Previous: (Answer) My clock is off by X hours.
Next: (Answer) IMS TwinTurbo video card Linux driver
This document is: http://www.jonh.net/cgi-bin/lppcfom/fom?file=302
[Search] [Appearance]
This is a Faq-O-Matic 2.717d.
Hosted by anduin.org and SourceForge Logo