Thread: xml2 install problem

xml2 install problem

From
Paul Silveira
Date:
Hello,

I just installed Postgres 8.2 and was trying to add the xml2 contrib module.
I went to the folder that contained the contribs and attempted to run gmake.

I got this error...

[root@d0002gdb01 xml2]# gmake
gcc -I/usr/include/libxml2 -fpic -I. -I../../src/include -D_GNU_SOURCE   -c
-o xslt_proc.o xslt_proc.c
xslt_proc.c:18:26: libxslt/xslt.h: No such file or directory
xslt_proc.c:19:35: libxslt/xsltInternals.h: No such file or directory
xslt_proc.c:20:31: libxslt/transform.h: No such file or directory
xslt_proc.c:21:31: libxslt/xsltutils.h: No such file or directory
xslt_proc.c: In function `xslt_process':
xslt_proc.c:48: error: `xsltStylesheetPtr' undeclared (first use in this
function)
xslt_proc.c:48: error: (Each undeclared identifier is reported only once
xslt_proc.c:48: error: for each function it appears in.)
xslt_proc.c:48: error: syntax error before "stylesheet"
xslt_proc.c:102: error: `stylesheet' undeclared (first use in this function)
xslt_proc.c:117: warning: assignment makes pointer from integer without a
cast
gmake: *** [xslt_proc.o] Error 1


It's yelling about the xslt.h and other files that it can't find.  I did a
locate for xslt.h and it only found two web pages in the
/usr/share/doc/libxslt-1.1.11 folder.

Anyone know what is going on?

Thanks in advance,

Paul

--
View this message in context: http://www.nabble.com/xml2-install-problem-tf2849013.html#a7956796
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


Re: xml2 install problem

From
Devrim GUNDUZ
Date:
Hi Paul,

On Tue, 2006-12-19 at 15:06 -0800, Paul Silveira wrote:
> xslt_proc.c:18:26: libxslt/xslt.h: No such file or directory

You need to install libxslt-devel or libxslt-dev .

Cheers,
--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/





Attachment

Re: xml2 install problem

From
Peter Eisentraut
Date:
Paul Silveira wrote:
> It's yelling about the xslt.h and other files that it can't find.  I
> did a locate for xslt.h and it only found two web pages in the
> /usr/share/doc/libxslt-1.1.11 folder.

Presumably you need to install the dev(el(opment)) package belonging to
libxslt.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

Re: xml2 install problem

From
Paul Silveira
Date:
Thanks Devrim and Peter...

I had a feeling that it was just missing something but couldn't see exactly
what it was...

Regards,

Paul





Paul Silveira wrote:
>
> Hello,
>
> I just installed Postgres 8.2 and was trying to add the xml2 contrib
> module.  I went to the folder that contained the contribs and attempted to
> run gmake.
>
> I got this error...
>
> [root@d0002gdb01 xml2]# gmake
> gcc -I/usr/include/libxml2 -fpic -I. -I../../src/include -D_GNU_SOURCE
> -c -o xslt_proc.o xslt_proc.c
> xslt_proc.c:18:26: libxslt/xslt.h: No such file or directory
> xslt_proc.c:19:35: libxslt/xsltInternals.h: No such file or directory
> xslt_proc.c:20:31: libxslt/transform.h: No such file or directory
> xslt_proc.c:21:31: libxslt/xsltutils.h: No such file or directory
> xslt_proc.c: In function `xslt_process':
> xslt_proc.c:48: error: `xsltStylesheetPtr' undeclared (first use in this
> function)
> xslt_proc.c:48: error: (Each undeclared identifier is reported only once
> xslt_proc.c:48: error: for each function it appears in.)
> xslt_proc.c:48: error: syntax error before "stylesheet"
> xslt_proc.c:102: error: `stylesheet' undeclared (first use in this
> function)
> xslt_proc.c:117: warning: assignment makes pointer from integer without a
> cast
> gmake: *** [xslt_proc.o] Error 1
>
>
> It's yelling about the xslt.h and other files that it can't find.  I did a
> locate for xslt.h and it only found two web pages in the
> /usr/share/doc/libxslt-1.1.11 folder.
>
> Anyone know what is going on?
>
> Thanks in advance,
>
> Paul
>
>

--
View this message in context: http://www.nabble.com/xml2-install-problem-tf2849013.html#a7989599
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


Re: xml2 install problem

