我要评分
获取效率
正确性
完整性
易理解

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
      vi /etc/yum.conf
      

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

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

      Change http to https.

    3. Modify the ceph.spec file.
      1
      2
      cd /home/ceph-14.2.8/
      vi ceph.spec.in
      

      Change the SciPy version to python36-scipy.

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

  2. Install the dependency.
    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