In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Editor to share with you how to compile ceph libs3, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!
1. Prompt that the dependent libxml2 library header file libxml/parser.h cannot be found.
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
Resolve the problem by installing xml2 through yum install
2. Prompt that the dependent libxml2 library header file libxml/parser.h does not have the correct compilation file.
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'
The solution is as follows:
a. Using the command grep xml2 libs3/GNUmakefile to check xml2 dependencies is as follows
LIBXML2_LIBS: = $(shell xml2-config-- libs)
LIBXML2_CFLAGS: = $(shell xml2-config-- cflags)
b. Running. / configure above will generate a small Shell script xml2-config, which will be installed as part of libxml2
Check the path / usr/bin/xml2-config generated by this machine. The cflags option in the file is as follows
-- cflags)
Echo-I ${includedir} / libxml2
c. Rerun ldconfig or similar tools to update the list of installed shared libraries
d. Recompile libs3 after the steps above, but it still doesn't work.
e. Make clean;make compilation is performed in src/libs3, which is initially interpreted as libs3 will not re-look for dependency packages during compilation.
The above is all the content of this article "how to compile ceph libs3". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.