您好,登錄后才能下訂單哦!
小編給大家分享一下ceph libs3如何編譯,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!
1、提示找不到依賴的libxml2庫頭文件 libxml/parser.h
build/obj/util.do: Compiling dynamic object src/simplexml.c:27:27: error: libxml/parser.h: No such file or directory src/simplexml.c:48: error: expected ‘=’, ‘,’, ‘;’, ‘a(chǎn)sm’ or ‘__attribute__’ before ‘saxGetEntity’ cc1: warnings being treated as errors src/simplexml.c:56: error: type defaults to ‘int’ in declaration of ‘xmlChar’ src/simplexml.c:56: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token src/simplexml.c:88: error: type defaults to ‘int’ in declaration of ‘xmlChar’ src/simplexml.c:88: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token src/simplexml.c:111: error: type defaults to ‘int’ in declaration of ‘xmlChar’ src/simplexml.c:111: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token build/obj/acl.o: Compiling object
通過yum install 安裝xml2解決問題
2、提示依賴的libxml2庫頭文件 libxml/parser.h不存在正確的編譯文件
make[3]: Entering directory `/var/lib/jenkins/jobs/nds/workspace/src/libs3' make[3]: *** No rule to make target `libxml/parser.h', needed by `build/obj/simplexml.do'. Stop. make[3]: Leaving directory `/var/lib/jenkins/jobs/nds/workspace/src/libs3'
解決方式如下:
A. 使用命令grep xml2 libs3/GNUmakefile查對xml2的依賴方式如下
LIBXML2_LIBS := $(shell xml2-config --libs)
LIBXML2_CFLAGS := $(shell xml2-config --cflags)
B. 在上面運行./configure之后會生成一個小的Shell腳本xml2-config,它會被安裝成為libxml2的一部分
查本機生成的路徑/usr/bin/xml2-config ,文件中cflags選項如下
--cflags)
echo -I${includedir}/libxml2
C. 重新運行l(wèi)dconfig或類似工具以更新被安裝的共享庫列表
D. 經(jīng)過如上步驟重新編譯libs3,還是編譯不過
E. 在src/libs3 執(zhí)行make clean;make編譯通過 ,初步解釋為libs3在編譯過程中不會重新查找依賴包
以上是“ceph libs3如何編譯”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學習更多知識,歡迎關注億速云行業(yè)資訊頻道!
免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內(nèi)容。