Help needed configuring postgreSQL with xml support - Mailing list pgsql-hackers

From Khanna, Sachin 000
Subject Help needed configuring postgreSQL with xml support
Date
Msg-id DM6PR07MB54683E94CDCC80C9FA504870F3550@DM6PR07MB5468.namprd07.prod.outlook.com
Whole thread Raw
Responses Re: Help needed configuring postgreSQL with xml support
List 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.sachin@corp.sysco.com

ITIL V3 (F), AWS Certified Solution Archtect

Infosys Technologies Limited ® | PUNE

 

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Typo in procarray.c comment about GlobalVisDataRels
Next
From: Masahiko Sawada
Date:
Subject: Re: Add Information during standby recovery conflicts