乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      ceph的安裝過程

       醉人說夢(mèng) 2017-09-07

      1.   

       前面一段時(shí)間公司要求找一個(gè)分布式軟件,于是就看了下開源的ceph,在官網(wǎng)上http:///download/下載了ceph-0.52.tar.gz源碼包。

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

              操作系統(tǒng)使用的是: CentOS-6.3-x86_64;

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

      1. <span style="font-size:14px;"><span style="white-space:pre">    </span>yum install automake autoconf automake libtool make</span>  
             二、然后就開始編譯ceph源碼了,解壓ceph-0.52.tar.gz,并進(jìn)入到源碼目錄下:

      1. <span style="font-size:14px;"><span style="white-space:pre">    </span>#tar -xzf ceph-0.52.tar.gz  
      2. <span style="white-space:pre">  </span>#cd ceph-0.5.2  
      3. <span style="white-space:pre">  </span>#./autogen.sh  
      4. <span style="white-space:pre">  </span>#./configure</span>  

      執(zhí)行./configure時(shí)會(huì)報(bào)一些錯(cuò)誤:

      1. <span style="font-size:14px;"><span style="white-space:pre">    </span>configure: error: libuuid not found  
      2. <span style="white-space:pre">  </span>configure: error: no FUSE found (use --without-fuse to disable)  
      3. <span style="white-space:pre">  </span>configure: error: No usable version of libedit found.  
      4. <span style="white-space:pre">  </span>configure: error: libaio not found</span>  
              這是因?yàn)槿鄙僖恍┮蕾嚢?,安裝所需要的依賴包:

      1. <span style="font-size:14px;"><span style="white-space:pre">    </span>yum install libuuid-devel  
      2. <span style="white-space:pre">  </span>yum install fuse-devel  
      3.  <span style="white-space:pre"> </span>yum install libedit-devel  
      4. <span style="white-space:pre">  </span>yum install libaio-devel  
      5. <span style="white-space:pre">  </span>yum install keyutils-libs-devel  
      6. <span style="white-space:pre">  </span>yum install gcc-c++  
      7. <span style="white-space:pre">  </span>yum install cryptopp-devel</span>  
      成功安裝好以上依賴包后在執(zhí)行命令:
      1. <span style="font-size:14px;"><span style="white-space:pre">    </span>#./configure --without-tcmalloc --without-libatomic-ops</span>  
              運(yùn)行這個(gè)命令的時(shí)候又遇到問題,還是的繼續(xù)解決:
      1. <span style="font-size:14px;"><span style="white-space:pre">    </span>checking boost/spirit.hpp usability... </span>  
      1. <span style="font-size:14px;"><span style="white-space:pre">    </span>nochecking boost/spirit.hpp presence... </span>  
      1. <span style="font-size:14px;"><span style="white-space:pre">    </span>nochecking for boost/spirit.hpp... </span>  
      1. <span style="font-size:14px;"><span style="white-space:pre">    </span>noconfigure: error: in `/home/ceph-0.29':</span>  
      1. <span style="font-size:14px;"><span style="white-space:pre">    </span>configure: error: "Can't find boost spirit headers"See `config.log' for more details</span>  
                這是缺少boost,我通過yum安裝boost后沒有解決,于是我下載boost源碼包boost_1_46_0.tar.gz,解壓后進(jìn)行編譯:

      1. <span style="white-space:pre">  </span># ./bootstrap.sh  //腳本,生成 bjam可執(zhí)行程序,然后再執(zhí)行下面的配置,就編譯完成了。  
      2.    
      3. <span style="white-space:pre">  </span>#./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  

           以上完成后,再執(zhí)行命令:

      1. <span style="white-space:pre">  </span>./configure --without-tcmalloc --without-libatomic-ops  
           成功通過?,F(xiàn)在就進(jìn)行編譯:

      1. <span style="white-space:pre">  </span>#make  
           哈哈,“前途是光明的,道路是曲折的”,又遇到了不想遇到的問題:

      1. <span style="white-space:pre">  </span>error: expat.h: No such file or directory  
      2. <span style="white-space:pre">  </span>error: ‘XML_Parser’ does not name a type  
           一看就知道肯定是缺少某個(gè)包:

      1. <span style="white-space:pre">  </span>yum install expat-deve  
           安裝好后再編譯:

      1. <span style="white-space:pre">  </span>#make  
      2. <span style="white-space:pre">  </span>#make install  
           到此,安裝成功?。。?!

           當(dāng)然,你可以通過官網(wǎng)上的安裝方法安裝:

           http:///docs/master/install/rpm/






        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約