pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: postgres.h missing?
5+ messages / 5 participants
[nested] [flat]

* postgres.h missing?
@ 2001-05-14 01:04 Jack McKinney <jackmc-pg-php@lorentz.com>
  2001-05-14 12:56 ` Re: postgres.h missing? Martín Marqués <martin@bugs.unl.edu.ar>
  2001-05-14 17:59 ` Re: postgres.h missing? Matthew Kolb <muk@phaedrus.gaslightmedia.com>
  2001-05-14 23:59 ` Re: postgres.h missing? Grant <grant@conprojan.com.au>
  0 siblings, 3 replies; 5+ messages in thread

From: Jack McKinney @ 2001-05-14 01:04 UTC (permalink / raw)
  To: pgsql-php

     I searched the archives, but could not find anything on this.

     I installed postgres-7.1 to /var/pgsql on my system, and then
configured php with './configure ... -pgsql=/var/pgsql'.  The compile
fails complaining that it cannot find postgres.h.  If I look in
/var/pgsql/include, I indeed find no such file:

$ ls /var/pgsql/include
c.h          ecpgtype.h   libpgtcl.h   os.h            sql3types.h
config.h     iodbc        libpq        postgres_ext.h  sqlca.h
ecpgerrno.h  lib          libpq-fe.h   postgres_fe.h
ecpglib.h    libpgeasy.h  libpq-int.h  pqexpbuffer.h

--
"I owe the government $3400 in taxes. So I    Jack McKinney
sent them two hammers and a toilet seat.      jackmc@lorentz.com
              -Michael McShane                http://www.lorentz.com
1024D/D68F2C07 4096g/38AEF076

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: postgres.h missing?
  2001-05-14 01:04 postgres.h missing? Jack McKinney <jackmc-pg-php@lorentz.com>
@ 2001-05-14 12:56 ` Martín Marqués <martin@bugs.unl.edu.ar>
  2001-04-15 11:27   ` Re: postgres.h missing? Gyozo Papp <pgerzson@freestart.hu>
  2 siblings, 1 reply; 5+ messages in thread

From: Martín Marqués @ 2001-05-14 12:56 UTC (permalink / raw)
  To: Jack McKinney <jackmc-pg-php@lorentz.com>; +Cc: pgsql-php

Quoting Jack McKinney <jackmc-pg-php@lorentz.com>:

>      I searched the archives, but could not find anything on this.
> 
>      I installed postgres-7.1 to /var/pgsql on my system, and then
> configured php with './configure ... -pgsql=/var/pgsql'.  The compile
> fails complaining that it cannot find postgres.h.  If I look in
> /var/pgsql/include, I indeed find no such file:
> 
> $ ls /var/pgsql/include
> c.h          ecpgtype.h   libpgtcl.h   os.h            sql3types.h
> config.h     iodbc        libpq        postgres_ext.h  sqlca.h
> ecpgerrno.h  lib          libpq-fe.h   postgres_fe.h
> ecpglib.h    libpgeasy.h  libpq-int.h  pqexpbuffer.h

Yes, the headers names changed in postgres. Download the last version of PHP,
which has fixed this (PHP-4.0.5 works)

Saludos... :-)

-- 
El mejor sistema operativo es aquel que te da de comer.
Cuida tu dieta.
-----------------------------------------------------------------
Martin Marques                  |        mmarques@unl.edu.ar
Programador, Administrador      |       Centro de Telematica
                       Universidad Nacional
                            del Litoral
-----------------------------------------------------------------



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: postgres.h missing?
  2001-05-14 01:04 postgres.h missing? Jack McKinney <jackmc-pg-php@lorentz.com>
  2001-05-14 12:56 ` Re: postgres.h missing? Martín Marqués <martin@bugs.unl.edu.ar>
