Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > postgres and php - getting them to work together

postgres and php - getting them to work together
Thread Tools
Forum Regular
Join Date: Nov 2001
Location: Toronto Canada
Status: Offline
Reply With Quote
Oct 29, 2003, 08:45 PM
 
I have php running, and I have postgres running. I compiled php from the source --with-pgsql-dir=/Users/Shared/PostgreSQL

But somehow, the php extension pgsql.so was not created or does not exist.

I'm just looking for any tips on how to get around this. Is there somewhere I can download pgsql.so, or can a get a precompiled php with dmg that works out of the box?
     
Dedicated MacNNer
Join Date: Jul 2001
Location: NC
Status: Offline
Reply With Quote
Dec 4, 2003, 12:35 AM
 
I have no pgsql.so library and my PHP works just fine. I have a $PHP_HOME/lib/php/DB/pgsql.php file but I think that come with every PHP installation. The --with-pgsql directive you quoted is the only requirement of which I'm aware. Did you copy your newly compiled libphp4.so library to the /usr/libexec/httpd directory? To make sure that it isn't just your syntax, you could install phpPgAdmin, which works for me. Anyway, I apologize for not having more to suggest but I wanted to steer you away from worrying about a pgsql.so library.
Gary
A computer scientist is someone who, when told to "Go to Hell", sees the
"go to", rather than the destination, as harmful.
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Dec 4, 2003, 09:08 AM
 
The php from entropy includes postgres precompiled in. You can get it here:

http://www.entropy.ch/software/macosx/php/

It includes all the most popular modules compiled in, including MySQL and PostgreSQL.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 04:13 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2