我们的生产服务器运行CentOS5 64位arch.
因为目前没有适用于sqlite最新版本(v3.7.3)的RPM,所以我第一次使用rpmbuild创建RPM,遵循给定的指令here.我能够成功创建64位(x86_64)架构的RPM.但我无法为32位(i386)架构创建RPM.它因以下错误而失败:
... ... ... + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-threadsafe checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking for x86_64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. error: Bad exit status from /var/tmp/rpm-tmp.73141 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.73141 (%build)
这是我调用的命令:rpmbuild –target i386 -ba sqlite.spec
我的问题是,如何从64位arch服务器创建32位arch的RPM?
mock -r fedora-14-i386 --rebuild foo.srpm