Re: Fatal error: Call to undefined function: pg_connect()

From: "Reuben D(dot) Budiardja" <techlist(at)voyager(dot)phys(dot)utk(dot)edu>
To: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>, "shreedhar" <shreedhar(at)lucidindia(dot)net>
Cc: Postgre General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Fatal error: Call to undefined function: pg_connect()
Date: 2003-08-05 14:22:51
Message-ID: 200308051022.51959.techlist@voyager.phys.utk.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

On Tuesday 05 August 2003 03:31 am, Jean-Christian Imbeault wrote:
> shreedhar wrote:
> > Is it necessary to uninstall previous version of PHP in my system.
>
> No,but a new recompile will probably over-write the version you have now.
>
> > Which is the better compatible version for Postgre 7.3.2.
>
> Most recent should be the best I would think.
>
> > Can you give any link/info for recompiling PHP
>
> www.php.net ?
>
> If you have never compiled PHP before I would suggest reading up on
> compilation before-hand and even asking the php help list. Recompiling
> PHP also means you need to recompile Apache (if that is the web server
> you are using).

No, you don't need to recompile Apache to recompile PHP, just restart the
webserver.

My guess would be when you update the new postgresql library override the old
one, so PHP needs to be recompile to use the new library.

My suggestion, easiest thing to do would be to write a PHP script with just
<?
phpinfo();
?>
and run the script (or browse it through the web). You will see all your old
configure options there. Use that to configure your new PHP (make sure you
have the option --with-pgsql), do "make", 'make install', and you should be
good to go.

RDB

Reuben D. Budiardja
Department of Physics and Astronomy
The University of Tennessee, Knoxville, TN
-------------------------------------------------
/"\ ASCII Ribbon Campaign against HTML
\ / email and proprietary format
X attachments.
/ \
-------------------------------------------------
Have you been used by Microsoft today?
Choose your life. Choose freedom.
Choose LINUX.
-------------------------------------------------

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2003-08-05 19:56:22 Re: Stuck Spinlock Error Message
Previous Message Cornelia Boenigk 2003-08-05 12:15:37 Re: [GENERAL] Fatal error: Call to undefined function: pg_connect()

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2003-08-05 14:45:17 Re: like performance w/o wildcards.
Previous Message Greg Sabino Mullane 2003-08-05 13:40:00 Open Source Software Survey