<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Snow Leopard and PHP</title>
	<atom:link href="http://www.gnegg.ch/2009/08/snow-leopard-and-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gnegg.ch/2009/08/snow-leopard-and-php/</link>
	<description>programming with passion</description>
	<lastBuildDate>Thu, 09 Sep 2010 18:20:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: george</title>
		<link>http://www.gnegg.ch/2009/08/snow-leopard-and-php/comment-page-1/#comment-2287</link>
		<dc:creator>george</dc:creator>
		<pubDate>Mon, 26 Jul 2010 13:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnegg.ch/?p=609#comment-2287</guid>
		<description>the bit below worked for me. thanks for this page.

Thibaut said:
&gt; My “libpq-fe.h” is in the /usr/local/mypostgres/include so I think the problem is with “pg_config” so I fixe the problem by setting “export PG_CONFIG=/path/path/pg_config”</description>
		<content:encoded><![CDATA[<p>the bit below worked for me. thanks for this page.</p>
<p>Thibaut said:<br />
&gt; My “libpq-fe.h” is in the /usr/local/mypostgres/include so I think the problem is with “pg_config” so I fixe the problem by setting “export PG_CONFIG=/path/path/pg_config”</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thibaut</title>
		<link>http://www.gnegg.ch/2009/08/snow-leopard-and-php/comment-page-1/#comment-1876</link>
		<dc:creator>Thibaut</dc:creator>
		<pubDate>Thu, 12 Nov 2009 23:52:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnegg.ch/?p=609#comment-1876</guid>
		<description>Thanks for the tips but I steal have a problem when ./configure pdo_pgsql.

When you say &quot;go to ext/pgsql&quot; in the php5.3 source folder, I do the same with &quot;ext/pdo_pgsql&quot;
I run &quot;phpize&quot; and I try &quot;./configure --with-pgsql=/usr/local/mypostgres&quot;
After some work I got that:
checking for PostgreSQL support for PDO... yes, shared
checking for pg_config... not found
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

My &quot;libpq-fe.h&quot; is in the /usr/local/mypostgres/include so I think the problem is with &quot;pg_config&quot; so I fixe the problem by setting &quot;export PG_CONFIG=/path/path/pg_config&quot;

I enable &quot;pdo_pgsql.so&quot; in my php.ini but pgsql support in PDO is not enable in phpinfo();

does anyone have any idea? 

Thanks</description>
		<content:encoded><![CDATA[<p>Thanks for the tips but I steal have a problem when ./configure pdo_pgsql.</p>
<p>When you say &#8220;go to ext/pgsql&#8221; in the php5.3 source folder, I do the same with &#8220;ext/pdo_pgsql&#8221;<br />
I run &#8220;phpize&#8221; and I try &#8220;./configure &#8211;with-pgsql=/usr/local/mypostgres&#8221;<br />
After some work I got that:<br />
checking for PostgreSQL support for PDO&#8230; yes, shared<br />
checking for pg_config&#8230; not found<br />
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path</p>
<p>My &#8220;libpq-fe.h&#8221; is in the /usr/local/mypostgres/include so I think the problem is with &#8220;pg_config&#8221; so I fixe the problem by setting &#8220;export PG_CONFIG=/path/path/pg_config&#8221;</p>
<p>I enable &#8220;pdo_pgsql.so&#8221; in my php.ini but pgsql support in PDO is not enable in phpinfo();</p>
<p>does anyone have any idea? </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nev</title>
		<link>http://www.gnegg.ch/2009/08/snow-leopard-and-php/comment-page-1/#comment-1763</link>
		<dc:creator>Nev</dc:creator>
		<pubDate>Tue, 20 Oct 2009 21:04:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnegg.ch/?p=609#comment-1763</guid>
		<description>Thank you so much for this - it worked flawlessly!

If you want to add in the PDO Postgres driver as well I found the following URL to be of great use:

http://stackoverflow.com/questions/61747/installing-pdo-drivers-for-postgresql-on-mac-using-zend-for-eclipse</description>
		<content:encoded><![CDATA[<p>Thank you so much for this &#8211; it worked flawlessly!</p>
<p>If you want to add in the PDO Postgres driver as well I found the following URL to be of great use:</p>
<p><a href="http://stackoverflow.com/questions/61747/installing-pdo-drivers-for-postgresql-on-mac-using-zend-for-eclipse" rel="nofollow">http://stackoverflow.com/questions/61747/installing-pdo-drivers-for-postgresql-on-mac-using-zend-for-eclipse</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rocco</title>
		<link>http://www.gnegg.ch/2009/08/snow-leopard-and-php/comment-page-1/#comment-1760</link>
		<dc:creator>Rocco</dc:creator>
		<pubDate>Mon, 19 Oct 2009 20:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnegg.ch/?p=609#comment-1760</guid>
		<description>Ok, finally it works! After three days of pain I did it!</description>
		<content:encoded><![CDATA[<p>Ok, finally it works! After three days of pain I did it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rocco</title>
		<link>http://www.gnegg.ch/2009/08/snow-leopard-and-php/comment-page-1/#comment-1747</link>
		<dc:creator>Rocco</dc:creator>
		<pubDate>Sun, 18 Oct 2009 09:24:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnegg.ch/?p=609#comment-1747</guid>
		<description>Hi Philip, can you share on your site the pgsql.so and pdo_pgsql.so for snow leopard? I have some problems with libpq and i don&#039;t know much about compiling stuffs....

Thank you</description>
		<content:encoded><![CDATA[<p>Hi Philip, can you share on your site the pgsql.so and pdo_pgsql.so for snow leopard? I have some problems with libpq and i don&#8217;t know much about compiling stuffs&#8230;.</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: m</title>
		<link>http://www.gnegg.ch/2009/08/snow-leopard-and-php/comment-page-1/#comment-1575</link>
		<dc:creator>m</dc:creator>
		<pubDate>Sat, 05 Sep 2009 13:00:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnegg.ch/?p=609#comment-1575</guid>
		<description>I&#039;m up and running again thanks to your post.

Note to anybody who already has Postgres installed when they arrive here: I didn&#039;t have to mess with Postgres (already installed via links below), I just went straight to the PHP instructions and installed the pgsql module.

Also, two posts that may be helpful for anybody going through this process with Snow Leopard right now:

[Postgres section here]
http://afreshcup.com/2009/09/02/migrating-to-snow-leopard-for-rails-development-a-definitive-guide/
[Above link points here for Leopard instructions that worked fine for me on Snow Leopard]
http://devoh.com/posts/2008/10/installing-postgresql-on-mac-os-x-10.5-leopard</description>
		<content:encoded><![CDATA[<p>I&#8217;m up and running again thanks to your post.</p>
<p>Note to anybody who already has Postgres installed when they arrive here: I didn&#8217;t have to mess with Postgres (already installed via links below), I just went straight to the PHP instructions and installed the pgsql module.</p>
<p>Also, two posts that may be helpful for anybody going through this process with Snow Leopard right now:</p>
<p>[Postgres section here]<br />
<a href="http://afreshcup.com/2009/09/02/migrating-to-snow-leopard-for-rails-development-a-definitive-guide/" rel="nofollow">http://afreshcup.com/2009/09/02/migrating-to-snow-leopard-for-rails-development-a-definitive-guide/</a><br />
[Above link points here for Leopard instructions that worked fine for me on Snow Leopard]<br />
<a href="http://devoh.com/posts/2008/10/installing-postgresql-on-mac-os-x-10.5-leopard" rel="nofollow">http://devoh.com/posts/2008/10/installing-postgresql-on-mac-os-x-10.5-leopard</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugo</title>
		<link>http://www.gnegg.ch/2009/08/snow-leopard-and-php/comment-page-1/#comment-1571</link>
		<dc:creator>Hugo</dc:creator>
		<pubDate>Tue, 01 Sep 2009 17:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnegg.ch/?p=609#comment-1571</guid>
		<description>You&#039;re right. I did it again from the top and it works. Thanks!
It also works for pdo_pgsql.</description>
		<content:encoded><![CDATA[<p>You&#8217;re right. I did it again from the top and it works. Thanks!<br />
It also works for pdo_pgsql.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip Hofstetter</title>
		<link>http://www.gnegg.ch/2009/08/snow-leopard-and-php/comment-page-1/#comment-1570</link>
		<dc:creator>Philip Hofstetter</dc:creator>
		<pubDate>Tue, 01 Sep 2009 16:36:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnegg.ch/?p=609#comment-1570</guid>
		<description>@Hugo: Of PG_VERSION should get correctly defined if you run the two configure scripts. It could be though that ext/pgsql&#039;s configure needs pg_config to work correctly which is why I also added the compilation of the client-side binaries to my instructions in the entry itself.</description>
		<content:encoded><![CDATA[<p>@Hugo: Of PG_VERSION should get correctly defined if you run the two configure scripts. It could be though that ext/pgsql&#8217;s configure needs pg_config to work correctly which is why I also added the compilation of the client-side binaries to my instructions in the entry itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugo</title>
		<link>http://www.gnegg.ch/2009/08/snow-leopard-and-php/comment-page-1/#comment-1569</link>
		<dc:creator>Hugo</dc:creator>
		<pubDate>Tue, 01 Sep 2009 16:31:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnegg.ch/?p=609#comment-1569</guid>
		<description>@Philip: updated instructions don&#039;t work either.
Just do the
# sudo make -C src/interfaces install
and then
# cd src/include
# sudo cp postgres_ext.h /usr/local/mypostgres/include
# sudo cp pg_config.h /usr/local/mypostgres/include
# sudo cp -R libpq /usr/local/mypostgres/include
And you still need to define PG_VERSION in the config.h file in the php build.
Copying pg_config.h is only necessary for pdo_pgsql, that one works the same as  building the pgsql extension, just use ./configure --with-pdo_pgsql=/usr/local/mypostgres</description>
		<content:encoded><![CDATA[<p>@Philip: updated instructions don&#8217;t work either.<br />
Just do the<br />
# sudo make -C src/interfaces install<br />
and then<br />
# cd src/include<br />
# sudo cp postgres_ext.h /usr/local/mypostgres/include<br />
# sudo cp pg_config.h /usr/local/mypostgres/include<br />
# sudo cp -R libpq /usr/local/mypostgres/include<br />
And you still need to define PG_VERSION in the config.h file in the php build.<br />
Copying pg_config.h is only necessary for pdo_pgsql, that one works the same as  building the pgsql extension, just use ./configure &#8211;with-pdo_pgsql=/usr/local/mypostgres</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Segspod</title>
		<link>http://www.gnegg.ch/2009/08/snow-leopard-and-php/comment-page-1/#comment-1568</link>
		<dc:creator>Segspod</dc:creator>
		<pubDate>Tue, 01 Sep 2009 16:30:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.gnegg.ch/?p=609#comment-1568</guid>
		<description>The updates to the blog fixed it.  Thanks ..</description>
		<content:encoded><![CDATA[<p>The updates to the blog fixed it.  Thanks ..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
