Help needed configuring postgreSQL with xml support

From: "Khanna, Sachin 000" <Sachin(dot)Khanna(at)sysco(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Help needed configuring postgreSQL with xml support
Date: 2020-08-27 08:09:33
Message-ID: DM6PR07MB54683E94CDCC80C9FA504870F3550@DM6PR07MB5468.namprd07.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I am getting following error in configuration.log of installation . Please help

Is there any pkg-config path that needs to be configured/set in environment for this to work.

configure:8172: checking for libxml-2.0 >= 2.6.23
configure:8179: $PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23"
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
configure:8182: $? = 1
configure:8196: $PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23"
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
configure:8199: $? = 1
configure:8213: result: no
No package 'libxml-2.0' found

I later tried setting the some environment variables like

export XML2_CFLAGS='/usr/lib64/'
export XML2_CONFIG='/usr/lib64/'
export XML2_LIBS='/usr/lib64/libxml2

Created soft link as well libxml2.so -> /usr/lib64/libxml2.so.2.9.1 but now I getting the below error .

configure: error: header file <libxml/parser.h> is required for XML support

From config.log

configure:13266: checking libxml/parser.h usability
configure:13266: gcc -std=gnu99 -c -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -D_GNU_SOURCE conftest.c >&5
conftest.c:96:27: fatal error: libxml/parser.h: No such file or directory
#include <libxml/parser.h>
^
compilation terminated.
configure:13266: $? = 1
configure: failed program was:

Thanks and Regards,
SACHIN KHANNA
212 Basis Offshore DBA
Office : 204058624
Cell : 9049522511
Email: khanna(dot)sachin(at)corp(dot)sysco(dot)com<mailto:khanna(dot)sachin(at)corp(dot)sysco(dot)com>

ITIL V3 (F), AWS Certified Solution Archtect
Infosys Technologies Limited (r) | PUNE

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2020-08-27 08:16:35 Re: Add Information during standby recovery conflicts
Previous Message Michael Paquier 2020-08-27 07:46:15 Re: Typo in procarray.c comment about GlobalVisDataRels