标签:
1,centos linux系统必须预先以安装x Server(KDE or GNOME)
2,wget http://download.qt-project.org/official_releases/qt/5.4/5.4.0/qt-opensource-linux-x64-5.4.0.run (软件包下载链接)
http://download.qt.io/official_releases/qt/5.4/5.4.0/ (软件介质参考链接)
3,问题解决
Error during installation process (qt.54.gcc_64):
Execution
failed(Unexpected exit code: 1):
"/opt/Qt5.4.0//Tools/QtCreator/bin/sdktool addQt --id qt.54.gcc_64
--name Qt %{Qt:Version} GCC 64bit --type
Qt4ProjectManager.QtVersion.Desktop --qmake
/opt/Qt5.4.0/5.4/gcc_64/bin/qmake"
Error during installation process (qt.54.gcc_64):
Execution
failed(Unexpected exit code: 1):
"/opt/Qt5.4.0//Tools/QtCreator/bin/sdktool addQt --id qt.54.gcc_64
--name Qt %{Qt:Version} GCC 64bit --type
Qt4ProjectManager.QtVersion.Desktop --qmake
/opt/Qt5.4.0/5.4/gcc_64/bin/qmake"
可以看到没有GLIBCXX_3.4.15这个版本,下载一个新版本
http: //ftp.de.debian.org/debian/pool/main/g/gcc-4.7/libstdc++6_4.7.2-5_i386.deb |
4.解压文件
ar -x libstdc++6_4.7.2-5_i386.deb tar -zxvf data.tar.gz |
出现usr文件夹。进入usr/lib/i386-linux-gnu目录
cd usr/lib/i386-linux-gnu |
5.将libstdc++.so.6.0.17文件复制到 /usr/lib 文件夹下面
sudo cp libstdc++.so.6.0.17 /usr/lib |
6.进入/usr/lib文件夹下,建立新的软链接
sudo ln -sf libstdc++.so.6.0.17 libstdc++.so.6 |
7.再查看一次
strings /usr/lib/libstdc++.so.6 | grep GLIBC |
关键在“qmake” is missing from my PATH错误解决
三、安装完Qt5之后,再安装PyQt5:
http://www.riverbankcomputing.co.uk/software/pyqt/download5
python configure.py --qmake /usr/local/Cellar/qt5/5.3.1/bin/qmake
make
make install
参考:
PyQt: http://www.pythoncentral.io/install-pyside-pyqt-on-windows-mac-linux/
http://fr.wikibooks.org/wiki/PyQt/Installation/Linux
http://www.time-eater.net/?p=302
http://www.jianshu.com/p/7mqAmr
标签:
原文地址:http://www.cnblogs.com/x113/p/4478088.html