From
Paul Silveira
Date:
ok.  tried to install the correct libs and then do it but still same errors.
Here is where I am now...

# installed both rmp's that were necessary...
rpm -i
ftp://rpmfind.net/linux/redhat/enterprise/4/en/os/i386/SRPMS/libxml2-2.6.16-6.src.rpm
rpm -i
ftp://rpmfind.net/linux/redhat/enterprise/4/en/os/x86_64/SRPMS/libxslt-1.1.11-1.src.rpm

# tried to gmake again.  Here is the output...

[root@d0002gdb01 xml2]# gmake
gcc -I/usr/include/libxml2 -fpic -I. -I../../src/include -D_GNU_SOURCE   -c
-o xslt_proc.o xslt_proc.c
xslt_proc.c:18:26: libxslt/xslt.h: No such file or directory
xslt_proc.c:19:35: libxslt/xsltInternals.h: No such file or directory
xslt_proc.c:20:31: libxslt/transform.h: No such file or directory
xslt_proc.c:21:31: libxslt/xsltutils.h: No such file or directory
xslt_proc.c: In function `xslt_process':
xslt_proc.c:48: error: `xsltStylesheetPtr' undeclared (first use in this
function)
xslt_proc.c:48: error: (Each undeclared identifier is reported only once
xslt_proc.c:48: error: for each function it appears in.)
xslt_proc.c:48: error: syntax error before "stylesheet"
xslt_proc.c:102: error: `stylesheet' undeclared (first use in this function)
xslt_proc.c:117: warning: assignment makes pointer from integer without a
cast
gmake: *** [xslt_proc.o] Error 1

The advice was to include these libraries.  Is there anything else that
needs to be configured once that's done to make it work?

Thanks in avance,

Paul






Paul Silveira wrote:
>
> Hello,
>
> I just installed Postgres 8.2 and was trying to add the xml2 contrib
> module.  I went to the folder that contained the contribs and attempted to
> run gmake.
>
> I got this error...
>
> [root@d0002gdb01 xml2]# gmake
> gcc -I/usr/include/libxml2 -fpic -I. -I../../src/include -D_GNU_SOURCE
> -c -o xslt_proc.o xslt_proc.c
> xslt_proc.c:18:26: libxslt/xslt.h: No such file or directory
> xslt_proc.c:19:35: libxslt/xsltInternals.h: No such file or directory
> xslt_proc.c:20:31: libxslt/transform.h: No such file or directory
> xslt_proc.c:21:31: libxslt/xsltutils.h: No such file or directory
> xslt_proc.c: In function `xslt_process':
> xslt_proc.c:48: error: `xsltStylesheetPtr' undeclared (first use in this
> function)
> xslt_proc.c:48: error: (Each undeclared identifier is reported only once
> xslt_proc.c:48: error: for each function it appears in.)
> xslt_proc.c:48: error: syntax error before "stylesheet"
> xslt_proc.c:102: error: `stylesheet' undeclared (first use in this
> function)
> xslt_proc.c:117: warning: assignment makes pointer from integer without a
> cast
> gmake: *** [xslt_proc.o] Error 1
>
>
> It's yelling about the xslt.h and other files that it can't find.  I did a
> locate for xslt.h and it only found two web pages in the
> /usr/share/doc/libxslt-1.1.11 folder.
>
> Anyone know what is going on?
>
> Thanks in advance,
>
> Paul
>
>

--
View this message in context: http://www.nabble.com/xml2-install-problem-tf2849013.html#a7998857
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


Re: xml2 install problem

From
Alvaro Herrera
Date:
Paul Silveira wrote:
>
> ok.  tried to install the correct libs and then do it but still same errors.
> Here is where I am now...
>
> # installed both rmp's that were necessary...
> rpm -i
> ftp://rpmfind.net/linux/redhat/enterprise/4/en/os/i386/SRPMS/libxml2-2.6.16-6.src.rpm
> rpm -i
> ftp://rpmfind.net/linux/redhat/enterprise/4/en/os/x86_64/SRPMS/libxslt-1.1.11-1.src.rpm

Huh, those are the source RPMs, not the devel RPMs.  Different thing.
You should be looking for libxml2-devel and libxslt-devel.
(Furthermore, installing stuff from different archs is probably not a
very good idea ...)

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

Re: xml2 install problem

From
Devrim GUNDUZ
Date:
Hi Paul,

