首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >构建pgBackRest for rhel8 --“需要库'yaml‘”

构建pgBackRest for rhel8 --“需要库'yaml‘”
EN

Database Administration用户
提问于 2022-07-04 13:57:24
回答 1查看 100关注 0票数 0

我的目标是构建基于pgBackRest的rhel8环境的pgBackRest手册包。,它从安装某些构建依赖项时出现的一些错误开始。

yum install make gcc postgresql10-devel openssl-devel libxml2-devel lz4-devel libzstd-devel bzip2-devel libyaml-devel

在将未知的dnf包替换后,postgresql10-devel (使用postgresql-server-devel & libyaml-devel (用libyaml)作为替代方案)仍然停留在构建中。

代码语言:javascript
复制
# cd /build/pgbackrest-release-2.39/src && ./configure && make
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... none needed
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for pg_config... yes
checking for PQconnectdb in -lpq... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking libpq-fe.h usability... yes
checking libpq-fe.h presence... yes
checking for libpq-fe.h... yes
checking for EVP_get_digestbyname in -lcrypto... yes
checking for SSL_new in -lssl... yes
checking for pkg-config... yes
checking for xmlSaveToBuffer in -lxml2... yes
checking libxml/parser.h usability... yes
checking libxml/parser.h presence... yes
checking for libxml/parser.h... yes
checking for yaml_parser_initialize in -lyaml... no
configure: error: library 'yaml' is required

关闭错误听起来有点像libyaml,但是由于我已经安装了这个,所以如果这样做的话,我就没什么意义了。

有谁能就如何处理这个问题提出建议吗?

EN

回答 1

Database Administration用户

发布于 2022-07-05 13:24:38

PowerTools回购应该包含构建所需的libyaml-devel包:

代码语言:javascript
复制
$ sudo dnf config-manager --set-enabled powertools
票数 1
EN
页面原文内容由Database Administration提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://dba.stackexchange.com/questions/314060

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档