Ceph原始碼編譯

2021-07-10 01:37:26 字數 2074 閱讀 7362

研究ceph不編譯一下原始碼好像是說不過去的。再者,通過原始碼編譯安裝ceph,裝搭建的集群也要穩定的多!

因而在此,總結一下ceph原始碼編譯過程中遇到的問題以及相應的解決方法,希望多少能提供一些幫助!

本人環境:centos7.0 ceph_v0.94

編譯:

# cd ./ceph

# ./autogen.sh

# ./configure (本人:./configure –prefix /usr/local)

解決:

3、configure: error: blkid/blkid.h not found (libblkid-dev, libblkid-devel)

解決:

4、configure: error: expat.h not found (libexpat-devel)

解決:

5、configure: error: no suitable crypto library found

解決:

6、 configure: error: no tcmalloc found (use –without-tcmalloc to disable)

解決:

7、configure: error: 「can』t find boost spirit headers」

解決:坑!發現是7z包, 因此首先安裝解壓工具,後解壓7z包

有關7z包的相關操作命令:

編譯安裝

configure: error: 「boost random library not found.」

解決:+ echo 『error: could not find libtoolize』

原始碼編譯ceph

畢業進入公司後,接觸的第乙個專案是做ceph核心客戶端的優化,為了對ceph以及其客戶端有更加深刻的了解,在通過rpm安裝了一次ceph後,這裡又通過原始碼編譯配置了一次。其中,作業系統為centos7.2,編譯ceph 10.2.3的原始碼。配置ceph執行環境 使用ceph deploy配置環境...

原始碼安裝Ceph

虛擬機器安裝ubuntu 50g硬碟空間 8g記憶體 4個cpu處理器。由於ceph原始碼在編譯後多達30g,因此需要分配大量的儲存空間。ubuntu的安裝和環境配置 見 gz解壓ceph原始碼 tar zxf ceph 11.2 0.orig tar gz進入源目錄 cd ceph 11.2.0 ...

ceph原始碼中interval set類

在ceph原始碼中多次使用到,這裡簡單記錄備註一下。interval set中實現了兩個內部迭代器類 const iterator class const iterator public std iterator iterator class iterator public std iterator...