我正在尝试在 Ubuntu Linux 上安装 Qt,以便使用它的库来读取 XML 文件。我是从Qt Submodules下载的并按照Qt for Linux/X11 - Building from Source中的说明开始一步步安装网页。
一切都很好,直到我在第3步发出./configure
。然后出现了这个错误:
bash: ./configure: No such file or directory
这些是我的代码行:
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
我很困惑,我该怎么办?我找不到配置...
预先感谢您提供有用的答案。
最佳答案
来自官方网站:
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"
所以一定要在压缩时提供 -a 选项 看看这个链接:http://www.stackoverflow.com/questions/2920416/configure-bin-shm-bad-interpreter
关于c++ - 安装qt中的./configure步骤,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29647007/