Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Verifying Ceph

  1. Configure the compilation environment.
    1. Modify the yum.conf file.
      vi /etc/yum.conf

      Add sslverify=false and deltarpm=0 to the file.

    2. Modify the scl repo file.
      yum -y install centos-release-scl
      vi /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo

      Change http to https.

    3. Modify the requirements.txt file in the dashboard folder.
      1
      vi /home/ceph-14.2.8/src/pybind/mgr/dashboard/requirements.txt
      

      Comment out pyopenssl.

  1. Compile and verify Ceph.
    1. Install the dependencies.
      yum -y install epel-release 
      yum -y install python36-scipy.aarch64 
      cd /home/ceph-14.2.8/ 
      sh install-deps.sh
    2. Start the compilation.
      The compilation requires GCC 7 or later. Make the compilation environment ready. In the following information, {number} indicates the number of jobs. Generally, a larger value indicates a faster compilation speed. However, the value cannot exceed the number of CPU cores.
      sh do_cmake.sh 
      cd build 
      make -j{number}
    3. Perform a unit test.
      ctest3 -V -R unittest_erasure_code

    4. Delete the build directory.
      cd /home/ceph-14.2.8/ 
      rm -rf build