红联Linux门户
Linux帮助

重新打源码包gstreamer-plugins-base.src.rpm错误.

发布时间:2012-05-03 13:46:58来源:红联作者:dlshanghai
在重新打源码包时出现:
/bin/sh: moc: command not found
make[4]: *** [moc_qtgv-xoverlay.cpp] Error 127
make[4]: Leaving directory `/root/rpmbuild/BUILD/gst-plugins-base-0.10.29/tests/examples/overlay'
make[3]: *** [overlay] Error 2
make[3]: Leaving directory `/root/rpmbuild/BUILD/gst-plugins-base-0.10.29/tests/examples'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/gst-plugins-base-0.10.29/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/gst-plugins-base-0.10.29'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.UlYMvt (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.UlYMvt (%build)

请问这如何解决?
文章评论

共有 1 条评论

  1. alick 于 2012-05-07 18:46:37发表:

    缺少 moc 命令,它由 qt-devel 包提供,所以先安装 qt-devel。

    另外,为了安全起见,不要用root身份做rpmbuild。

    这里有一个打包指南:
    https://fedoraproject.org/wiki/How_to_create_an_RPM_package/zh-cn