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

- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo file.
- Modify the ceph.spec file.
- Go to the /home/ceph-14.2.8/ directory.
cd /home/ceph-14.2.8/
- Open the ceph.spec.in file.
1vi ceph.spec.in - Press i to enter the insert mode and change the SciPy version to python36-scipy.

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

- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the /home/ceph-14.2.8/src/pybind/mgr/dashboard/requirements.txt file.
- Modify the yum.conf file.
- 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
- Perform compilation.
1 2 3 4
scl enable devtoolset-8 bash sh do_cmake.sh cd build make -j 48
- Perform a unit test (UT).
1ctest3 -V -R unittest_compression

- Delete the build directory.
1 2
cd /home/ceph-14.2.8/ rm -rf build
Parent topic: Compiling and Deploying Ceph