在CentOS机器上使用Python 2.7安装wxPython
我在一台运行Python 2.7的CentOS机器上安装WxPython 3.0。
即使我关闭了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 个回答
-1
我也尝试在centos 6.4上安装wxPython 3.0.0.0版本,但遇到了同样的错误。
试试这个命令:
rpm -qa | grep gstreamer
..来检查你的操作系统中是否有gstreamer开发包。
如果没有的话,就运行configure、make和make install这几个命令。
如果我们按照构建的方法来做,_html.cpp文件里也会出现一些错误。
4
我发现用 yum install gstreamer-plugins-base-devel
这个命令可以安装它所需要的依赖项。你可以去 wx 的PyPi页面查看依赖项的列表。