Note: Refer to Build Dependencies for details of build dependencies.
As root:
rpmbuild --rebuild enterpriseonload-<version>.src.rpm
Or as a non-root user:
It is advised to use _topdir to ensure that RPMs are built into a directory to which the user has permissions. The directory structure must pre-exist for the rpmbuild command to succeed.
mkdir -p /tmp//myrpm/{SOURCES,BUILD,RPMS,SRPMS}
rpmbuild --define "_topdir /tmp/myrpm" \
--rebuild enterpriseonload-<version>.src.rpm
Note: On some non-standard kernels the rpmbuild might fail because of build dependencies. In this event retry, adding the
--nodeps
option to the command line.Building the source RPM will produce two binary RPM files which can be found in one of the following directories:
- /usr/src/*/RPMS/
- _topdir/RPMS (when built by a non-root user)
- /tmp/myrpm/RPMS/x86_64/ (when _topdir was defined in the rpmbuild command line).
For example, the user-space components:
/usr/src/redhat/RPMS/x86_64/enterpriseonload-<version>.x86_64.rpm
and the kernel components:
/usr/src/redhat/RPMS/x86_64/enterpriseonload-kmod-2.6.18-92.el5-<version>.x86_64.rpm