X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 2D691D1D23E for ; Wed, 21 Apr 2004 07:31:01 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 98716-01 for ; Wed, 21 Apr 2004 07:31:00 -0300 (ADT) Received: from bubbleator.drizzle.com (bubbleator.drizzle.com [216.162.192.19]) by svr1.postgresql.org (Postfix) with ESMTP id 150A9D1D206 for ; Wed, 21 Apr 2004 07:30:57 -0300 (ADT) Received: from drizzle.com (localhost.localdomain [127.0.0.1]) by bubbleator.drizzle.com (8.12.10/8.12.10) with SMTP id i3LAUxII006996; Wed, 21 Apr 2004 03:30:59 -0700 Received: from 62.20.148.176 (SquirrelMail authenticated user zedaardv) by drizzlemail.drizzle.com with HTTP; Wed, 21 Apr 2004 03:30:59 -0700 (PDT) Message-ID: <1246.62.20.148.176.1082543459.squirrel@drizzlemail.drizzle.com> Date: Wed, 21 Apr 2004 03:30:59 -0700 (PDT) Subject: Re: postgres, php and osx(panther) From: To: In-Reply-To: References: <2864.62.20.149.129.1082455541.squirrel@drizzlemail.drizzle.com> X-Priority: 3 Importance: Normal Cc: X-Mailer: SquirrelMail (version 1.2.11) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=NO_REAL_NAME X-Spam-Level: X-Archive-Number: 200404/35 X-Sequence-Number: 2692 ok, thanks. so far so good. it now seems that i need to upgrade my postgresql install i have 7.3.4 i get a connect error where i try to connect to the database from a simple php script. the documentation says i need posqtgresql 7.4 so when i run configure i get this error checking for gcc... gcc checking for C compiler default output... configure: error: C compiler cannot create executables i find no conftest.c or confdefs.h(see below) am i missing something here ? here is the segment from the config.log configure:1986: checking for C compiler default output configure:1989: gcc conftest.c /Library/headers >&5 gcc: /Library/headers: No such file or directory configure:1992: $? = 1 configure: failed program was: #line 1963 "configure" #include "confdefs.h" #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { ; return 0; } configure:2019: error: C compiler cannot create executables reiner > Reiner, > > If you put this command in a .php document, such as test.php, it will > disclose all the modules compiled into PHP: > > > Should you find that your PHP installation does not have support for > PostgreSQL, consider downloading and installing a specially compiled > versions of PHP for MacOS X. Aaron Faby has a great module at > http://www.serverlogistics.com/php4.php > > I have this combo working well on my XServe running Panther. It can work > for you. > > Best, > Gary > > > > writes: >>i'm trying to get pgsql and php to work on panther. >>i need to know if i need to compile php for postgresql? >> >>when i read documentation it seems like the ability ti already >> configured. >> >>from the php_install documentation >>The PHP module for the Apache web server included in Mac OS X. This >> version includes support for the MySQL and PostgreSQL databases. >> >>i've followed the instruction on installing php. >> i know apache works. >>php works. i get the phpinfo call to return results >>postgres works. i have created a database and tables, i just don't gre >> php and postgres to work together. i'm looking for someone who has >> this working who can help me out. >> >>thanks. >> >>reiner > > > > ************************************************************************** > * Gary B. Hoffman, Computing Services Manager e-mail: ghoffman@ucsd.edu > * * Graduate School of International Relations and Pacific Studies > (IR/PS) * * University of California, San Diego (UCSD) voice: > (858) 534-1989 * * 9500 Gilman Dr. MC 0519 > fax: (858) 534-3939 * * La Jolla, CA 92093-0519 USA web: > http://irps.ucsd.edu/ * > ************************************************************************** > > > > > > ---------------------------(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