解决 rpmbuild 打包后安装错误

rpmbuild 打包后安装所打的包出现错误:

# rpm -ivh my-test-3.3.i386.rpm
rpm: rpmte.c:530: rpmteColorDS: Assertion `ix < Count' failed.
Aborted

找到一解决方法  %define _use_internal_dependency_generator  0  至 spec 文件
如下:

Name:my-test
Version:3.3
Release:1
Summary:my test 3.3
Group:Applications/Tools
License:Commercial
Vendor: No name
Packager:www.no-name.com
Autoreq: no
Requires:bash,libxml2,openssl

%define _use_internal_dependency_generator 0

%description
My test

%files
........

重新打包 !! 然后安装



参考:

http://adrian.heissler.at/blog/2010/05/index.html


rhel 5 与  rhel 6 之 rpmbuild 差别:

http://www.centos.bz/2012/06/file-not-found-root-rpmbuild-buildroot/

你可能感兴趣的:(bash,generator,2010)