Rate This Document
Findability
Accuracy
Completeness
Readability

openEuler 20.03

Compiling the liboath-devel Package

  1. 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.

  2. 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
  3. Compile the RPM package.
    1
    2
    cd /home/oath-toolkit
    rpmbuild -bb oath-toolkit.spec
    
  4. 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 .
    
  5. Configure the repo file.
    1. Open the local.repo file.
      1
      vi /etc/yum.repos.d/local.repo
      
    2. 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
      
    3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  6. Refresh the Yum cache.
    1
    yum clean all && yum makecache
    

Compiling Ceph

  1. 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
  2. Modify the yum.conf file.
    1. Open the yum.conf file.
      vi /etc/yum.conf
    2. Press i to enter the insert mode. Add sslverify=false and deltarpm=0 to the end of the file.

    3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  1. The isa-l version of the Ceph 14.2.8 source code is early. Upgrade it as follows:
    1. Go to the src directory.
      cd /home/ceph-14.2.8/src
    2. 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   
    3. 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/

  2. Install liboath dependencies.
    yum install liboath liboath-devel -y
  3. 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
  4. 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