shirin
shirin

Reputation: 175

./configure step in Installing qt

I am trying to install Qt on my Ubuntu Linux for using its libraries in reading XML files. I downloaded it from Qt Submodules and started to install step by step according the instruction in the Qt for Linux/X11 - Building from Source web page.

Things when well until I issued ./configure at the step 3. Then this error is appeared:

bash: ./configure: No such file or directory

These are my code lines:

cd /tmp
gunzip qt-everywhere-opensource-src-%VERSION%.tar.gz        # uncompress the archive
tar xvf qt-everywhere-opensource-src-%VERSION%.tar          # unpack it
cd /tmp/qt-everywhere-opensource-src-%VERSION%
   ./configure

I am confused that what should I do? I can not find configure...

Thanks in advance for your helpful answers.

Upvotes: 2

Views: 1038

Answers (2)

Payne
Payne

Reputation: 474

For those who came into this question with same answer, but for Qt5..

From the official website:

If you download a Zip source package, you will need to convert Windows-style line endings (CR/LF) to Unix-style line-endings (LF) when you uncompress the package. To do this, give the "-a" option when you run the "unzip' command.If you fail to supply the "-a" option when unzipping the package, you will see the following error message when you attempt to execute the configure command: "bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory"

So be sure to supply the -a option when uzipping Take a look at this link: http://www.stackoverflow.com/questions/2920416/configure-bin-shm-bad-interpreter

This answer does not work anymore, becouse all files in zip archive are tagged as binary (even configure text files). Only way to make it work is download xxx.tar.xz file, and open it by tar -xf xxx.tar.xz. If TAR.XZ file is not recognized, use -J parameter (tar -xJf xxx.tar.xz).

Upvotes: 2

TheJavaFan
TheJavaFan

Reputation: 339

From the official website:

If you download a Zip source package, you will need to convert Windows-style line endings (CR/LF) to Unix-style line-endings (LF) when you uncompress the package. To do this, give the "-a" option when you run the "unzip' command.If you fail to supply the "-a" option when unzipping the package, you will see the following error message when you attempt to execute the configure command: "bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory"

So be sure to supply the -a option when uzipping Take a look at this link: http://www.stackoverflow.com/questions/2920416/configure-bin-shm-bad-interpreter

Upvotes: 2

Related Questions