使用python 2.7在centos机器上安装wxPython

时间:2014-08-11 19:09:30

标签: python centos wxpython

我正在使用python 2.7在centos机器上安装WxPython 3.0。

即使使用disable-mediactrl,安装也会搜索GSTreamer并提供错误

configure: error: GStreamer not available
尽管GSTreamer可以在机器上使用,但仍然可以使用。

以下是两个此类构建的详细信息:

我的想法是关闭mediactrl,所以我使用以下选项

python build-wxpython.py --extra_setup=disable-mediactrl  --build_dir=../bld

python build-wxpython.py --extra_setup="--disable-mediactrl  --build_dir=../bld

但是,它仍会搜索GSTreamer并输出下面列出的错误消息。我重新安装了GSTreamer 0.10并进入\usr\lib\GSTreamer 0.10,但是,我收到了相同的错误消息

错误消息:

checking what is the type of the third argument of getsockname... socklen_t checking what is the type of the fifth argument of getsockopt... socklen_t checking for linux/joystick.h... yes checking for python... /home/aptRoot/tools/python/64/Python-2.7/bin/python checking for WEBKIT... configure: WARNING: webkitgtk not found. configure: WARNING: WebKit not available, disabling wxWebView checking for CAIRO... yes checking for cairo_push_group... yes checking for GST... configure: WARNING: GStreamer 0.10 not available, falling back to 0.8 checking for GST... configure: WARNING: GStreamer 0.8/0.10 not available. configure: error: GStreamer not available Error running configure ERROR: failed building wxWidgets Traceback (most recent call last):   File "build-wxpython.py", line 378, in <module>
    wxbuild.main(wxscript, build_options)   File "/home/hemadris/iAPT/install/wxPython-src-3.0.0.0/build/tools/build-wxwidgets.py", line 364, in main
    "Error running configure")   File "/home/hemadris/iAPT/install/wxPython-src-3.0.0.0/build/tools/build-wxwidgets.py", line 80, in exitIfError
    raise builder.BuildError(msg) BuildError

2 个答案:

答案 0 :(得分:4)

我发现做yum install gstreamer-plugins-base-devel会为它提供所需的依赖关系。转到wx PyPi页面查看依赖项列表。

答案 1 :(得分:-1)

即使我在centos 6.4上尝试过installin wxPython 3.0.0.0版本但遇到了同样的错误

尝试此命令

rpm -qa | grep gstreamer

..检查您的操作系统中是否有可用的gstreamer开发包。

如果没有,则运行configure,make,make install命令

如果我们遵循构建方法,那么_html.cpp

中也会出现一些错误