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

From Sebastien Flaesch
Subject Re: Build fails on RHEL 8.8 about libxml2 version
Date
Msg-id DBAP191MB1289EF323A85A16A4AA336CBB0D4A@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM
Whole thread Raw
In response to Build fails on RHEL 8.8 about libxml2 version  (Sebastien Flaesch <sebastien.flaesch@4js.com>)
List pgsql-general
Answering to myself:

Of course I must install the "*-devel" packages

Seb

From: Sebastien Flaesch <sebastien.flaesch@4js.com>
Sent: Thursday, October 19, 2023 10:36 AM
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Build fails on RHEL 8.8 about libxml2 version
 

EXTERNAL: Do not click links or open attachments if you do not recognize the sender.

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: "Wen Yi"
Date:
Subject: My question about the transaction
Next
From: Ron
Date:
Subject: Re: Driver Postgresql HP-Unix