Re: problems configuring php and postgres - "call to undefined function"
| From: | Gary Huntress | Date: | Tue, 20 Mar 2001 12:21:54 +0000 |
| Subject: | Re: problems configuring php and postgres - "call to undefined function" | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-7632@lists.php.net to get a copy of this message | ||
I had the default binary rpm that was installed with RH7. I just installed
the postgres devel rpm, reran ./configure, make, make install and restarted
apache with the same result of "call to undefined function"
I noticed that the tutorial on
http://www.phpbuilder.com/columns/kevin20010314.php3
says that I need
php-pgsql-4.0.1pl2-9.i386.rpm.... however I am running php-4.0.4 and rpm
whined about dependencies and I didn't want to --force it.
I think that somehow I need to clean up and start from scratch.
Regards,
Gary H.
"Rasmus Lerdorf" <rasmus@php.net> wrote in message
news:Pine.LNX.4.30.0103200002290.948-100000@rasmus.php.net...
> 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: php-db-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-db-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>