X-Original-To: pgsql-php@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AD6B6474E44 for ; Wed, 9 Apr 2003 13:58:05 -0400 (EDT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by postgresql.org (Postfix) with ESMTP id E3634474E42 for ; Wed, 9 Apr 2003 13:58:04 -0400 (EDT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.9/8.12.9) with ESMTP id h39HuGYQ001244; Wed, 9 Apr 2003 11:56:16 -0600 (MDT) Date: Wed, 9 Apr 2003 11:52:20 -0600 (MDT) From: "scott.marlowe" To: DIB Walid Cc: Subject: Re: installation problem In-Reply-To: <200304091729.h39HTgD26416@imap-serv.inrialpes.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner: Found to be clean X-MailScanner-SpamCheck: X-Spam-Status: No, hits=-21.8 required=5.0 tests=BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,USER_AGENT_PINE autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/4 X-Sequence-Number: 1974 On Wed, 9 Apr 2003, DIB Walid wrote: > I install Apache 1.3.20, php 4.0.5 and postgresql 7.1.2 > > When i try to connect to the db with the pg_connect function i got this error > message: > Fatal error: Call to undefined function: pg_connect() in > /home/helix/dib/public_html/connexion.php on line 3 > > i search in the documentation and th web and there is no real solution, i > configure PHP with this option: > --with-pgsql=shared > when i start the database process i use: > postmaster -i -D $PGDATA Two suggestions: 1: update all three packages, as they have known security flaws you shouldn't be using those old versions. I'd recommend the latest of each, postgresql 7.3.2, php 4.3.whatever, and apache 1.3.27. 2: Just use the --with-pgsql switch alone, and see if the php ./configure script can find it. the only thing I've ever needed to make things work on Linux was to edit the /etc/ld.so.conf file and add a line for /usr/local/pgsql/lib and run ldconfig. Other than that, the configure script has always just found postgresql for me.