Compiling Server Installation Packages
The /home directory must be 32 GB or larger.
Ensure that the RPM package in step 3 of section 4.3 has been installed.
- Create a server directory.
1mkdir -p /home/server
- Save ceph-14.2.8.tar.gz and globalcache-ceph-adaptor-server.patch to the /home/server directory. Decompress ceph-14.2.8.tar.gz and install the patch for the source code.
1 2 3
cd /home/server tar -zxvf ceph-14.2.8.tar.gz patch -p1 < globalcache-ceph-adaptor-server.patch
- Compile Ceph.
To compile cephlib on the server, set -DCMAKE_BUILD_TYPE=release in do_cmake.sh. Otherwise, the debug package will be compiled.
1 2 3 4
cd ceph-14.2.8 sh do_cmake.sh cd build make -j64
- Create a temporary directory cephlib, copy the library files required by the server to the temporary directory, and package the files.
1 2 3 4 5 6 7 8
mkdir -p /home/server/cephlib cp -r lib/libceph-common.so* /home/server/cephlib cp -r lib/librados.so* /home/server/cephlib cp -r lib/libcls_rgw.so* /home/server/cephlib cp -r lib/libcls_lock.so* /home/server/cephlib cp -r lib/librbd.so* /home/server/cephlib cd /home/server tar zcvf cephlib.tar.gz cephlib/
Parent topic: Software Compilation