openEuler 20.03
Compiling the liboath-devel Package
- Download the source code and patch.
1 2
cd /home git clone https://gitee.com/src-openeuler/oath-toolkit.git
After you run the preceding command, an error may be reported stating "SSL certificate problem: self signed certificate in certificate chain." This error is caused by an
SSL authentication failure. You can run the git config --global http.sslVerify false command to disable SSL authentication and run the preceding command again to avoid this issue. - Move the patch file and source package to the /root/rpmbuild/SOURCES directory.
rpmdev-setuptree cp /home/oath-toolkit/0001-oath-toolkit-2.6.5-lockfile.patch /home/oath-toolkit/oath-toolkit-2.6.5.tar.gz /root/rpmbuild/SOURCES
- Compile the RPM package.
1 2
cd /home/oath-toolkit rpmbuild -bb oath-toolkit.spec
- Use the compiled RPM package as the local Yum source.
1 2 3 4
mkdir -p /home/rpm/oath cp -r /root/rpmbuild/RPMS/* /home/rpm/oath/ yum install -y createrepo cd /home/rpm/oath && createrepo .
- Configure the repo file.
- Open the local.repo file.
1vi /etc/yum.repos.d/local.repo - Press i to enter the insert mode and add the following content to the end of the file:
1 2 3 4 5 6
[local-oath] name=local-oath baseurl=file:///home/rpm/oath enabled=1 gpgcheck=0 priority=1
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the local.repo file.
- Refresh the Yum cache.
1yum clean all && yum makecache
Compiling Ceph
- Download the Ceph source package listed in Software Requirements, save the source package to the /home directory, and decompress the package.
cd /home && tar -zxvf ceph-14.2.8.tar.gz
- Modify the yum.conf file.
- Open the yum.conf file.
vi /etc/yum.conf
- Press i to enter the insert mode. Add sslverify=false and deltarpm=0 to the end of the file.

- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the yum.conf file.
- The isa-l version of the Ceph 14.2.8 source code is early. Upgrade it as follows:
- Go to the src directory.
cd /home/ceph-14.2.8/src
- Back up the original isa-l and download the latest isa-l.
mv isa-l isa-l.bak git clone https://github.com/intel/isa-l.git
- After the upgrade is complete, the aarch64 directory exists in /home/ceph-14.2.8/src/isa-l/erasure_code/.
ll /home/ceph-14.2.8/src/isa-l/erasure_code/

- Go to the src directory.
- Install liboath dependencies.
yum install liboath liboath-devel -y
- Pack the modified Ceph source code into a new package in the tar.bz2 format.
cd /home && tar -zcvf ceph-14.2.8.tar.bz2 ceph-14.2.8
- Compile the new Ceph package.
1 2 3 4 5
rpmdev-setuptree cp ceph-14.2.8/ceph.spec /root/rpmbuild/SPECS/ cp ceph-14.2.8.tar.bz2 /root/rpmbuild/SOURCES/ cd /root/rpmbuild/SPECS/ rpmbuild -ba ceph.spec
Parent topic: Compiling Ceph