php Compile question

Started by Josephabout 25 years ago5 messagesgeneral
Jump to latest
#1Joseph
lters@mrtc.com

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

#2Gordon Runkle
gar@integrated-dynamics.com
In reply to: Joseph (#1)
Re: php Compile question

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.h

Does 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

#3Gregory Wood
gregw@com-stock.com
In reply to: Joseph (#1)
Re: php Compile question

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.h

Does 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?

http://www.postgresql.org/users-lounge/docs/faq.html

#4Alex Howansky
alex@wankwood.com
In reply to: Gregory Wood (#3)
Re: php Compile question

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/

#5Tom Lane
tgl@sss.pgh.pa.us
In reply to: Gregory Wood (#3)
Re: Re: php Compile question

"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