Re: [HACKERS] pg_connect error

From: Brian Edginton <edge(at)shell(dot)aros(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [HACKERS] pg_connect error
Date: 2000-10-19 02:29:24
Message-ID: 8slma4$1d62$1@news.aros.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Travis Bauer <trbauer(at)indiana(dot)edu> wrote:

> When you compiles php, did you ./configure with --with-pgsql? If you did
> not compile php explicitly telling it to includ pgsql support, it probably
> didn't.

Yes I did, and postgresql is installed in the default location. Notice that
the pg_connect from the pgsql module (ext/pgsql) is being executed, it's
just not finding the PQconnectdb function from the libpq.so library.

> Travis

> Brian Edginton (edge(at)aros(dot)net) wrote:

>>
>>
>> I'm trying to use the php/postgresql interface via my apache server.
>> When I try and load a page containing:
>>
>> <?php $db = pg_connect( "database=mydb owner=me" )
>> or die ( "could not connect" ) ?>
>>
>> (both the database and owner are valid and tested via psql)
>>
>> apache complains:
>> /usr/libexec/ld.so: Undefined symbol "_PQconnectdb" called from httpd:/usr/lib/apache/modules/libphp4.so at 0x4030a394
>>
>> I have verified through ldconfig that libpq.so.2.0 is being loaded into hints,
>> what am I missing?
>>
>> Thanks,
>> edge
>>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brian Edginton 2000-10-19 02:29:48 Re: [HACKERS] pg_connect error
Previous Message Tom Lane 2000-10-19 01:59:15 Re: Any risk in increasing BLCKSZ to get larger tuples?

Browse pgsql-hackers by date

  From Date Subject
Next Message Brian Edginton 2000-10-19 02:29:48 Re: [HACKERS] pg_connect error
Previous Message Alex Pilosov 2000-10-19 02:24:04 Re: time stops within transaction