请教关于rpmbuild的问题
我想把mysql打包成rpm格式
rpmbuild -ba mysql.spec后报了如下错误
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.30787
+ umask 022
+ cd /usr/src/redhat/BUILD
' rm -rf '/usr/src/redhat/BUILD/*
+ cd /usr/src/redhat/BUILD
+ rm -rf mysql-5.1.41
+ /bin/gzip -dc /usr/src/redhat/SOURCES/mysql-5.1.41.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd mysql-5.1.41
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ $'\r'
: command not found787: line 37:
error: Bad exit status from /var/tmp/rpm-tmp.30787 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.30787 (%prep)
谁知道是什么问题吗?
------解决方案-------------------- command not found787: line 37:
error: Bad exit status from /var/tmp/rpm-tmp.30787 (%prep)
应该是 spec文件里面的出错了,,给楼主推荐一个工具,,checkinsatll,制作rpm不用自己写spec哦