<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: MySQL and PDO on OS X Leopard, Intel</title>
	<atom:link href="http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/feed/" rel="self" type="application/rss+xml" />
	<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/</link>
	<description></description>
	<lastBuildDate>Thu, 03 Jun 2010 17:36:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1-alpha-15359</generator>
	<item>
		<title>By: Daniel</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-32211</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sun, 23 May 2010 10:22:10 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-32211</guid>
		<description>Hi , i have found this page by googling the phrase below which i am getting almost once a day in my wordpress error log, this phrase brought me to your blog so I hope that here are some experts who are talking about this:

PHP Warning: PHP Startup: Unable to load dynamic library &#039;/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so&#039; - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0, 

Thanks to the error up and below(with some referrer from China) I have my Wordpress website once a day or 2 days down - 505 internal server error. To make my website run again I always need to delete .htaccess file .
Can anybody help me to explain what is wrong , has my website been hacked or what those errors means? I&#039;m sure that foreign URLS is something that in my errors cant be :

[Sun May 23 03:40:59 2010] [error] [client 213.5.70.184] PHP Warning: PHP Startup: Unable to load dynamic library &#039;/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so&#039; - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0, referer: http://forum.vipearn.com/thread-10523-1-1.html 

Can anybody help me to explain how to eliminate this problem? Unfortunately im not PHP - Apache expert at all ,
I would be very happy if anybody can respond  , Daniel</description>
		<content:encoded><![CDATA[<p>Hi , i have found this page by googling the phrase below which i am getting almost once a day in my wordpress error log, this phrase brought me to your blog so I hope that here are some experts who are talking about this:</p>
<p>PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0, </p>
<p>Thanks to the error up and below(with some referrer from China) I have my WordPress website once a day or 2 days down - 505 internal server error. To make my website run again I always need to delete .htaccess file .<br />
Can anybody help me to explain what is wrong , has my website been hacked or what those errors means? I'm sure that foreign URLS is something that in my errors cant be :</p>
<p>[Sun May 23 03:40:59 2010] [error] [client 213.5.70.184] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0, referer: <a href="http://forum.vipearn.com/thread-10523-1-1.html" rel="nofollow">http://forum.vipearn.com/thread-10523-1-1.html</a> </p>
<p>Can anybody help me to explain how to eliminate this problem? Unfortunately im not PHP - Apache expert at all ,<br />
I would be very happy if anybody can respond  , Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OzPeter</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-29089</link>
		<dc:creator>OzPeter</dc:creator>
		<pubDate>Tue, 15 Dec 2009 22:01:31 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-29089</guid>
		<description>Hi Tom,
Thanks for the article.  I had to make a couple of changes when implementing it on my system:

1) ./configure couldn&#039;t find my zlib dir, so I had to edit .setup.sh to be:

./configure --prefix=/usr --with-pdo-mysql=/usr/local/mysql --with-zlib-dir=/usr/lib/

2) The original .setup.sh wants to build every architecture, and this seemed to be failing with everything except i386.  But you already established that you only need the i386 version.  So I modified the script to be:

CFLAGS=&#039;-O3 -fno-common -arch i386&#039; \

3/ I had to tell php.ini where the .so file was:

extension_dir = &quot;/usr/lib/php/extensions/no-debug-non-zts-20060613/&quot;

