C/C++ code$ rpmbuild -bb test.spec

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.94011

+ umask 022

+ cd /usr/src/redhat/BUILD

+ LANG=C

+ export LANG

+ unset DISPLAY

+ cd /usr/src/redhat/BUILD

+ rm -rf php_rpm_test-1.0.1

+ /bin/gzip -dc /usr/src/redhat/SOURCES/php_rpm_test-1.0.1.tar.gz

+ tar -xf -

tar: index.php: Cannot open: File exists

tar: Error exit delayed from previous errors

error: Bad exit status from /var/tmp/rpm-tmp.94011 (%prep)

RPM build errors:

Bad exit status from /var/tmp/rpm-tmp.94011 (%prep)

[qianhaiqing@nginx+tomcat SPECS]$ sudo rpmbuild -bb test.spec

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.53914

+ umask 022

+ cd /usr/src/redhat/BUILD

+ LANG=C

+ export LANG

+ unset DISPLAY

+ cd /usr/src/redhat/BUILD

+ rm -rf php_rpm_test-1.0.1

+ /bin/gzip -dc /usr/src/redhat/SOURCES/php_rpm_test-1.0.1.tar.gz

+ tar -xf -

+ STATUS=0

+ '[' 0 -ne 0 ']'

+ cd php_rpm_test-1.0.1

/var/tmp/rpm-tmp.53914: line 36: cd: php_rpm_test-1.0.1: No such file or directory

error: Bad exit status from /var/tmp/rpm-tmp.53914 (%prep)

RPM build errors:

Bad exit status from /var/tmp/rpm-tmp.53914 (%prep)

Logo

更多推荐