我正在尝试在 CentOS 6 上构建 Mercurial,所以这是我目前所做的:
我得到了 mercurial 的最新资源,文件名为mercurial-2.4.1.tar.gz
我尝试在其上运行 rpmbuild 并得到以下信息:
# rpmbuild -tb mercurial-2.4.1.tar.gz
error: File /home/someuser/rpms/mercurial/mercurial-snapshot.tar.gz: No such file or directory
所以我尝试通过从另一个人那里复制来创建它想要的文件:
# cp mercurial-2.4.1.tar.gz mercurial-snapshot.tar.gz
我再试一次,似乎通过了之前的错误:
# rpmbuild -tb mercurial-2.4.1.tar.gz
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.vV9ZXc
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf mercurial-snapshot
+ /usr/bin/gzip -dc /home/someuser/rpms/mercurial/mercurial-snapshot.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd mercurial-snapshot
/var/tmp/rpm-tmp.vV9ZXc: line 34: cd: mercurial-snapshot: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.vV9ZXc (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.vV9ZXc (%prep)
我不确定发生了什么,我的猜测是 rpmbuild 无法创建文件......有什么想法吗?