php Compile question
I am switching from rpm install of postgres to the compiled version.
I have this running fine, but now my php4 quit working.
So I am trying to compile it and have the error that it cannot find
postgres.h
Does it need to look for another file or do I need to tell it where to look
for it?
respectfully,
Joseph
In article <JBEPLLKEDKIHJBCHDDOGGELDCAAA.lters@mrtc.com>, "Joseph"
<lters@mrtc.com> wrote:
I am switching from rpm install of postgres to the compiled version. I
have this running fine, but now my php4 quit working.So I am trying to compile it and have the error that it cannot find
postgres.hDoes it need to look for another file or do I need to tell it where to
look for it?
I had that problem too, as recently as RC2. I copied
the file myself, as well as the util/ directory (in
src/include/), which is also needed.
Not sure why make install doesn't do it...
Gordon.
--
It doesn't get any easier, you just go faster.
-- Greg LeMond
This has been discussed quite a few times recently (in fact, I posted a
similar reply yesterday). From Tom Lane:
"Change php_pgsql.h to refer to postgres_fe.h not postgres.h."
Greg
----- Original Message -----
From: "Gordon A. Runkle" <gar@integrated-dynamics.com>
To: <pgsql-general@postgresql.org>
Sent: Wednesday, April 04, 2001 2:54 PM
Subject: Re: php Compile question
Show quoted text
In article <JBEPLLKEDKIHJBCHDDOGGELDCAAA.lters@mrtc.com>, "Joseph"
<lters@mrtc.com> wrote:I am switching from rpm install of postgres to the compiled version. I
have this running fine, but now my php4 quit working.So I am trying to compile it and have the error that it cannot find
postgres.hDoes it need to look for another file or do I need to tell it where to
look for it?I had that problem too, as recently as RC2. I copied
the file myself, as well as the util/ directory (in
src/include/), which is also needed.Not sure why make install doesn't do it...
Gordon.
--
It doesn't get any easier, you just go faster.
-- Greg LeMond---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
This has been discussed quite a few times recently (in fact, I posted a
similar reply yesterday). From Tom Lane:"Change php_pgsql.h to refer to postgres_fe.h not postgres.h."
... or symlink postgres.h to postgres_fe.h ...
--
Alex Howansky
Wankwood Associates
http://www.wankwood.com/
"Gregory Wood" <gregw@com-stock.com> writes:
This has been discussed quite a few times recently (in fact, I posted a
similar reply yesterday). From Tom Lane:
"Change php_pgsql.h to refer to postgres_fe.h not postgres.h."
Or just remove that #include entirely, which is what I believe the PHP
guys will do in their next release. It hasn't been necessary for awhile.
Or do Postgres' "make install-all-headers", if you don't want to touch
the PHP code.
regards, tom lane