ceph的安裝過程

2021-06-10 08:19:46 字數 2287 閱讀 6781

這兒記錄了下自己安裝的過程:

作業系統使用的是: centos-6.3-x86_64;

一、先安裝一些編譯常用工具,也是本次編譯所需要用到的工具:

yum install automake autoconf automake libtool make
二、然後就開始編譯ceph原始碼了,解壓ceph-0.52.tar.gz,並進入到原始碼目錄下:

#tar -xzf ceph-0.52.tar.gz

#cd ceph-0.5.2

#./autogen.sh

#./configure

執行./configure時會報一些錯誤:

configure: error: libuuid not found

configure: error: no fuse found (use --without-fuse to disable)

configure: error: no usable version of libedit found.

configure: error: libaio not found

這是因為缺少一些依賴包,安裝所需要的依賴包:

yum install libuuid-devel

yum install fuse-devel

yum install libedit-devel

yum install libaio-devel

yum install keyutils-libs-devel

yum install gcc-c++

yum install cryptopp-devel

成功安裝好以上依賴包後在執行命令:

#./configure --without-tcmalloc --without-libatomic-ops
執行這個命令的時候又遇到問題,還是的繼續解決:
checking boost/spirit.hpp usability...
nochecking boost/spirit.hpp presence...
nochecking for boost/spirit.hpp...
noconfigure: error: in `/home/ceph-0.29':
configure: error: "can't find boost spirit headers"see `config.log' for more details

# ./bootstrap.sh  //指令碼,生成 bjam可執行程式,然後再執行下面的配置,就編譯完成了。

#./bjam --with-date_time --with-system --with-regex --with-thread --with-filesystem --with-serialization --with-iostreams --with-math --with-mpi --with-program_options --with-python --with-math --with-signals --layout=tagged install variant=debug,release link=static --runtime-link=static threading=multi stage

以上完成後,再執行命令:

./configure --without-tcmalloc --without-libatomic-ops
成功通過。現在就進行編譯:

#make
哈哈,「前途是光明的,道路是曲折的」,又遇到了不想遇到的問題:

error: expat.h: no such file or directory

error: 『xml_parser』 does not name a type

一看就知道肯定是缺少某個包:

yum install expat-deve
安裝好後再編譯:

#make

#make install

到此,安裝成功!!!!

當然,你可以通過官網上的安裝方法安裝:

lib mysqludf sys的安裝過程

看了太多資料,累壞了,先雜亂的放在這裡吧,回頭有時間再排版 一 window系統 1 從sqlmap中找到32為的lib mysqludf sys.dll 64位的我沒有測試成功 選擇資料庫 use mysql 建立資料表 createtablenpn line blob 把 lib mysqlud...

Git的安裝過程

1 安裝截圖1 下圖是預設選項 2 安裝截圖2 這裡的意思是 指定乙個資料夾 用來存放 啟動快捷鍵3 安裝截圖3 選擇乙個預設的文字編輯器 給git使用,預設選擇的是vim 這個是linux作業系統中的,我們可以選乙個自己電腦上有的 我選擇了notepad 作為git的預設編輯器 4 安裝截圖4 這...

VMware Tools 的安裝過程

下面以安裝在 vmware workstation 8.0.3 build 703057 虛擬計算機中的 red hat linux 5 為例,介紹安裝 vmware tools 的過程。首先啟動虛擬計算機中的 linux 作業系統,並以 root 身份登入系統 按下 ctrl alt 組合鍵,切換...