Linux - Configure not running

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
Ceashure
Posts: 3
Joined: Sat Nov 06, 2010 5:58 pm

Linux - Configure not running

Post by Ceashure »

Trying to compile residual from svn trunk, when I run configure I'm getting the following errors:

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
This is good syntax, and I'm not sure why sh is choking on it. No matter what I do, it does not fix itself.


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]
User avatar
ezekiel000
Posts: 443
Joined: Mon Aug 25, 2008 5:17 pm
Location: Surrey, England

Post by ezekiel000 »

You don't need to run sh or as root, I just run "./configure" and I have no problems. I'm also running Ubuntu 10.10.
Ceashure
Posts: 3
Joined: Sat Nov 06, 2010 5:58 pm

Post by Ceashure »

It doesn't matter how I run it, it always comes up with the same error. Bash or SH, Admin or not.


Well actually, if I run it as just ./configure all i get is:
"Command not found". When I run with sh or bash appended to the front I get a print out of the errors like shown in my first post.
User avatar
ezekiel000
Posts: 443
Joined: Mon Aug 25, 2008 5:17 pm
Location: Surrey, England

Post by ezekiel000 »

You might need to set the flag to allow the file to be run as an executable. It's in the properties of the file, Permissions tab at the bottom.
Ceashure
Posts: 3
Joined: Sat Nov 06, 2010 5:58 pm

Post by Ceashure »

You were right. I didn't realize that Ubuntu had no support for permissions on NTFS partitions. Moving the residual folder to my local ext3 partition allowed the execute bit to be set correctly. I reverted back to the original configure script and it compiles just fine.

Thanks Ezekiel000!
Post Reply