码迷,mamicode.com
首页 > 其他好文 > 详细

制作rpm包报错问题

时间:2017-03-22 18:08:50      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:制作   option   解决   lin   strong   ***   nbsp   代码   打包   

在编译生成rpm包时,报错

ERROR   0001: file ‘***‘   contains a standard rpath ‘/usr/lib64‘
这是由于代码理由hardcode导致,解决问题有两种办法:
一种是打包的时候忽略这个错误
QA_RPATHS=0x0001 rpmbuild -ba php-5.6.30.spec
还一种是
There are two ways to get around this. The first is to comment out the /usr/lib/rpm/check-rpaths line from the $HOME/.rpmmacrosand then rerun the rpmbuild command.
The second option is to tell rpmbuild to ignore standard RPATHs by running rpmbuild as follows:
参考文档:
http://giovannitorres.me/how-to-build-rpms-collectd-example.html

制作rpm包报错问题

标签:制作   option   解决   lin   strong   ***   nbsp   代码   打包   

原文地址:http://www.cnblogs.com/mikeluwen/p/6601048.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!