<?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: Memcached with PHP on Mac OS X</title>
	<atom:link href="http://af-design.com/blog/2008/10/18/memcached-with-php-on-mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://af-design.com/blog/2008/10/18/memcached-with-php-on-mac-os-x/</link>
	<description>Technology, rants, raves and reviews by Erik Giberti</description>
	<lastBuildDate>Fri, 05 Mar 2010 04:04:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<item>
		<title>By: sofien</title>
		<link>http://af-design.com/blog/2008/10/18/memcached-with-php-on-mac-os-x/#comment-935</link>
		<dc:creator>sofien</dc:creator>
		<pubDate>Wed, 10 Jun 2009 16:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://af-design.com/blog/?p=317#comment-935</guid>
		<description>i have an mac Ibook G4 in tiger...
i installed Xampp for developping in CakePhp...
when I go to url &quot;localhost/project&quot; ; i look that error !!! :
&quot;Fatal error: Class &#039;Memcache&#039; not found in /Applications/XAMPP/xamppfiles/htdocs/projects/cakephp/app/vendors/cake_memcache.php on line 28&quot;
any one have an idea? thx a lot</description>
		<content:encoded><![CDATA[<p>i have an mac Ibook G4 in tiger&#8230;<br />
i installed Xampp for developping in CakePhp&#8230;<br />
when I go to url &#8220;localhost/project&#8221; ; i look that error !!! :<br />
&#8220;Fatal error: Class &#8216;Memcache&#8217; not found in /Applications/XAMPP/xamppfiles/htdocs/projects/cakephp/app/vendors/cake_memcache.php on line 28&#8243;<br />
any one have an idea? thx a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://af-design.com/blog/2008/10/18/memcached-with-php-on-mac-os-x/#comment-745</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Mon, 12 Jan 2009 16:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://af-design.com/blog/?p=317#comment-745</guid>
		<description>I assume you&#039;re doing something like $cache = new Memcache() in the php file you referenced. You can also run PHP from the command line and see if it works there.

cd /Library/WebServer/Documents/
php test.php

If that works, you just need to restart Apache.</description>
		<content:encoded><![CDATA[<p>I assume you&#8217;re doing something like $cache = new Memcache() in the php file you referenced. You can also run PHP from the command line and see if it works there.</p>
<p>cd /Library/WebServer/Documents/<br />
php test.php</p>
<p>If that works, you just need to restart Apache.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://af-design.com/blog/2008/10/18/memcached-with-php-on-mac-os-x/#comment-743</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Mon, 12 Jan 2009 00:29:22 +0000</pubDate>
		<guid isPermaLink="false">http://af-design.com/blog/?p=317#comment-743</guid>
		<description>Erik and Matt,

Thanks for the tips guys. I have a Late &#039;08 Macbook and I can&#039;t get this to work any which way round. In my test file I keep getting: Fatal error: Class &#039;Memcache&#039; not found in /Library/WebServer/Documents/test.php on line 3

Built memcache extension from scratch for 32-bit and 64-bit. Updated PHP ini with all the necessaries. It doesn&#039;t seem to be registering the extension tho :( help?</description>
		<content:encoded><![CDATA[<p>Erik and Matt,</p>
<p>Thanks for the tips guys. I have a Late &#8216;08 Macbook and I can&#8217;t get this to work any which way round. In my test file I keep getting: Fatal error: Class &#8216;Memcache&#8217; not found in /Library/WebServer/Documents/test.php on line 3</p>
<p>Built memcache extension from scratch for 32-bit and 64-bit. Updated PHP ini with all the necessaries. It doesn&#8217;t seem to be registering the extension tho <img src='http://af-design.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://af-design.com/blog/2008/10/18/memcached-with-php-on-mac-os-x/#comment-721</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Tue, 23 Dec 2008 03:03:06 +0000</pubDate>
		<guid isPermaLink="false">http://af-design.com/blog/?p=317#comment-721</guid>
		<description>Great tip! I&#039;m first-gen MBP still, so I&#039;m only 32bit.</description>
		<content:encoded><![CDATA[<p>Great tip! I&#8217;m first-gen MBP still, so I&#8217;m only 32bit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://af-design.com/blog/2008/10/18/memcached-with-php-on-mac-os-x/#comment-720</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Tue, 23 Dec 2008 01:17:04 +0000</pubDate>
		<guid isPermaLink="false">http://af-design.com/blog/?p=317#comment-720</guid>
		<description>as an addendum, make sure to change the magic double quotes to normal double quotes, as I seem to have pasted them incorrectly</description>
		<content:encoded><![CDATA[<p>as an addendum, make sure to change the magic double quotes to normal double quotes, as I seem to have pasted them incorrectly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://af-design.com/blog/2008/10/18/memcached-with-php-on-mac-os-x/#comment-719</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Tue, 23 Dec 2008 00:41:19 +0000</pubDate>
		<guid isPermaLink="false">http://af-design.com/blog/?p=317#comment-719</guid>
		<description>Hi Giles,

I originally ran into the same problem as you, but have fortunately found a solution.  Are you working on a 64bit machine?  If so, try:

&quot;MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS=&quot;-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os  -pipe -no-cpp-precomp&quot; CCFLAGS=&quot;-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os  -pipe&quot; CXXFLAGS=&quot;-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os  -pipe&quot; LDFLAGS=&quot;-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind_at_load&quot; ./configure&quot;

instead of just &quot;./configure&quot;.  Chances are you are going to have to &quot;sudo su&quot; to root before running that command.  Then, follow the rest of Erik&#039;s guide, and it should work for you!

I found the above code at: &quot;http://www.kenior.com/macintosh/adding-gettext-extension-for-mac-os-x-leopard&quot;, fyi.

Matt</description>
		<content:encoded><![CDATA[<p>Hi Giles,</p>
<p>I originally ran into the same problem as you, but have fortunately found a solution.  Are you working on a 64bit machine?  If so, try:</p>
<p>&#8220;MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS=&#8221;-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os  -pipe -no-cpp-precomp&#8221; CCFLAGS=&#8221;-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os  -pipe&#8221; CXXFLAGS=&#8221;-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os  -pipe&#8221; LDFLAGS=&#8221;-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind_at_load&#8221; ./configure&#8221;</p>
<p>instead of just &#8220;./configure&#8221;.  Chances are you are going to have to &#8220;sudo su&#8221; to root before running that command.  Then, follow the rest of Erik&#8217;s guide, and it should work for you!</p>
<p>I found the above code at: &#8220;http://www.kenior.com/macintosh/adding-gettext-extension-for-mac-os-x-leopard&#8221;, fyi.</p>
<p>Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giles</title>
		<link>http://af-design.com/blog/2008/10/18/memcached-with-php-on-mac-os-x/#comment-690</link>
		<dc:creator>Giles</dc:creator>
		<pubDate>Mon, 24 Nov 2008 19:03:43 +0000</pubDate>
		<guid isPermaLink="false">http://af-design.com/blog/?p=317#comment-690</guid>
		<description>Got the same error copying yours in. Gah!  This is absolutely maddening.  

Amazingly if I remove a working extension (gd.so) from that same directory, I get exactly the same error, &#039;(null) in unknown on line 0&#039; - indicating that PHP apparently gives this error when &quot;file not found&quot; would be more appropriate.  Now I have no idea if it&#039;s having a problem finding / reading the file or whether there&#039;s an error loading it up.</description>
		<content:encoded><![CDATA[<p>Got the same error copying yours in. Gah!  This is absolutely maddening.  </p>
<p>Amazingly if I remove a working extension (gd.so) from that same directory, I get exactly the same error, &#8216;(null) in unknown on line 0&#8242; &#8211; indicating that PHP apparently gives this error when &#8220;file not found&#8221; would be more appropriate.  Now I have no idea if it&#8217;s having a problem finding / reading the file or whether there&#8217;s an error loading it up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://af-design.com/blog/2008/10/18/memcached-with-php-on-mac-os-x/#comment-684</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Fri, 21 Nov 2008 19:50:06 +0000</pubDate>
		<guid isPermaLink="false">http://af-design.com/blog/?p=317#comment-684</guid>
		<description>Giles, 

Glad the post helped, sorry it didn&#039;t outright work for you. I&#039;ve posted mine should you, or anyone else want to download it.
http://af-design.com/downloads/memcache.so.tar.gz

Erik</description>
		<content:encoded><![CDATA[<p>Giles, </p>
<p>Glad the post helped, sorry it didn&#8217;t outright work for you. I&#8217;ve posted mine should you, or anyone else want to download it.<br />
<a href="http://af-design.com/downloads/memcache.so.tar.gz" rel="nofollow">http://af-design.com/downloads/memcache.so.tar.gz</a></p>
<p>Erik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giles</title>
		<link>http://af-design.com/blog/2008/10/18/memcached-with-php-on-mac-os-x/#comment-683</link>
		<dc:creator>Giles</dc:creator>
		<pubDate>Fri, 21 Nov 2008 19:43:20 +0000</pubDate>
		<guid isPermaLink="false">http://af-design.com/blog/?p=317#comment-683</guid>
		<description>Hi Erik,

Thanks very much for the post, I was trying to do exactly the same thing to avoid switching to MAMP, but wasn&#039;t aware of the phpize command, so I ran into a wall.

I now have the problem that I followed your process exactly, got the .so generated in the same place, but PHP doesn&#039;t like it:

PHP Startup: Unable to load dynamic library &#039;/usr/lib/php/extensions/no-debug-non-zts-20060613/memcache.so&#039; - (null) in Unknown on line 0

Is there any chance you could email me your .so file to see if I can use it?

Thanks,
Giles</description>
		<content:encoded><![CDATA[<p>Hi Erik,</p>
<p>Thanks very much for the post, I was trying to do exactly the same thing to avoid switching to MAMP, but wasn&#8217;t aware of the phpize command, so I ran into a wall.</p>
<p>I now have the problem that I followed your process exactly, got the .so generated in the same place, but PHP doesn&#8217;t like it:</p>
<p>PHP Startup: Unable to load dynamic library &#8216;/usr/lib/php/extensions/no-debug-non-zts-20060613/memcache.so&#8217; &#8211; (null) in Unknown on line 0</p>
<p>Is there any chance you could email me your .so file to see if I can use it?</p>
<p>Thanks,<br />
Giles</p>
]]></content:encoded>
	</item>
</channel>
</rss>
