CentOS: Apache Maven: /bin/sh: rpmbuild: command not found

Автор: | 09/02/2013
 

centos-logo-01Сборка проекта с помощью Apache Maven остановилась с такой ошибкой:

[WARNING] /bin/sh: rpmbuild: command not found
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] RPM build execution returned: '127' executing '/bin/sh -c cd /home/setevoy/***/SPECS && rpmbuild -bb --buildroot /home/setevoy/***/buildroot --define '_topdir /home/setevoy/***' --target noarch-redhat-linux limits-admin.spec'

Решение — установить пакет rpm-build:

# yum search rpm-build
...                                                                                                                                                                                                 | 3.4 kB     00:00
========================================================================================================== N/S Matched: rpm-build ===========================================================================================================
rpm-build.i686 : Scripts and executable programs used to build packages
# yum -y install rpm-build.i686

Повторный запуск сборки:

[INFO] limits-admin .......................................... SUCCESS [10.766s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL