在CentOS 6.0上安装PyQt 4.9失败 [英] Installing PyQt 4.9 on CentOS 6.0 Fails

查看:345
本文介绍了在CentOS 6.0上安装PyQt 4.9失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完全受够了这个问题.我正在尝试在CentOS 6.0上运行的服务器上安装PyQt 4.9.安装后,我会得到这样的声音

I'm totally fed up with this problem. I'm trying to install PyQt 4.9 on my server running on CentOS 6.0. When I install it, I get like this

[root@myserver PyQt]# python3 configure.py -k
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.9 (licensed under the GNU General Public
License) for Python 3.2.2 on linux2.

Type '2' to view the GPL v2 license.
Type '3' to view the GPL v3 license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? yes
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
Checking to see if the QtHelp module should be built...
Checking to see if the QtMultimedia module should be built...
Checking to see if the QtNetwork module should be built...
Checking to see if the QtDBus module should be built...
Checking to see if the QtDeclarative module should be built...
Checking to see if the QtOpenGL module should be built...
Checking to see if the QtScript module should be built...
Checking to see if the QtScriptTools module should be built...
Checking to see if the QtSql module should be built...
Checking to see if the QtSvg module should be built...
Checking to see if the QtTest module should be built...
Checking to see if the QtWebKit module should be built...
Checking to see if the QtXml module should be built...
Checking to see if the QtXmlPatterns module should be built...
Checking to see if the phonon module should be built...
Checking to see if the QtAssistant module should be built...
QtDesigner module disabled with static Qt libraries.
Checking to see if the dbus support module should be built...
DBus v1 does not seem to be installed.
Qt v4.6.2 free edition is being used.
SIP 4.13.1 is being used.
The Qt header files are in /usr/include.
The static Qt libraries are in /usr/lib.
The Qt binaries are in /usr/lib/qt4/bin.
The Qt mkspecs directory is in /usr/lib/qt4.
These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,
QtNetwork, QtDBus, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg, QtTest,
QtXml, QtXmlPatterns, phonon, QtAssistant.
The PyQt Python package will be installed in
/usr/local/lib/python3.2/site-packages.
PyQt is being built with generated docstrings.
PyQt is being built with 'protected' redefined as 'public'.
The Designer plugin will be installed in /usr/lib/qt4/plugins/designer.
The PyQt .sip files will be installed in /usr/local/share/sip/PyQt4.
pyuic4, pyrcc4 and pylupdate4 will be installed in /usr/local/bin.
Generating the C++ source for the QtCore module...
Creating the Makefile for the QtCore module...
Generating the C++ source for the QtGui module...
Creating the Makefile for the QtGui module...
Generating the C++ source for the QtHelp module...
Creating the Makefile for the QtHelp module...
Generating the C++ source for the QtMultimedia module...
Creating the Makefile for the QtMultimedia module...
Generating the C++ source for the QtNetwork module...
Creating the Makefile for the QtNetwork module...
Generating the C++ source for the QtDBus module...
sip: QDBusPendingCall has not been defined
Error: Unable to create the C++ code.

我正在使用

Python 3.2 喝4.13 Qt 4.7.4(4.8 RC)

Python 3.2 sip 4.13 Qt 4.7.4 (4.8 RC)

任何帮助表示赞赏.

谢谢

推荐答案

我在CentOS5.3上遇到了相同的问题,我的Qt版本是4.2.1.检查pyqt4.9(sip/QtDBus/qdbuspendingcall.sip)中的代码后,我发现它需要Qt 4.7.x,但是您的qt版本是4.6.2.我升级了Qt并解决了问题. 希望对您有所帮助.

I encountered the same problem on CentOS5.3, and my Qt version is 4.2.1. After checking the code in pyqt4.9 (sip/QtDBus/qdbuspendingcall.sip), I found it required the Qt 4.7.x, yet your qt version is 4.6.2. I upgraded my Qt and solved the problem. Hope it is helpful.

这篇关于在CentOS 6.0上安装PyQt 4.9失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