资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

cephlibs3如何编译

小编给大家分享一下ceph libs3如何编译,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

成都创新互联主营泗水网站建设的网络公司,主营网站建设方案,成都APP应用开发,泗水h5小程序制作搭建,泗水网站营销推广欢迎泗水等地区企业咨询

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 ‘=’, ‘,’, ‘;’, ‘asm’ 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. 重新运行ldconfig或类似工具以更新被安装的共享库列表

D. 经过如上步骤重新编译libs3,还是编译不过

E. 在src/libs3 执行make clean;make编译通过 ,初步解释为libs3在编译过程中不会重新查找依赖包

以上是“ceph libs3如何编译”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!


网站名称:cephlibs3如何编译
分享路径:http://cdkjz.cn/article/iepsih.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

业务热线:400-028-6601 / 大客户专线   成都:13518219792   座机:028-86922220