@ 2001-04-15 11:27   ` Gyozo Papp <pgerzson@freestart.hu>
  0 siblings, 0 replies; 5+ messages in thread

From: Gyozo Papp @ 2001-04-15 11:27 UTC (permalink / raw)
  To: Jack McKinney <jackmc-pg-php@lorentz.com>; pgsql-php

the name of "new" include: postgres_fe.h.
Correct in the source.

----- Original Message ----- 
From: "Martín Marqués" <martin@bugs.unl.edu.ar>
To: "Jack McKinney" <jackmc-pg-php@lorentz.com>
Cc: <pgsql-php@postgresql.org>
Sent: 2001. május 14. 14:56
Subject: Re: [PHP] postgres.h missing?


> Quoting Jack McKinney <jackmc-pg-php@lorentz.com>:
> 
> >      I searched the archives, but could not find anything on this.
> > 
> >      I installed postgres-7.1 to /var/pgsql on my system, and then
> > configured php with './configure ... -pgsql=/var/pgsql'.  The compile
> > fails complaining that it cannot find postgres.h.  If I look in
> > /var/pgsql/include, I indeed find no such file:
> > 
> > $ ls /var/pgsql/include
> > c.h          ecpgtype.h   libpgtcl.h   os.h            sql3types.h
> > config.h     iodbc        libpq        postgres_ext.h  sqlca.h
> > ecpgerrno.h  lib          libpq-fe.h   postgres_fe.h
> > ecpglib.h    libpgeasy.h  libpq-int.h  pqexpbuffer.h
> 
> Yes, the headers names changed in postgres. Download the last version of PHP,
> which has fixed this (PHP-4.0.5 works)
> 
> Saludos... :-)
> 
> -- 
> El mejor sistema operativo es aquel que te da de comer.
> Cuida tu dieta.
> -----------------------------------------------------------------
> Martin Marques                  |        mmarques@unl.edu.ar
> Programador, Administrador      |       Centro de Telematica
>                        Universidad Nacional
>                             del Litoral
> -----------------------------------------------------------------
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: postgres.h missing?
  2001-05-14 01:04 postgres.h missing? Jack McKinney <jackmc-pg-php@lorentz.com>
@ 2001-05-14 17:59 ` Matthew Kolb <muk@phaedrus.gaslightmedia.com>
  2 siblings, 0 replies; 5+ messages in thread

From: Matthew Kolb @ 2001-05-14 17:59 UTC (permalink / raw)
  To: pgsql-php

On Sun, May 13, 2001 at 08:04:09PM -0500, Jack McKinney wrote:
>      I searched the archives, but could not find anything on this.
> 
>      I installed postgres-7.1 to /var/pgsql on my system, and then
> configured php with './configure ... -pgsql=/var/pgsql'.  The compile
> fails complaining that it cannot find postgres.h.  If I look in
> /var/pgsql/include, I indeed find no such file:
> 
> $ ls /var/pgsql/include
> c.h          ecpgtype.h   libpgtcl.h   os.h            sql3types.h
> config.h     iodbc        libpq        postgres_ext.h  sqlca.h
> ecpgerrno.h  lib          libpq-fe.h   postgres_fe.h
> ecpglib.h    libpgeasy.h  libpq-int.h  pqexpbuffer.h
> 

change ext/pgsql/php_pgsql.h to include postgres_fe.h instead of postgres.h
small bug.

./muk

-- 
Matthew Kolb
muk@phaedrus.gaslightmedia.com



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: postgres.h missing?
  2001-05-14 01:04 postgres.h missing? Jack McKinney <jackmc-pg-php@lorentz.com>
@ 2001-05-14 23:59 ` Grant <grant@conprojan.com.au>
  2 siblings, 0 replies; 5+ messages in thread

From: Grant @ 2001-05-14 23:59 UTC (permalink / raw)
  To: Jack McKinney <jackmc-pg-php@lorentz.com>; +Cc: pgsql-php

Ok, after you've:

make
make install

Install the headers:

make install-all-headers

Then wherever you have told the headers to be installed to, if you are
using Linux, add that path to /etc/ld.so.conf and then run /sbin/ldconfig.

Then it should be able to find postgres.h when you come to configure php.

On Sun, 13 May 2001, Jack McKinney wrote:

>      I searched the archives, but could not find anything on this.
> 
>      I installed postgres-7.1 to /var/pgsql on my system, and then
> configured php with './configure ... -pgsql=/var/pgsql'.  The compile
> fails complaining that it cannot find postgres.h.  If I look in
> /var/pgsql/include, I indeed find no such file:
> 
> $ ls /var/pgsql/include
> c.h          ecpgtype.h   libpgtcl.h   os.h            sql3types.h
> config.h     iodbc        libpq        postgres_ext.h  sqlca.h
> ecpgerrno.h  lib          libpq-fe.h   postgres_fe.h
> ecpglib.h    libpgeasy.h  libpq-int.h  pqexpbuffer.h
> 
> --
> "I owe the government $3400 in taxes. So I    Jack McKinney
> sent them two hammers and a toilet seat.      jackmc@lorentz.com
>               -Michael McShane                http://www.lorentz.com
> 1024D/D68F2C07 4096g/38AEF076
> 




^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2001-05-14 23:59 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-05-14 01:04 postgres.h missing? Jack McKinney <jackmc-pg-php@lorentz.com>
2001-05-14 12:56 ` Martín Marqués <martin@bugs.unl.edu.ar>
2001-04-15 11:27   ` Gyozo Papp <pgerzson@freestart.hu>
2001-05-14 17:59 ` Matthew Kolb <muk@phaedrus.gaslightmedia.com>
2001-05-14 23:59 ` Grant <grant@conprojan.com.au>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox