RE: [PHP-DB] problems configuring php and postgres - call to und efined function
--with-pgsql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL base install directory, defaults to /usr/local/pgsql. Set DIR to shared to build as a dl, or shared,DIR to build as a dl and still specify DIR. this did not work when i compiled. pointing at the source did. i tried pointing php at both dirs to no avail. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: 20 March 2001 16:09 To: Steve Brett Subject: RE: [PHP-DB] problems configuring php and postgres - "call to und efined function" Well, you just didn't point PHP at the right place then. On Tue, 20 Mar 2001, Steve Brett wrote: it wouldn't compile without it. really. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: 20 March 2001 15:46 To: Steve Brett Subject: RE: [PHP-DB] problems configuring php and postgres - "call to und efined function" Well, that's not true. If you install from source it will install the libpq.a and the postgres.h files. You should never point PHP at the raw source directory. -Rasmus On Tue, 20 Mar 2001, Steve Brett wrote: just an add-on. if you compile form source the --with-pgsql= needs to point to the source directory in order to find the files it needs. it does say in the php configure help option that it should point to the install dir i think whihc is a bit confusing as i learnt to my peril (and boredom) Steve -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: 20 March 2001 08:03 To: Gary Huntress Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] problems configuring php and postgres - "call to undefined function" What kind of binary install did you do? An rpm? If so, simply also install the rpm-devel package and it will compile nicely. -Rasmus On Tue, 20 Mar 2001, Gary Huntress wrote: I am trying to get postgresql (pg) support for php working on my RH7 box. I had a working binary installation of postgres 7.03. I thought I had read that php4 had default support for pg, but my call to pg_connect() gave me a "Call to undefined function" error. So, next I tried to re ./configure and add --with-pgsql=/usr/local/pgsql. That would not compile, bombing when it looked for "postgres.h". I did not have the pg source (since this was a binary installation) so I installed that next (in /usr/src, if that matters) I deleted my existing binary installation of pg, and ran ./configure; gmake; gmake install with no errors, and I added an entry in /etc/ld.so.conf as stated in the pg INSTALL. Pg is running fine with several db and I can remotely connect, so I think thats ok. After finishing with the source installation of pg, I re- ./configure php, make and get the same error looking for "postgres.h" kludge I then manually edited the ./configure file and added the include path to /usr/src/postgres/install/kludge After this, I could successfully make php, then make install. I restarted apache, but I am still getting "Call to undefined function". Any thoughts? I'm pretty much out of ideas right now. Regards, Gary Huntress -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DB] problems configuring php and postgres - call to und efined function
But did you have /usr/local/pgsql/include and /usr/local/pgsql/lib directories with the correct files in them? On Tue, 20 Mar 2001, Steve Brett wrote: --with-pgsql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL base install directory, defaults to /usr/local/pgsql. Set DIR to shared to build as a dl, or shared,DIR to build as a dl and still specify DIR. this did not work when i compiled. pointing at the source did. i tried pointing php at both dirs to no avail. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: 20 March 2001 16:09 To: Steve Brett Subject: RE: [PHP-DB] problems configuring php and postgres - "call to und efined function" Well, you just didn't point PHP at the right place then. On Tue, 20 Mar 2001, Steve Brett wrote: it wouldn't compile without it. really. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: 20 March 2001 15:46 To: Steve Brett Subject: RE: [PHP-DB] problems configuring php and postgres - "call to und efined function" Well, that's not true. If you install from source it will install the libpq.a and the postgres.h files. You should never point PHP at the raw source directory. -Rasmus On Tue, 20 Mar 2001, Steve Brett wrote: just an add-on. if you compile form source the --with-pgsql= needs to point to the source directory in order to find the files it needs. it does say in the php configure help option that it should point to the install dir i think whihc is a bit confusing as i learnt to my peril (and boredom) Steve -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: 20 March 2001 08:03 To: Gary Huntress Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] problems configuring php and postgres - "call to undefined function" What kind of binary install did you do? An rpm? If so, simply also install the rpm-devel package and it will compile nicely. -Rasmus On Tue, 20 Mar 2001, Gary Huntress wrote: I am trying to get postgresql (pg) support for php working on my RH7 box. I had a working binary installation of postgres 7.03. I thought I had read that php4 had default support for pg, but my call to pg_connect() gave me a "Call to undefined function" error. So, next I tried to re ./configure and add --with-pgsql=/usr/local/pgsql. That would not compile, bombing when it looked for "postgres.h". I did not have the pg source (since this was a binary installation) so I installed that next (in /usr/src, if that matters) I deleted my existing binary installation of pg, and ran ./configure; gmake; gmake install with no errors, and I added an entry in /etc/ld.so.conf as stated in the pg INSTALL. Pg is running fine with several db and I can remotely connect, so I think thats ok. After finishing with the source installation of pg, I re- ./configure php, make and get the same error looking for "postgres.h" kludge I then manually edited the ./configure file and added the include path to /usr/src/postgres/install/kludge After this, I could successfully make php, then make install. I restarted apache, but I am still getting "Call to undefined function". Any thoughts? I'm pretty much out of ideas right now. Regards, Gary Huntress -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DB] problems configuring php and postgres - call to und efined function
from phpinfo() './configure' '--with-mysql=no' '--with-apache=/usr/src/apache_1.3.14/' '--with-pgsql=/usr/src/postgresql-7.0.3/' '--with-xml' '--enable-track-vars' '--enable-trans-sid' '--with-gd' Steve -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: 20 March 2001 16:09 To: Steve Brett Subject: RE: [PHP-DB] problems configuring php and postgres - "call to und efined function" Well, you just didn't point PHP at the right place then. On Tue, 20 Mar 2001, Steve Brett wrote: it wouldn't compile without it. really. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: 20 March 2001 15:46 To: Steve Brett Subject: RE: [PHP-DB] problems configuring php and postgres - "call to und efined function" Well, that's not true. If you install from source it will install the libpq.a and the postgres.h files. You should never point PHP at the raw source directory. -Rasmus On Tue, 20 Mar 2001, Steve Brett wrote: just an add-on. if you compile form source the --with-pgsql= needs to point to the source directory in order to find the files it needs. it does say in the php configure help option that it should point to the install dir i think whihc is a bit confusing as i learnt to my peril (and boredom) Steve -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: 20 March 2001 08:03 To: Gary Huntress Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] problems configuring php and postgres - "call to undefined function" What kind of binary install did you do? An rpm? If so, simply also install the rpm-devel package and it will compile nicely. -Rasmus On Tue, 20 Mar 2001, Gary Huntress wrote: I am trying to get postgresql (pg) support for php working on my RH7 box. I had a working binary installation of postgres 7.03. I thought I had read that php4 had default support for pg, but my call to pg_connect() gave me a "Call to undefined function" error. So, next I tried to re ./configure and add --with-pgsql=/usr/local/pgsql. That would not compile, bombing when it looked for "postgres.h". I did not have the pg source (since this was a binary installation) so I installed that next (in /usr/src, if that matters) I deleted my existing binary installation of pg, and ran ./configure; gmake; gmake install with no errors, and I added an entry in /etc/ld.so.conf as stated in the pg INSTALL. Pg is running fine with several db and I can remotely connect, so I think thats ok. After finishing with the source installation of pg, I re- ./configure php, make and get the same error looking for "postgres.h" kludge I then manually edited the ./configure file and added the include path to /usr/src/postgres/install/kludge After this, I could successfully make php, then make install. I restarted apache, but I am still getting "Call to undefined function". Any thoughts? I'm pretty much out of ideas right now. Regards, Gary Huntress -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]