Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Verifying Ceph

The following compilation operations apply only to CentOS 7.6. If openEuler 20.03 LTS SP1 is used, refer to Ceph 14.2.8 Porting Guide (CentOS 7.6 & openEuler 20.03).

  1. Configure the compilation environment.
    1. Modify the yum.conf file.
      1. Open the /etc/yum.conf file.
        1
        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.
    2. Install the SCL library.
      yum -y install centos-release-scl
    3. Modify the SCL REPO file.
      1. Open the /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo file.
        1
        vi /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo
        
      2. Press i to enter the insert mode, and then change http to https.

      3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
    4. Modify the ceph.spec file.
      1. Go to the /home/ceph-14.2.8/ directory.
        cd /home/ceph-14.2.8/
      2. Open the ceph.spec.in file.
        1
        vi ceph.spec.in
        
      3. Press i to enter the insert mode and change the SciPy version to python36-scipy.

      4. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
    5. Modify the requirements.txt file in the dashboard folder.
      1. Open the /home/ceph-14.2.8/src/pybind/mgr/dashboard/requirements.txt file.
        1
        vi /home/ceph-14.2.8/src/pybind/mgr/dashboard/requirements.txt
        
      2. Press I to enter the insert mode and comment out pyopenssl.

      3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  2. Install the dependencies.
    1
    2
    3
    4
    yum -y install epel-release
    yum -y install python36-scipy.aarch64
    cd /home/ceph-14.2.8/
    sh install-deps.sh
    
  3. Perform compilation.
    1
    2
    3
    4
    scl enable devtoolset-8 bash
    sh do_cmake.sh
    cd build
    make -j 48
    
  4. Perform a unit test (UT).
    1
    ctest3 -V -R unittest_compression
    

  5. Delete the build directory.
    1
    2
    cd /home/ceph-14.2.8/
    rm -rf build