我的目标是构建基于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)作为替代方案)仍然停留在构建中。
# 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,但是由于我已经安装了这个,所以如果这样做的话,我就没什么意义了。
有谁能就如何处理这个问题提出建议吗?
发布于 2022-07-05 13:24:38
PowerTools回购应该包含构建所需的libyaml-devel包:
$ sudo dnf config-manager --set-enabled powertoolshttps://dba.stackexchange.com/questions/314060
复制相似问题