Build fails on RHEL 8.8 about libxml2 version - Mailing list pgsql-general

From Sebastien Flaesch
Subject Build fails on RHEL 8.8 about libxml2 version
Date
Msg-id DBAP191MB1289BB1FFAF7F03FE1A96299B0D4A@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM
Whole thread Raw
Responses Re: Build fails on RHEL 8.8 about libxml2 version
List pgsql-general
Hello,

Trying to build PostgreSQL 15 and 16 on RHEL 8.8:

[comp@havok postgresql-15.1]$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.8 (Ootpa)

[comp@havok postgresql-15.1]$ uname -a
Linux havok.strasbourg.4js.com 4.18.0-477.27.1.el8_8.x86_64 #1 SMP Thu Aug 31 10:29:22 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux

I got an error about libxml2 invalid version.

....
checking for inflate in -lz... yes
checking for xmlSaveToBuffer in -lxml2... no
configure: error: library 'xml2' (version >= 2.6.23) is required for XML support

But I see a 2.9.7:

[comp@havok postgresql-15.1]$ find /lib64/ -name "libxml2*"
/lib64/libxml2.so.2
/lib64/libxml2.so.2.9.7
/lib64/girepository-1.0/libxml2-2.0.typelib
/lib64/python3.6/site-packages/__pycache__/libxml2.cpython-36.opt-1.pyc
/lib64/python3.6/site-packages/__pycache__/libxml2.cpython-36.pyc
/lib64/python3.6/site-packages/libxml2.py
/lib64/python3.6/site-packages/libxml2mod.so

What am I missing here?

Seb

pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: How can I accurately infer the output of a SELECT statement FROM a table with floating-point data type?
Next
From: Tomek
Date:
Subject: Re: How can I accurately infer the output of a SELECT statement FROM a table with floating-point data type?