4/ The trick of creating /Library/LaunchDaemons/org.apache.httpd.plist was fine for a reboot of the computer, but didn&#039;t work when you bounced Apache through System Preferences.  In the later case Apache still came up in x64 mode.  I had to edit /System/Library/LaunchDaemons/org.apache.httpd.plist to get the system to always come up in i386 mode</description>
		<content:encoded><![CDATA[<p>Hi Tom,<br />
Thanks for the article.  I had to make a couple of changes when implementing it on my system:</p>
<p>1) ./configure couldn't find my zlib dir, so I had to edit .setup.sh to be:</p>
<p>./configure --prefix=/usr --with-pdo-mysql=/usr/local/mysql --with-zlib-dir=/usr/lib/</p>
<p>2) The original .setup.sh wants to build every architecture, and this seemed to be failing with everything except i386.  But you already established that you only need the i386 version.  So I modified the script to be:</p>
<p>CFLAGS='-O3 -fno-common -arch i386' \</p>
<p>3/ I had to tell php.ini where the .so file was:</p>
<p>extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20060613/"</p>
<p>4/ The trick of creating /Library/LaunchDaemons/org.apache.httpd.plist was fine for a reboot of the computer, but didn't work when you bounced Apache through System Preferences.  In the later case Apache still came up in x64 mode.  I had to edit /System/Library/LaunchDaemons/org.apache.httpd.plist to get the system to always come up in i386 mode</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PDO and MySQL on Mac OS X &#171; saltybeagle.com</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-28210</link>
		<dc:creator>PDO and MySQL on Mac OS X &#171; saltybeagle.com</dc:creator>
		<pubDate>Sun, 25 Oct 2009 23:04:51 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-28210</guid>
		<description>[...] If you&#8217;d like the full details to build the extension yourself &#8211; see Tom Gidden&#8217;s post with all the info. [...]</description>
		<content:encoded><![CDATA[<p>[...] If you&#8217;d like the full details to build the extension yourself &#8211; see Tom Gidden&#8217;s post with all the info. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Gidden</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-27560</link>
		<dc:creator>Tom Gidden</dc:creator>
		<pubDate>Wed, 16 Sep 2009 17:32:47 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-27560</guid>
		<description>Hey Andrey,

Thanks for the comments! A lot of this is no longer necessary thanks to Snow Leopard, and I still think recompiling the stock PHP is a Bad Idea... In general, I do my best to avoid changing anything that Apple considers to be core system software, eg. /System.    In general, if the PHP needs configuring properly, I think it&#039;s worth doing in a separate tree, like MacPorts does.

...but it&#039;s all about knowing when to bend the rules, too :)

To elaborate on the phpinfo() step, at the Terminal, type:

&lt;code&gt;php -i &#124; grep &#039;Configure Command&#039;&lt;/code&gt;

That should return the command Apple used to configure the PHP build.  After tweaking and running that line, it&#039;s just a make &amp;&amp; sudo make install.</description>
		<content:encoded><![CDATA[<p>Hey Andrey,</p>
<p>Thanks for the comments! A lot of this is no longer necessary thanks to Snow Leopard, and I still think recompiling the stock PHP is a Bad Idea... In general, I do my best to avoid changing anything that Apple considers to be core system software, eg. /System.    In general, if the PHP needs configuring properly, I think it's worth doing in a separate tree, like MacPorts does.</p>
<p>...but it's all about knowing when to bend the rules, too :)</p>
<p>To elaborate on the phpinfo() step, at the Terminal, type:</p>
<p><code>php -i | grep 'Configure Command'</code></p>
<p>That should return the command Apple used to configure the PHP build.  After tweaking and running that line, it's just a make &#038;& sudo make install.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-27519</link>
		<dc:creator>Andrey</dc:creator>
		<pubDate>Tue, 15 Sep 2009 08:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-27519</guid>
		<description>Dear Tom, 
your article on pdo_mysql problems on Mac default PHP istallation is obviously a hit (first place in google search). In your comment from May 23rd, 2009 you&#039;ve mentioned that you are going to complie PHP yourself and add pdo_mysql manually. 
I was just wondering if you could provide us with a full description how you did it - similar to the one in this article. I&#039;m sure it will be another hit. 
Thank you in advance!
Andrey</description>
		<content:encoded><![CDATA[<p>Dear Tom,<br />
your article on pdo_mysql problems on Mac default PHP istallation is obviously a hit (first place in google search). In your comment from May 23rd, 2009 you've mentioned that you are going to complie PHP yourself and add pdo_mysql manually.<br />
I was just wondering if you could provide us with a full description how you did it - similar to the one in this article. I'm sure it will be another hit.<br />
Thank you in advance!<br />
Andrey</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yvan BARTHÉLEMY</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-27088</link>
		<dc:creator>Yvan BARTHÉLEMY</dc:creator>
		<pubDate>Sun, 30 Aug 2009 01:03:37 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-27088</guid>
		<description>It would be a great idea to add the Mac OS X sock path in configuration : --with-unix-socket-path=/var/mysql/mysql.sock

Also these instructions works on 10.6 (MySQL build only, PDO module build is no longer required) with some adjustments: remove -arch ppcXXX and replace 10.5 with 10.6.

However you will probably want to add pdo_mysql.default_socket=/var/mysql/mysql.sock in your php.ini. The default Apple installation has not configured the module correctly.</description>
		<content:encoded><![CDATA[<p>It would be a great idea to add the Mac OS X sock path in configuration : --with-unix-socket-path=/var/mysql/mysql.sock</p>
<p>Also these instructions works on 10.6 (MySQL build only, PDO module build is no longer required) with some adjustments: remove -arch ppcXXX and replace 10.5 with 10.6.</p>
<p>However you will probably want to add pdo_mysql.default_socket=/var/mysql/mysql.sock in your php.ini. The default Apple installation has not configured the module correctly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alberto aka HTC</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-27055</link>
		<dc:creator>Alberto aka HTC</dc:creator>
		<pubDate>Fri, 28 Aug 2009 18:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-27055</guid>
		<description>Hi, 
 thanks for the article. 
I just want to add that if you already have installed a 32-bit MySQL (like me) the way to force Apache to 32-bit arch
is absolutely faster (and works).

@ stephenrs, About the zlib error actually if you checkout config.log you will find that is not able to use some library due to a different architecture (it&#039;s not the very last line but it&#039;s some line before). You are probably compiling a 32 bit extension and trying to use a 64 bit library.

Bye</description>
		<content:encoded><![CDATA[<p>Hi,<br />
 thanks for the article.<br />
I just want to add that if you already have installed a 32-bit MySQL (like me) the way to force Apache to 32-bit arch<br />
is absolutely faster (and works).</p>
<p>@ stephenrs, About the zlib error actually if you checkout config.log you will find that is not able to use some library due to a different architecture (it's not the very last line but it's some line before). You are probably compiling a 32 bit extension and trying to use a 64 bit library.</p>
<p>Bye</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephenrs</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-24942</link>
		<dc:creator>stephenrs</dc:creator>
		<pubDate>Tue, 30 Jun 2009 19:46:04 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-24942</guid>
		<description>I can&#039;t believe what a pain it is to get pdo_mysql working on my Intel MBP. Over the last week or so I&#039;ve gotten 3 fairly well customized CentOS servers up and running with perfect LAMP setups, mostly using the yum package manager, and things &quot;just worked&quot;. Now I&#039;m trying to get my local dev environment setup to actually get some programming done, and I find that Apple has left me out in the cold - things are far from &quot;just working&quot;. 

Using your (very nice, btw) instructions, on the ./configure line, I&#039;m getting the error:

&quot;configure: error: Try adding --with-zlib-dir=. Please check config.log for more information.&quot;

I come from the days before RPM&#039;s and yum, so I&#039;m no stranger to compiling things from src and dealing with dependencies...I just would never have guessed that my Mac would be the thing that blasted me back 10 years to having to pick through config.log files to hammer a silly little .so into submission. :(

If anyone has any advice on what problem is indicated by that zlib error, I would be very grateful...off to dependency purgatory I go...</description>
		<content:encoded><![CDATA[<p>I can't believe what a pain it is to get pdo_mysql working on my Intel MBP. Over the last week or so I've gotten 3 fairly well customized CentOS servers up and running with perfect LAMP setups, mostly using the yum package manager, and things "just worked". Now I'm trying to get my local dev environment setup to actually get some programming done, and I find that Apple has left me out in the cold - things are far from "just working". </p>
<p>Using your (very nice, btw) instructions, on the ./configure line, I'm getting the error:</p>
<p>"configure: error: Try adding --with-zlib-dir=. Please check config.log for more information."</p>
<p>I come from the days before RPM's and yum, so I'm no stranger to compiling things from src and dealing with dependencies...I just would never have guessed that my Mac would be the thing that blasted me back 10 years to having to pick through config.log files to hammer a silly little .so into submission. :(</p>
<p>If anyone has any advice on what problem is indicated by that zlib error, I would be very grateful...off to dependency purgatory I go...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Gidden</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-23695</link>
		<dc:creator>Tom Gidden</dc:creator>
		<pubDate>Sat, 23 May 2009 10:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-23695</guid>
		<description>I&#039;ve not been doing PHP on my mac for a while, but have just revisited it again, using PDO and MySQL 5.1 client libraries.

What a nightmare!

The problem is that Apple&#039;s PHP is compiled with mysql/mysqli support built-in using the 5.0.67 MySQL client library.  I&#039;m not sure if it&#039;s statically linked or not.

Anyway, I can&#039;t see a way to compile PDO_MYSQL as a shared extension but statically linking in the 5.1 client library.  So, while it compiles against the 5.1 library, it seems to run with the 5.0.67 library.  This is verified using phpinfo().

As a result, queries _seem_ to work, but don&#039;t always return the correct results.

While I usually try to stick with the stock Leopard php module, I&#039;m admitting defeat and compiling a new one.  Rather than using one of the standard PHP bundles, I&#039;m compiling a fresh one using Apple&#039;s configuration parameters (also from phpinfo()), but removing the mysql and mysqli extensions.

I&#039;m then going to compile those as dynamic extensions THE WAY APPLE SHOULD HAVE IN THE FIRST PLACE!

Apple, if you&#039;re listening/googling, if you&#039;re going to include a PHP, please just include a very bare-bones install without compiling in any extensions that can be dl&#039;ed instead!  I understand why the stock PHP doesn&#039;t include every extension under the sun (good plan), but there&#039;s no reason why it needs to include some extensions that limit future expandability.

Okay, the PDO ext needs to be static on Darwin, but the mysql, mysqli, pdo_sqlite extensions would work perfectly well if dl&#039;ed rather than statically linked, and it would make upgrading MUCH easier.</description>
		<content:encoded><![CDATA[<p>I've not been doing PHP on my mac for a while, but have just revisited it again, using PDO and MySQL 5.1 client libraries.</p>
<p>What a nightmare!</p>
<p>The problem is that Apple's PHP is compiled with mysql/mysqli support built-in using the 5.0.67 MySQL client library.  I'm not sure if it's statically linked or not.</p>
<p>Anyway, I can't see a way to compile PDO_MYSQL as a shared extension but statically linking in the 5.1 client library.  So, while it compiles against the 5.1 library, it seems to run with the 5.0.67 library.  This is verified using phpinfo().</p>
<p>As a result, queries _seem_ to work, but don't always return the correct results.</p>
<p>While I usually try to stick with the stock Leopard php module, I'm admitting defeat and compiling a new one.  Rather than using one of the standard PHP bundles, I'm compiling a fresh one using Apple's configuration parameters (also from phpinfo()), but removing the mysql and mysqli extensions.</p>
<p>I'm then going to compile those as dynamic extensions THE WAY APPLE SHOULD HAVE IN THE FIRST PLACE!</p>
<p>Apple, if you're listening/googling, if you're going to include a PHP, please just include a very bare-bones install without compiling in any extensions that can be dl'ed instead!  I understand why the stock PHP doesn't include every extension under the sun (good plan), but there's no reason why it needs to include some extensions that limit future expandability.</p>
<p>Okay, the PDO ext needs to be static on Darwin, but the mysql, mysqli, pdo_sqlite extensions would work perfectly well if dl'ed rather than statically linked, and it would make upgrading MUCH easier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: captnswing</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-22403</link>
		<dc:creator>captnswing</dc:creator>
		<pubDate>Sun, 19 Apr 2009 09:57:24 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-22403</guid>
		<description>Tom, great guide
while I agree  that it is more convenient for normal users to force 32bit execution of apache and just avoid the whole 64bit headache.

-- I used your guide with some modifications to come up with a full 64bit python web stack 

see http://blog.captnswing.net/2009/04/19/python-mod_wsgi-64bit-mac-os-x-105/</description>
		<content:encoded><![CDATA[<p>Tom, great guide<br />
while I agree  that it is more convenient for normal users to force 32bit execution of apache and just avoid the whole 64bit headache.</p>
<p>-- I used your guide with some modifications to come up with a full 64bit python web stack </p>
<p>see <a href="http://blog.captnswing.net/2009/04/19/python-mod_wsgi-64bit-mac-os-x-105/" rel="nofollow">http://blog.captnswing.net/2009/04/19/python-mod_wsgi-64bit-mac-os-x-105/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-21760</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Mon, 06 Apr 2009 19:38:19 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-21760</guid>
		<description>Forcing apache to run in 32 bit mode works perfectly for me. I&#039;m using native php and apache2 from macosx. To develop with symfony 1.2, I had to get the pdo_mysql from pecl.php.net and mv the compiled extension in the php extension_dir (/usr/lib/php/extensions/).

I just hope upcoming macosx updates won&#039;t screw up my setup!</description>
		<content:encoded><![CDATA[<p>Forcing apache to run in 32 bit mode works perfectly for me. I'm using native php and apache2 from macosx. To develop with symfony 1.2, I had to get the pdo_mysql from pecl.php.net and mv the compiled extension in the php extension_dir (/usr/lib/php/extensions/).</p>
<p>I just hope upcoming macosx updates won't screw up my setup!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-21133</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Mon, 02 Mar 2009 22:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-21133</guid>
		<description>Yes it is strange. Developer Tools are definitely installed and running, and other compiler tasks have completed without issue.  Managed to get GD Tools happening, but PDO is the last little hitch.  Looks like I might have to resort to *cough* MAMP after all. Cheers anyway.</description>
		<content:encoded><![CDATA[<p>Yes it is strange. Developer Tools are definitely installed and running, and other compiler tasks have completed without issue.  Managed to get GD Tools happening, but PDO is the last little hitch.  Looks like I might have to resort to *cough* MAMP after all. Cheers anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Gidden</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-21121</link>
		<dc:creator>Tom Gidden</dc:creator>
		<pubDate>Mon, 02 Mar 2009 09:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-21121</guid>
		<description>The last time I had an error like that, I&#039;d forgotten to install a C++ compiler on a Linux box.  Make sure you have Apple&#039;s Developer Tools correctly installed.  Other than that, I don&#039;t know.</description>
		<content:encoded><![CDATA[<p>The last time I had an error like that, I'd forgotten to install a C++ compiler on a Linux box.  Make sure you have Apple's Developer Tools correctly installed.  Other than that, I don't know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-21119</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Mon, 02 Mar 2009 09:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-21119</guid>
		<description>Thanks for the write up.  I&#039;m having some trouble with the compile command.  What would this be for a MBP 32 bit?

The ones provided result in this error: 

&quot;configure: error: C compiler cannot create executables&quot;

Anyone come across this problem?</description>
		<content:encoded><![CDATA[<p>Thanks for the write up.  I'm having some trouble with the compile command.  What would this be for a MBP 32 bit?</p>
<p>The ones provided result in this error: </p>
<p>"configure: error: C compiler cannot create executables"</p>
<p>Anyone come across this problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Gidden</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-20115</link>
		<dc:creator>Tom Gidden</dc:creator>
		<pubDate>Mon, 08 Dec 2008 12:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-20115</guid>
		<description>Strange... the reason for that line is to create &quot;data&quot; for mysql_install_db to install into.  An alternative is to just create a &quot;data&quot; directory with mkdir.

To be honest, since I found out how to flip Apache into 32-bit mode (as shown in the comments above), I just use the standard 32-bit binary distributions of MySQL rather than compiling my own.</description>
		<content:encoded><![CDATA[<p>Strange... the reason for that line is to create "data" for mysql_install_db to install into.  An alternative is to just create a "data" directory with mkdir.</p>
<p>To be honest, since I found out how to flip Apache into 32-bit mode (as shown in the comments above), I just use the standard 32-bit binary distributions of MySQL rather than compiling my own.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cirpo</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-20114</link>
		<dc:creator>cirpo</dc:creator>
		<pubDate>Mon, 08 Dec 2008 12:36:36 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-20114</guid>
		<description>I tuought it was a typo beacause when i type &#039;ln -s var data&#039;  I have an error : the directory data doesn&#039;t exist.
It will exist after &#039;bin/mysql_install_db --user=_mysql&#039;.
am I doing something wrong?

cirpo</description>
		<content:encoded><![CDATA[<p>I tuought it was a typo beacause when i type 'ln -s var data'  I have an error : the directory data doesn't exist.<br />
It will exist after 'bin/mysql_install_db --user=_mysql'.<br />
am I doing something wrong?</p>
<p>cirpo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Gidden</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-20108</link>
		<dc:creator>Tom Gidden</dc:creator>
		<pubDate>Mon, 08 Dec 2008 00:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-20108</guid>
		<description>cirpo: that was intentional.  The &quot;data&quot; symlink refers to the &quot;var&quot; subdirectory of the mysql tree, ie. /usr/local/mysql/var in this example, referred to as &quot;localstatedir&quot; in the MySQL build, rather than the system-wide /var.

However, you may wish to either share a var or data directory between all mysql versions, or a separate var for each build.  It depends on taste and also the particular needs of your environment.

If you want to use /var, then a subdirectory should be made, eg. /var/db/mysql and that path compiled in.

Thanks</description>
		<content:encoded><![CDATA[<p>cirpo: that was intentional.  The "data" symlink refers to the "var" subdirectory of the mysql tree, ie. /usr/local/mysql/var in this example, referred to as "localstatedir" in the MySQL build, rather than the system-wide /var.</p>
<p>However, you may wish to either share a var or data directory between all mysql versions, or a separate var for each build.  It depends on taste and also the particular needs of your environment.</p>
<p>If you want to use /var, then a subdirectory should be made, eg. /var/db/mysql and that path compiled in.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cirpo</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-20107</link>
		<dc:creator>cirpo</dc:creator>
		<pubDate>Mon, 08 Dec 2008 00:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-20107</guid>
		<description>typo:

ln -s var data

instead of:

ln -s /var data

cheers</description>
		<content:encoded><![CDATA[<p>typo:</p>
<p>ln -s var data</p>
<p>instead of:</p>
<p>ln -s /var data</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Gidden</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-20043</link>
		<dc:creator>Tom Gidden</dc:creator>
		<pubDate>Thu, 27 Nov 2008 10:06:46 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-20043</guid>
		<description>ARGHFLAGS is for controlling the compiler, right?  I couldn&#039;t find a way of setting the execution architecture mode of the entire machine.

I set up a couple of command line aliases to twiddle ARCHFLAGS for different compilation modes, but ended up going with the launchd method above.

However, I have noticed that the /Library/LaunchDaemons override doesn&#039;t seem to be working now.  Instead I&#039;ve had to end up changing /System/Library/LaunchDaemons/org.apache.httpd.plist instead.  I really don&#039;t like changing anything in /System though, but /Library didn&#039;t seem to be taking precendence (which I think is wrong).</description>
		<content:encoded><![CDATA[<p>ARGHFLAGS is for controlling the compiler, right?  I couldn't find a way of setting the execution architecture mode of the entire machine.</p>
<p>I set up a couple of command line aliases to twiddle ARCHFLAGS for different compilation modes, but ended up going with the launchd method above.</p>
<p>However, I have noticed that the /Library/LaunchDaemons override doesn't seem to be working now.  Instead I've had to end up changing /System/Library/LaunchDaemons/org.apache.httpd.plist instead.  I really don't like changing anything in /System though, but /Library didn't seem to be taking precendence (which I think is wrong).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stig</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-20042</link>
		<dc:creator>Stig</dc:creator>
		<pubDate>Thu, 27 Nov 2008 09:20:51 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-20042</guid>
		<description>Yeah, it sucks big time. Was a pain in the ass to get mod_perl working properly, as apache is 64 bit and perl is 32 bit.

Ended up rolling my own apache though.

Btw, think the arch stuff can be set globally with just ARCHFLAGS=&#039;-arch x86_64 &#039;</description>
		<content:encoded><![CDATA[<p>Yeah, it sucks big time. Was a pain in the ass to get mod_perl working properly, as apache is 64 bit and perl is 32 bit.</p>
<p>Ended up rolling my own apache though.</p>
<p>Btw, think the arch stuff can be set globally with just ARCHFLAGS='-arch x86_64 '</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SeanG</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-19882</link>
		<dc:creator>SeanG</dc:creator>
		<pubDate>Fri, 14 Nov 2008 04:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-19882</guid>
		<description>THANKS! Worked out great!</description>
		<content:encoded><![CDATA[<p>THANKS! Worked out great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Prall</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-19827</link>
		<dc:creator>Adam Prall</dc:creator>
		<pubDate>Thu, 06 Nov 2008 01:57:07 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-19827</guid>
		<description>Hey Raz (any anyone else with that same problem), I ended up with the same situation here on an Intel machine, the reason for me was that that computer&#039;s enter LAMP setup (Mac OS 10.5, Apache 2, MySQL 5, PHP 5, nothing to do with the commercial “MAMP” package) is 64-bit. And, I had an old pdo_mysql.so module which was compiled against the wrong version of MySQL. So my solution was to follow the above compiling instructions, but modify the config command:

&lt;code&gt;
MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS=&#039;-O3 -fno-common  -arch x86_64&#039; LDFLAGS=&#039;-O3 -arch x86_64&#039; CXXFLAGS=&#039;-O3 -fno-common -arch x86_64&#039; \
./configure --prefix=/usr --with-pdo-mysql=/usr/local/mysql
&lt;/code&gt;

…basically, I removed the 32-bit Intel directives, the PowerPC directives, and also made sure that my MySQL path was correct. For example, a port install of MySQL, and including PowerPC and Intel 32 bit versions might be:

&lt;code&gt;
MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS=&#039;-O3 -fno-common -arch i386 -arch x86_64 -arch ppc7400 -arch ppc64&#039; LDFLAGS=&#039;-O3 -arch i386 -arch x86_64 -arch ppc7400 -arch ppc64&#039; CXXFLAGS=&#039;-O3 -fno-common -arch i386 -arch x86_64 -arch ppc7400 -arch ppc64&#039; \
./configure --prefix=/usr --with-pdo-mysql=/opt/local/lib/mysql5/mysql
&lt;/code&gt;

Hope this helps!</description>
		<content:encoded><![CDATA[<p>Hey Raz (any anyone else with that same problem), I ended up with the same situation here on an Intel machine, the reason for me was that that computer's enter LAMP setup (Mac OS 10.5, Apache 2, MySQL 5, PHP 5, nothing to do with the commercial “MAMP” package) is 64-bit. And, I had an old pdo_mysql.so module which was compiled against the wrong version of MySQL. So my solution was to follow the above compiling instructions, but modify the config command:</p>
<p><code><br />
MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS='-O3 -fno-common  -arch x86_64' LDFLAGS='-O3 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch x86_64' \<br />
./configure --prefix=/usr --with-pdo-mysql=/usr/local/mysql<br />
</code></p>
<p>…basically, I removed the 32-bit Intel directives, the PowerPC directives, and also made sure that my MySQL path was correct. For example, a port install of MySQL, and including PowerPC and Intel 32 bit versions might be:</p>
<p><code><br />
MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64 -arch ppc7400 -arch ppc64' LDFLAGS='-O3 -arch i386 -arch x86_64 -arch ppc7400 -arch ppc64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64 -arch ppc7400 -arch ppc64' \<br />
./configure --prefix=/usr --with-pdo-mysql=/opt/local/lib/mysql5/mysql<br />
</code></p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Gidden</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-18570</link>
		<dc:creator>Tom Gidden</dc:creator>
		<pubDate>Wed, 17 Sep 2008 13:32:45 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-18570</guid>
		<description>No idea, sorry... it could be one of many different possible problems.</description>
		<content:encoded><![CDATA[<p>No idea, sorry... it could be one of many different possible problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raz</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-18533</link>
		<dc:creator>Raz</dc:creator>
		<pubDate>Mon, 15 Sep 2008 07:39:03 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-18533</guid>
		<description>I did follow your instructions installing PDO_mysql ... for some reason apache is unable to load the extension. The extension is installed in the right directory and the path where apache is looking for the extension is right. Here is the erro I get in in the apache error log:

[Mon Sep 15 01:20:19 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
PHP Warning:  PHP Startup: Unable to load dynamic library &#039;/usr/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so&#039; - (null) in Unknown on line 0
[Mon Sep 15 01:20:19 2008] [notice] Digest: generating secret for digest authentication ...
[Mon Sep 15 01:20:19 2008] [notice] Digest: done
[Mon Sep 15 01:20:19 2008] [notice] Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.7l DAV/2 PHP/5.2.6 configured -- resuming normal operations

Any idea/advice would be greatly appreciate it.

Thank you for your time.</description>
		<content:encoded><![CDATA[<p>I did follow your instructions installing PDO_mysql ... for some reason apache is unable to load the extension. The extension is installed in the right directory and the path where apache is looking for the extension is right. Here is the erro I get in in the apache error log:</p>
<p>[Mon Sep 15 01:20:19 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]<br />
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so' - (null) in Unknown on line 0<br />
[Mon Sep 15 01:20:19 2008] [notice] Digest: generating secret for digest authentication ...<br />
[Mon Sep 15 01:20:19 2008] [notice] Digest: done<br />
[Mon Sep 15 01:20:19 2008] [notice] Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.7l DAV/2 PHP/5.2.6 configured -- resuming normal operations</p>
<p>Any idea/advice would be greatly appreciate it.</p>
<p>Thank you for your time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gijs van Reijendam</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-17871</link>
		<dc:creator>Gijs van Reijendam</dc:creator>
		<pubDate>Tue, 26 Aug 2008 04:17:08 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-17871</guid>
		<description>Thanks for the article. Good Information is rare in the MAC PHP development area. Forcing apache to run in 32 bit also allows you to use extensions packaged with other distributions like MAMP free and get things like mcrypt to work to allow you to run packages like Magento.</description>
		<content:encoded><![CDATA[<p>Thanks for the article. Good Information is rare in the MAC PHP development area. Forcing apache to run in 32 bit also allows you to use extensions packaged with other distributions like MAMP free and get things like mcrypt to work to allow you to run packages like Magento.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Gidden</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-17721</link>
		<dc:creator>Tom Gidden</dc:creator>
		<pubDate>Thu, 21 Aug 2008 09:27:05 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-17721</guid>
		<description>Heh... and keep track of all the versions?  I think not! :)

Anyway, I&#039;m convinced the 32-bit mode approach in the comments above is a far better way than I suggested in the main body of the post.</description>
		<content:encoded><![CDATA[<p>Heh... and keep track of all the versions?  I think not! :)</p>
<p>Anyway, I'm convinced the 32-bit mode approach in the comments above is a far better way than I suggested in the main body of the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viames</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-17716</link>
		<dc:creator>Viames</dc:creator>
		<pubDate>Thu, 21 Aug 2008 05:33:32 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-17716</guid>
		<description>You could save us some time giving the compiled packets for x86_64 ;-)</description>
		<content:encoded><![CDATA[<p>You could save us some time giving the compiled packets for x86_64 ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eschnou</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-17494</link>
		<dc:creator>eschnou</dc:creator>
		<pubDate>Fri, 08 Aug 2008 09:07:41 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-17494</guid>
		<description>Thanks Tom for this great article ! Facing the same problem, I did the following, based on your suggestion:

- Install mysql (32 bit) from the package on mysql web site
- Compile &amp; install the pdo_mysql extension
- Force apache to run in 32 bit following your advice

It works great; now having PDO_MYSQL both in Apache and command line PHP.</description>
		<content:encoded><![CDATA[<p>Thanks Tom for this great article ! Facing the same problem, I did the following, based on your suggestion:</p>
<p>- Install mysql (32 bit) from the package on mysql web site<br />
- Compile &amp; install the pdo_mysql extension<br />
- Force apache to run in 32 bit following your advice</p>
<p>It works great; now having PDO_MYSQL both in Apache and command line PHP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Gidden</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-16477</link>
		<dc:creator>Tom Gidden</dc:creator>
		<pubDate>Wed, 02 Jul 2008 12:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-16477</guid>
		<description>Another possible option would be to ignore this entire article, avoid the whole 64-bit mess and force Apache into 32-bit mode.

Since the original Intel Macs used 32-bit Core processors, rather than the 32/64-bit Core 2, the version of Apache must be capable of running 32-bit, so there shouldn&#039;t be anything in Mac OS X that needs 64-bit Apache... right?

I can think of two ways of forcing this: either modifying httpd by using &lt;code&gt;lipo&lt;/code&gt; to remove all but the i386 executable, or by overriding &lt;code&gt;/System/Library/LaunchDaemons/org.apache.httpd.plist&lt;/code&gt;

Rather than modifying the file in &lt;code&gt;/System/Library&lt;/code&gt; which is rarely a good idea, just override it by copying &lt;code&gt;/System/Library/LaunchDaemons/org.apache.httpd.plist&lt;/code&gt; to &lt;code&gt;/Library/LaunchDaemons/org.apache.httpd.plist&lt;/code&gt; and change:
&lt;pre&gt;
                &lt;string&gt;/usr/sbin/httpd&lt;/string&gt;
                &lt;string&gt;-D&lt;/string&gt;
                &lt;string&gt;FOREGROUND&lt;/string&gt;
&lt;/pre&gt;
to
&lt;pre&gt;
                &lt;string&gt;arch&lt;/string&gt;
                &lt;string&gt;-i386&lt;/string&gt;
                &lt;string&gt;/usr/sbin/httpd&lt;/string&gt;
                &lt;string&gt;-D&lt;/string&gt;
                &lt;string&gt;FOREGROUND&lt;/string&gt;
&lt;/pre&gt;

Activate it by rebooting or:
&lt;pre&gt;
sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist
sudo launchctl load /Library/LaunchDaemons/org.apache.httpd.plist
&lt;/pre&gt;

Anyway, I don&#039;t know if this approach will work, but you should be able to operate everything in 32-bit mode, which should be a lot simpler.  Use the standard 32-bit PDO, MySQL and so forth.  If you actually need a 64-bit Apache, then you&#039;re on your own... the approach in the article above might be the way to go.</description>
		<content:encoded><![CDATA[<p>Another possible option would be to ignore this entire article, avoid the whole 64-bit mess and force Apache into 32-bit mode.</p>
<p>Since the original Intel Macs used 32-bit Core processors, rather than the 32/64-bit Core 2, the version of Apache must be capable of running 32-bit, so there shouldn't be anything in Mac OS X that needs 64-bit Apache... right?</p>
<p>I can think of two ways of forcing this: either modifying httpd by using <code>lipo</code> to remove all but the i386 executable, or by overriding <code>/System/Library/LaunchDaemons/org.apache.httpd.plist</code></p>
<p>Rather than modifying the file in <code>/System/Library</code> which is rarely a good idea, just override it by copying <code>/System/Library/LaunchDaemons/org.apache.httpd.plist</code> to <code>/Library/LaunchDaemons/org.apache.httpd.plist</code> and change:</p>
<pre>
                &lt;string&gt;/usr/sbin/httpd&lt;/string&gt;
                &lt;string&gt;-D&lt;/string&gt;
                &lt;string&gt;FOREGROUND&lt;/string&gt;
</pre>
<p>to</p>
<pre>
                &lt;string&gt;arch&lt;/string&gt;
                &lt;string&gt;-i386&lt;/string&gt;
                &lt;string&gt;/usr/sbin/httpd&lt;/string&gt;
                &lt;string&gt;-D&lt;/string&gt;
                &lt;string&gt;FOREGROUND&lt;/string&gt;
</pre>
<p>Activate it by rebooting or:</p>
<pre>
sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist
sudo launchctl load /Library/LaunchDaemons/org.apache.httpd.plist
</pre>
<p>Anyway, I don't know if this approach will work, but you should be able to operate everything in 32-bit mode, which should be a lot simpler.  Use the standard 32-bit PDO, MySQL and so forth.  If you actually need a 64-bit Apache, then you're on your own... the approach in the article above might be the way to go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Gidden</title>
		<link>http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/comment-page-1/#comment-16471</link>
		<dc:creator>Tom Gidden</dc:creator>
		<pubDate>Wed, 02 Jul 2008 09:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=53#comment-16471</guid>
		<description>I just noticed that this PHP installation prevents command-line PHP from working correctly, with the error:

&lt;pre&gt;
dyld: NSLinkModule() error
dyld: Symbol not found: _core_globals
  Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so
  Expected in: dynamic lookup
&lt;/pre&gt;

I suspect that this is because the php command is compiled 32-bit only.  I&#039;m not sure of the &quot;proper&quot; way to fix this, but I got around it by using a different php.ini file for Apache.

First, delete the /etc/php.ini file (or at least, remove the offending extension lines)

Then, create /etc/apache2/php.ini  with the extension lines.

Then, add:
&lt;pre&gt;
        PHPIniDir /etc/apache2
&lt;/pre&gt;
to the middle of /etc/apache2/other/php5.conf
</description>
		<content:encoded><![CDATA[<p>I just noticed that this PHP installation prevents command-line PHP from working correctly, with the error:</p>
<pre>
dyld: NSLinkModule() error
dyld: Symbol not found: _core_globals
  Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so
  Expected in: dynamic lookup
</pre>
<p>I suspect that this is because the php command is compiled 32-bit only.  I'm not sure of the "proper" way to fix this, but I got around it by using a different php.ini file for Apache.</p>
<p>First, delete the /etc/php.ini file (or at least, remove the offending extension lines)</p>
<p>Then, create /etc/apache2/php.ini  with the extension lines.</p>
<p>Then, add:</p>
<pre>
        PHPIniDir /etc/apache2
</pre>
<p>to the middle of /etc/apache2/other/php5.conf</p>
]]></content:encoded>
	</item>
</channel>
</rss>
