JasonGenX
JasonGenX

Reputation: 5434

Qt 4.8 "./Configure" fails

Downloaded Qt 4.8 beta, unzipped, changed into the folder and clicked "./configure" as required.

output: bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory

"Configure" is definitely there in the folder.

What's wrong?

Upvotes: 0

Views: 1157

Answers (2)

JasonGenX
JasonGenX

Reputation: 5434

Forget it, I downloaded the “zip” file instead of the “tar.gz” file. One of the little misunderstandings caused by working exclusively under Windows for 20 years and then one day thrown to OS X/Linux waters.

Upvotes: 3

houbysoft
houbysoft

Reputation: 33402

Since it has an ^M character, the configure file is probably using Windows-style line endings.

Try to convert it to use UNIX-style endings:

dos2unix configure

Then it should run fine when you do

./configure

Also, the No such file directory refers to the interpreter specified in the configure file using the shebang notation, not the configure file itself. It probably can't find it because it is searching for /bin/sh^M whereas it should be searching for /bin/sh.

Upvotes: 2

Related Questions