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

Started by Peter Roethlisbergerover 15 years ago4 messagesgeneral
Jump to latest
#1Peter Roethlisberger
peter.roethlisberger@gmail.com

Hi there,

I try to configure postgres:

/configure --prefix=/usr/local/postgresql-8.4.4/ \
--without-docdir \
--with-openssl \
--with-libxml \
--with-libxslt \
--with-libraries=/usr/local/openssl:/lib:/lib64:/usr/local/readline/lib:/usr/local/zlib/lib:/usr/local/openssl/lib64:/usr/local/libxml2/lib:/usr/local/libxslt/lib
\
--with-includes=/usr/local/readline/include:/usr/local/zlib/include:/usr/local/openssl/include:
*/usr/local/libxml2/include/libxml2/libxml*:/usr/local/libxslt/include

Now even though parser.h can be found in the includes path it claims:

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

Any idea ?

Thanks Peter

#2Dave Page
dpage@pgadmin.org
In reply to: Peter Roethlisberger (#1)
Re: configure: error: header file <libxml/parser.h> is required for XML support

On Wed, Sep 15, 2010 at 10:57 AM, Peter Roethlisberger
<peter.roethlisberger@gmail.com> wrote:

Hi there,

I try to configure postgres:

/configure --prefix=/usr/local/postgresql-8.4.4/ \
--without-docdir \
--with-openssl \
--with-libxml \
--with-libxslt \
--with-libraries=/usr/local/openssl:/lib:/lib64:/usr/local/readline/lib:/usr/local/zlib/lib:/usr/local/openssl/lib64:/usr/local/libxml2/lib:/usr/local/libxslt/lib
\
--with-includes=/usr/local/readline/include:/usr/local/zlib/include:/usr/local/openssl/include:/usr/local/libxml2/include/libxml2/libxml:/usr/local/libxslt/include

Now even though parser.h can be found in the includes path it claims:

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

Your include path contains /usr/local/libxml2/include/libxml2/libxml,
so Postgres is probably looking for
/usr/local/libxml2/include/libxml2/libxml/libxml/parser.h, which I
suspect is wrong. Try removing the extra "/libxml" from the include
path.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise Postgres Company

#3Peter Roethlisberger
peter.roethlisberger@gmail.com
In reply to: Dave Page (#2)
Re: configure: error: header file <libxml/parser.h> is required for XML support

Hey Dave,

Thanks for the quick reply. The path is correct:

# ls -l /usr/local/libxml2/include/libxml2/libxml/parser.h
-rw-r--r-- 1 root root 39556 Sep 15 10:07
/usr/local/libxml2/include/libxml2/libxml/parser.h

I first used /usr/local/libxml2/include/ which did not work. Doing a find
for parser.h made me change the include path.
Could possibly the version of libxml2 be an issue: 2-2.7.7 ???

Thx: Peter

On Wed, Sep 15, 2010 at 12:18 PM, Dave Page <dpage@pgadmin.org> wrote:

On Wed, Sep 15, 2010 at 10:57 AM, Peter Roethlisberger
<peter.roethlisberger@gmail.com> wrote:

Hi there,

I try to configure postgres:

/configure --prefix=/usr/local/postgresql-8.4.4/ \
--without-docdir \
--with-openssl \
--with-libxml \
--with-libxslt \

--with-libraries=/usr/local/openssl:/lib:/lib64:/usr/local/readline/lib:/usr/local/zlib/lib:/usr/local/openssl/lib64:/usr/local/libxml2/lib:/usr/local/libxslt/lib

\

--with-includes=/usr/local/readline/include:/usr/local/zlib/include:/usr/local/openssl/include:/usr/local/libxml2/include/libxml2/libxml:/usr/local/libxslt/include

Now even though parser.h can be found in the includes path it claims:

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

support

Your include path contains /usr/local/libxml2/include/libxml2/libxml,
so Postgres is probably looking for
/usr/local/libxml2/include/libxml2/libxml/libxml/parser.h, which I
suspect is wrong. Try removing the extra "/libxml" from the include
path.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise Postgres Company

--
___________________________________

Peter Roethlisberger
Suldhaltenstrasse 4
3703 Aeschi
Switzerland
46°39'14" N 7°41'47" E

Mobile: +41 (0)79 785 79 35
Fix: +41 (0)33 654 04 39
Skype:PeterRoethlisberger
peter.roethlisberger@gmail.com
____________________________________

#4Dave Page
dpage@pgadmin.org
In reply to: Peter Roethlisberger (#3)
Re: configure: error: header file <libxml/parser.h> is required for XML support

Hi Peter

On Wed, Sep 15, 2010 at 12:46 PM, Peter Roethlisberger
<peter.roethlisberger@gmail.com> wrote:

Hey Dave,

Thanks for the quick reply. The path is correct:

 # ls -l /usr/local/libxml2/include/libxml2/libxml/parser.h
-rw-r--r-- 1 root root 39556 Sep 15 10:07
/usr/local/libxml2/include/libxml2/libxml/parser.h

But the path you have is:

/usr/local/libxml2/include/libxml2/libxml

and the included file is

libxml/parser.h

Put those together and you get:

/usr/local/libxml2/include/libxml2/libxml/libxml/parser.h

*not*

/usr/local/libxml2/include/libxml2/libxml/parser.h

Regards, Dave

I first used /usr/local/libxml2/include/ which did not work. Doing a find
for parser.h made me change the include path.
Could possibly the version of libxml2 be an issue: 2-2.7.7 ???

Thx: Peter

On Wed, Sep 15, 2010 at 12:18 PM, Dave Page <dpage@pgadmin.org> wrote:

On Wed, Sep 15, 2010 at 10:57 AM, Peter Roethlisberger
<peter.roethlisberger@gmail.com> wrote:

Hi there,

I try to configure postgres:

/configure --prefix=/usr/local/postgresql-8.4.4/ \
--without-docdir \
--with-openssl \
--with-libxml \
--with-libxslt \

--with-libraries=/usr/local/openssl:/lib:/lib64:/usr/local/readline/lib:/usr/local/zlib/lib:/usr/local/openssl/lib64:/usr/local/libxml2/lib:/usr/local/libxslt/lib
\

--with-includes=/usr/local/readline/include:/usr/local/zlib/include:/usr/local/openssl/include:/usr/local/libxml2/include/libxml2/libxml:/usr/local/libxslt/include

Now even though parser.h can be found in the includes path it claims:

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

Your include path contains /usr/local/libxml2/include/libxml2/libxml,
so Postgres is probably looking for
/usr/local/libxml2/include/libxml2/libxml/libxml/parser.h, which I
suspect is wrong. Try removing the extra "/libxml" from the include
path.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise Postgres Company

--
___________________________________

Peter Roethlisberger
Suldhaltenstrasse 4
3703 Aeschi
Switzerland
46°39'14" N 7°41'47" E

Mobile: +41 (0)79 785 79 35
Fix:      +41 (0)33 654 04 39
Skype:PeterRoethlisberger
peter.roethlisberger@gmail.com
____________________________________

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise Postgres Company