Обсуждение: postgres.h missing?
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
Вложения
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
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
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 > ---------------------------(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
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
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 > ---------------------------(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
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