在mac(版本10.12.6)上运行时,rpmbuild挂起。使用自制软件安装rpm。安装rpm后,rpmbuild成功,直到出现以下错误
INFO] Building war: /…web/target/project-web-2.8.0-SNAPSHOT.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO]
[INFO] --- rpm-maven-plugin:2.0.1:attached-rpm (default) @ project-web ---
[WARNING] rpm version string truncated to 2.8.0
[INFO] Creating directory /.../web/target/rpm/project
[INFO] Creating directory /.../web/target/rpm/project/BUILD
[INFO] Creating directory /.../web/target/rpm/project/RPMS
[INFO] Creating directory /.../web/target/rpm/project/SOURCES
[INFO] Creating directory /.../web/target/rpm/project/SPECS
[INFO] Creating directory /.../web/target/rpm/project/SRPMS
[INFO] Creating directory /.../web/target/rpm/project/buildroot
[INFO] Copying 1 files to
/.../web/target/rpm/project/buildroot/usr/local/whp-jboss/server/default/deploy
[INFO] Creating spec file /.../web/target/rpm/project/SPECS/project.spec
**[WARNING] /bin/sh: line 1: 7144 Bus error: 10** rpmbuild -bb --buildroot /.../web/target/rpm/project/buildroot --define '_topdir /.../web/target/rpm/project' --target 'noarch-apple-mac os x' project.spec
收到上述错误后,构建挂起。 如果我使用调试选项运行mvn build(mvn -X clean install),则此命令会挂起构建
[DEBUG] About to execute '/bin/sh -c cd '/.../web/target/rpm/project/SPECS' && 'rpmbuild' '-bb' '--target' 'noarch-apple-mac os x' '--buildroot' '/.../web/target/rpm/project/buildroot' '--define' '_topdir /.../web/target/rpm/project' '--define' '_build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' '--define' '_builddir %{_topdir}/BUILD' '--define' '_rpmdir %{_topdir}/RPMS' '--define' '_sourcedir %{_topdir}/SOURCES' '--define' '_specdir %{_topdir}/SPECS' '--define' '_srcrpmdir %{_topdir}/SRPMS' 'project.spec''
当我手动运行命令
时 /bin/sh -c cd
'/.../web/target/rpm/project/SPECS' && 'rpmbuild' '-bb' '--target' 'noarch-apple-mac os x' '--buildroot' '/.../web/target/rpm/project/buildroot' '--define' '_topdir /.../web/target/rpm/project' '--define' '_build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' '--define' '_builddir %{_topdir}/BUILD' '--define' '_rpmdir %{_topdir}/RPMS' '--define' '_sourcedir %{_topdir}/SOURCES' '--define' '_specdir %{_topdir}/SPECS' '--define' '_srcrpmdir %{_topdir}/SRPMS' 'project.spec'
我收到以下回复 构建目标平台:noarch-apple-mac os x 为目标noarch-apple-mac os x构建 错误:无法统计/.../project.spec:m
maven版
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T11:41:47-05:00)
Maven home: /opt/apache-maven-3.3.9
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"
从SPECS目录运行rpmbuild时,rpmbuild挂起
RPM版本4.14.0
答案 0 :(得分:0)
通过删除陈旧锁定解决了问题 cd / usr / local / lib lsof | grep rpm - 检查过时锁定列表并删除 rm -f /usr/local/var/lib/rpmold.28020/.dbenv.lock