On Wed, 2006-12-20 at 14:07 -0800, Paul Silveira wrote:
> ok.  tried to install the correct libs and then do it but still same errors.
> Here is where I am now...
>
> # installed both rmp's that were necessary...
> rpm -i
> ftp://rpmfind.net/linux/redhat/enterprise/4/en/os/i386/SRPMS/libxml2-2.6.16-6.src.rpm
> rpm -i
> ftp://rpmfind.net/linux/redhat/enterprise/4/en/os/x86_64/SRPMS/libxslt-1.1.11-1.src.rpm

There are source RPMS. That means you just installed their source
tarballs+spec files. If you are a RHN customer, you should run

up2date -u libxml2-devel libxslt-devel

If you are not, download those SRPMs and then build RPM from them:

rpmbuild --rebuild libxslt-1.1.11-1.src.rpm

That will build the binary RPM. Install those ones.

Regards,
--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/





Attachment

Re: xml2 install problem

From
Paul Silveira
Date:
Thanks Devrim, I'll try the up2date command and post back my successs on this
list...

Have a happy holiday...

-Paul



Devrim GUNDUZ-3 wrote:
>
> Hi Paul,
>
> On Wed, 2006-12-20 at 14:07 -0800, Paul Silveira wrote:
>> ok.  tried to install the correct libs and then do it but still same
>> errors.
>> Here is where I am now...
>>
>> # installed both rmp's that were necessary...
>> rpm -i
>> ftp://rpmfind.net/linux/redhat/enterprise/4/en/os/i386/SRPMS/libxml2-2.6.16-6.src.rpm
>> rpm -i
>> ftp://rpmfind.net/linux/redhat/enterprise/4/en/os/x86_64/SRPMS/libxslt-1.1.11-1.src.rpm
>
> There are source RPMS. That means you just installed their source
> tarballs+spec files. If you are a RHN customer, you should run
>
> up2date -u libxml2-devel libxslt-devel
>
> If you are not, download those SRPMs and then build RPM from them:
>
> rpmbuild --rebuild libxslt-1.1.11-1.src.rpm
>
> That will build the binary RPM. Install those ones.
>
> Regards,
> --
> The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support
> Managed Services, Shared and Dedicated Hosting
> Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/
>
>
>
>
>
>
>

--
View this message in context: http://www.nabble.com/xml2-install-problem-tf2849013.html#a8025223
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


Re: xml2 install problem

From
"Nikolay Samokhvalov"
Date:
If you do not need XSTL support (this contrib consists of two parts,
one for XPath and another for XSLT), you can remove any mentioning of
*xslt* from Makefile and xml2.sql.in file and then try gmake again.

On 12/20/06, Paul Silveira <plabrh1@gmail.com> wrote:
>
> Hello,
>
> I just installed Postgres 8.2 and was trying to add the xml2 contrib module.
> I went to the folder that contained the contribs and attempted to run gmake.
>
> I got this error...
>
> [root@d0002gdb01 xml2]# gmake
> gcc -I/usr/include/libxml2 -fpic -I. -I../../src/include -D_GNU_SOURCE   -c
> -o xslt_proc.o xslt_proc.c
> xslt_proc.c:18:26: libxslt/xslt.h: No such file or directory
> xslt_proc.c:19:35: libxslt/xsltInternals.h: No such file or directory
> xslt_proc.c:20:31: libxslt/transform.h: No such file or directory
> xslt_proc.c:21:31: libxslt/xsltutils.h: No such file or directory
> xslt_proc.c: In function `xslt_process':
> xslt_proc.c:48: error: `xsltStylesheetPtr' undeclared (first use in this
> function)
> xslt_proc.c:48: error: (Each undeclared identifier is reported only once
> xslt_proc.c:48: error: for each function it appears in.)
> xslt_proc.c:48: error: syntax error before "stylesheet"
> xslt_proc.c:102: error: `stylesheet' undeclared (first use in this function)
> xslt_proc.c:117: warning: assignment makes pointer from integer without a
> cast
> gmake: *** [xslt_proc.o] Error 1
>
>
> It's yelling about the xslt.h and other files that it can't find.  I did a
> locate for xslt.h and it only found two web pages in the
> /usr/share/doc/libxslt-1.1.11 folder.
>
> Anyone know what is going on?
>
> Thanks in advance,
>
> Paul
>
> --
> View this message in context: http://www.nabble.com/xml2-install-problem-tf2849013.html#a7956796
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>


--
Best regards,
Nikolay