在 RHEL 6.6 上安装 qt-creator 4.2.1 后出现错误“未找到版本‘GLIBC_2.14’”

在 RHEL 6.6 上安装 qt-creator 4.2.1 后出现错误“未找到版本‘GLIBC_2.14’”

我能够在我的系统 (RHEL 6.6) 上安装 Qt-5.8.0。安装后,我还将其添加到$PATH。现在,当我输入时,qmake --version我得到以下输出:

QMake version 3.1
Using Qt version 5.8.0 in /usr/local/Qt-5.8.0/lib

当我输入时,echo $PATH我得到以下输出:

/usr/local/Qt-5.8.0/bin:/usr/local/Qt-5.8.0/bin:/root/gcc-4.8.2/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-1.b13.el6.x86_64/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-1.b13.el6.x86_64/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/apache/apache-ant-1.9.9/bin:/root/bin:/usr/apache/apache-ant-1.9.9/bin

但是,qt-creator 没有随 Qt-5.8.0 安装。所以我去了此链接并点击选项“Qt Creator 4.2.1 for Linux 64-bit (93 MB)”。这导致可执行文件qt-creator-opensource-linux-x86_64-4.2.1.run被下载到我的下载文件夹中。

在安装过程中,系统要求我选择安装 qt-creator 的文件夹。因此,我在 中创建了一个名为 的新文件夹qtcreator。安装过程完成后,我通过终端/usr/local进入并输入命令。它给出了以下输出:/usr/local/qtcreator/bin./qtcreator

./qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./qtcreator)
./qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/qtcreator/libExtensionSystem.so.4)
./qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/qtcreator/libAggregation.so.4)
./qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/qtcreator/libUtils.so.4)
./qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/Qt/lib/libQt5Widgets.so.5)
./qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/Qt/lib/libQt5Gui.so.5)
./qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/Qt/lib/libQt5Concurrent.so.5)
./qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/Qt/lib/libQt5Network.so.5)
./qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/Qt/lib/libQt5Core.so.5)
./qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5)

bin 文件夹包含以下文件:

qbs            qbs-qmltypes       qbs-setup-toolchains  qtcreator.sh
qbs-config     qbs-setup-android  qt.conf
qbs-config-ui  qbs-setup-qt       qtcreator

当我输入时,./qtcreator.sh我得到以下输出:

[root@gksrv bin]# ./qtcreator.sh
/usr/local/qtcreator/bin/qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/qtcreator)
/usr/local/qtcreator/bin/qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/qtcreator/libExtensionSystem.so.4)
/usr/local/qtcreator/bin/qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/qtcreator/libAggregation.so.4)
/usr/local/qtcreator/bin/qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/qtcreator/libUtils.so.4)
/usr/local/qtcreator/bin/qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/Qt/lib/libQt5Widgets.so.5)
/usr/local/qtcreator/bin/qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/Qt/lib/libQt5Gui.so.5)
/usr/local/qtcreator/bin/qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/Qt/lib/libQt5Concurrent.so.5)
/usr/local/qtcreator/bin/qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/Qt/lib/libQt5Network.so.5)
/usr/local/qtcreator/bin/qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/Qt/lib/libQt5Core.so.5)
/usr/local/qtcreator/bin/qtcreator: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/qtcreator/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5)

qt-creator 和 Qt-5.8.0 是否互相不兼容?如果 Qt-5.8.0 可以运行,为什么 qt-creator 不能运行?

是否绝对有必要为 qt-creator 安装libc.so. 6?我以为安装 Qt-5.8.0 可以解决所有这些依赖关系。

相关内容