在编译生成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

相关文章:

  • 2022-02-05
  • 2022-01-05
  • 2021-11-23
  • 2022-03-03
  • 2022-02-01
猜你喜欢
  • 2021-07-08
  • 2022-01-19
  • 2021-05-26
  • 2021-07-04
相关资源
相似解决方案