【问题标题】:wxPython src rpm build failswxPython src rpm 构建失败
【发布时间】:2014-11-03 22:19:08
【问题描述】:

我想在我的 Centos6 机器上安装 wxPython2.8-2.8.12.1-1.src.rpm 并使用此处提供的 src rpm http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/

我以 root 身份执行此操作:

rpmbuild --rebuild wxPython2.8-2.8.12.1-1.src.rpm

最后我得到了:

running install_egg_info
Writing /root/rpmbuild/BUILDROOT/wxPython2.8-2.8.12.1-1.x86_64/usr/lib64/python2.6/site-packages/wx-2.8-gtk2-unicode/wxPython-2.8.12.1-py2.6.egg-info
warning: wx_install: path file '/root/rpmbuild/BUILDROOT/wxPython2.8-2.8.12.1-1.x86_64/usr/lib64/python2.6/site-packages/wx-2.8-gtk2-unicode.pth' not created
running build_ext
running install
running build
running build_py
running install_lib
creating /root/rpmbuild/BUILDROOT/wxPython2.8-2.8.12.1-1.x86_64/usr/lib/python2.6
creating /root/rpmbuild/BUILDROOT/wxPython2.8-2.8.12.1-1.x86_64/usr/lib/python2.6/site-packages
copying build-gtk2.unicode/lib/wxversion.py -> /root/rpmbuild/BUILDROOT/wxPython2.8-2.8.12.1-1.x86_64/usr/lib/python2.6/site-packages
byte-compiling /root/rpmbuild/BUILDROOT/wxPython2.8-2.8.12.1-1.x86_64/usr/lib/python2.6/site-packages/wxversion.py to wxversion.pyc
running install_data
copying src/wx.pth -> /root/rpmbuild/BUILDROOT/wxPython2.8-2.8.12.1-1.x86_64/usr/lib/python2.6/site-packages/
running install_egg_info
Writing /root/rpmbuild/BUILDROOT/wxPython2.8-2.8.12.1-1.x86_64/usr/lib/python2.6/site-packages/wxPython_common-2.8.12.1-py2.6.egg-info
+ rm /root/rpmbuild/BUILDROOT/wxPython2.8-2.8.12.1-1.x86_64/usr/lib/wxPython-2.8.12.1-gtk2-unicode/bin/wx-config
+ strip '/root/rpmbuild/BUILDROOT/wxPython2.8-2.8.12.1-1.x86_64/usr/lib*/python2.4/site-packages/wx-2.8*-gtk2-unicode/wx/*.so'
strip: '/root/rpmbuild/BUILDROOT/wxPython2.8-2.8.12.1-1.x86_64/usr/lib*/python2.4/site-packages/wx-2.8*-gtk2-unicode/wx/*.so': No such file
error: Bad exit status from /var/tmp/rpm-tmp.yji3iJ (%install)


RPM build errors:
    user robind does not exist - using root
    group robind does not exist - using root
    user robind does not exist - using root
    group robind does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.yji3iJ (%install)

有什么解决办法吗?

我在 64 位 CentOS 版本 6.5 上使用 python 版本 2.6.6

【问题讨论】:

    标签: centos wxpython rpm centos6 rpmbuild


    【解决方案1】:

    该 SRPM 中的规范文件中似乎有问题。

    注意错误中的路径是如何谈论python2.4 的?以及较早的路径(例如在复制行中)如何正确使用python2.6

    规范文件中的某些内容没有以某种方式从正确的位置获取路径。

    你必须查看规范文件,看看你是否能解决这个问题,或者向 wxpython 人员提交错误,然后看看他们怎么说。

    您还可以检查分发包中的补丁,看看是否有任何补丁解决了这个问题。

    【讨论】:

    • 我试图找到这个但是:如何从 .src.rpm 中提取规范?
    • mkdir wxpython-extract; cd wxpython-extract; rpm2cpio ../wxPython2.8-2.8.12.1-1.src.rpm | cpio -id 会将其全部提取到本地。您也可以始终只安装 SRPM,它将其文件放入您的 rpm 配置指定的 RPM 构建/规范文件位置(我相信)。
    猜你喜欢
    • 1970-01-01
    • 2016-09-05
    • 2011-11-14
    • 1970-01-01
    • 2016-03-02
    • 2015-10-14
    • 2021-05-26
    • 2017-09-08
    • 2021-02-17
    相关资源
    最近更新 更多