c++ - 安装qt中的./configure步骤

标签 c++ xml qt

我正在尝试在 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/

相关文章:

c - Q线程 : how to stop an infinite loop

c++ - Qt 没有正确安装

c++ - 如何将 char 和 int 存储在同一个变量中?

c++ - 这个合并排序代码有什么问题?

java - JDOM2 和 XPath

android - 我可以在 string.xml 中的字符串资源中使用字符串资源吗?

qt - 在 Ubuntu 21.04 上安装 Qt5

c++ - QML 指针处理程序和处理抓取更改

c++ - 清除 multi_index_container

java - 使用 Java 创建基于另一个 XML 的 XML