Compiling and Installing the UCX Package
Compile and deploy the UCX open source software package, including compiling and building the RPM packages required for compiling Ceph.
- Obtain the UCX open source software package.
wget https://github.com/openucx/ucx/releases/download/v1.14.1/ucx-1.14.1-1.el7.src.rpm --no-check-certificate
To obtain the package, see Table 2.
- Define the directory for building RPM packages.
- Open the /root/.rpmmacros file.
vi /root/.rpmmacros
- Press i to enter the insert mode, set %_topdir to the RPM package build directory (/root/rpmbuild for example), and comment out other lines.
%_topdir /root/rpmbuild
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Create a build directory in the rpmbuild directory.
yum install rpmdevtools rpmdev-setuptree
- Open the /root/.rpmmacros file.
- Install the UCX RPM package.
1rpm -ivh ucx-1.14.1-1.el7.src.rpm
- Install the dependencies.
yum insatall libibverbs-devel librdmacm-devel libtool numactl-devel
- Compile and build RPM packages. In the rpmbuild directory, compile and build the ucx.spec file to generate RPM packages.
cd /root/rpmbuild/SPECS rpmbuild -bb ucx.spec
After the build is complete, eight RPM packages are generated in the /root/rpmbuild/RPMS/aarch64 directory, as shown in the following figure.

- Install the RPM packages.
cd /root/rpmbuild/RPMS/aarch64
1 2 3 4 5 6 7 8
rpm -ivh ucx-1.14.1-1.aarch64.rpm rpm -ivh ucx-cma-1.14.1-1.aarch64.rpm rpm -ivh ucx-debuginfo-1.14.1-1.aarch64.rpm rpm -ivh ucx-debugsource-1.14.1-1.aarch64.rpm rpm -ivh ucx-devel-1.14.1-1.aarch64.rpm rpm -ivh ucx-ib-1.14.1-1.aarch64.rpm rpm -ivh ucx-rdmacm-1.14.1-1.aarch64.rpm rpm -ivh ucx-static-1.14.1-1.aarch64.rpm
Parent topic: Compiling and Installing UCX and Ceph Software Packages