Code: Select all
sudo sh ./configure
: not found: 25:
: not found: 34:
: not found: 37:
: not found: 41:
./configure: 46: Syntax error: word unexpected (expecting "do")
The lines 25,34,37,41 ("not found") are comment lines. So I deleted all the comment lines. Now they are fixed (weird...but ok).
For the last error, by default line 46 has the syntax:
Code: Select all
for ac_dir in $PATH; do
I'm using Ubuntu 10.10. Any ideas what might be going on? I have a feeling it might be "hidden chars" or encoding or something like that, but I don't have any knowledge of how to remove those *safely* from a bash script.[/code]