<?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: Making Snow Leopard&#8217;s PHP 5.3.0 usable in the real world</title>
	<atom:link href="http://adam.yanalunas.com/blog/archives/62/feed" rel="self" type="application/rss+xml" />
	<link>http://adam.yanalunas.com/blog/archives/62</link>
	<description>The complete &#38; uncut edition</description>
	<lastBuildDate>Mon, 22 Aug 2011 20:25:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: adam</title>
		<link>http://adam.yanalunas.com/blog/archives/62/comment-page-1#comment-7080</link>
		<dc:creator>adam</dc:creator>
		<pubDate>Mon, 22 Aug 2011 20:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://adam.yanalunas.com/blog/?p=62#comment-7080</guid>
		<description>Thanks for the tip, Sam. I&#039;ll add a note to the article for people to check out your comment.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, Sam. I&#8217;ll add a note to the article for people to check out your comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Moffatt</title>
		<link>http://adam.yanalunas.com/blog/archives/62/comment-page-1#comment-6991</link>
		<dc:creator>Sam Moffatt</dc:creator>
		<pubDate>Wed, 17 Aug 2011 17:45:54 +0000</pubDate>
		<guid isPermaLink="false">http://adam.yanalunas.com/blog/?p=62#comment-6991</guid>
		<description>The reason that mhash isn&#039;t in the PHP 5.3 tarballs is because the functionality offered from mhash is now provided via the hash extension. This means that you only need to install libmcrypt and then the PHP mcrypt extension.

See: http://php.net/manual/en/mhash.installation.php</description>
		<content:encoded><![CDATA[<p>The reason that mhash isn&#8217;t in the PHP 5.3 tarballs is because the functionality offered from mhash is now provided via the hash extension. This means that you only need to install libmcrypt and then the PHP mcrypt extension.</p>
<p>See: <a href="http://php.net/manual/en/mhash.installation.php" rel="nofollow">http://php.net/manual/en/mhash.installation.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://adam.yanalunas.com/blog/archives/62/comment-page-1#comment-2786</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Wed, 29 Sep 2010 06:52:25 +0000</pubDate>
		<guid isPermaLink="false">http://adam.yanalunas.com/blog/?p=62#comment-2786</guid>
		<description>I found a good tutorial; this worked for me:

mkdir -p /SourceCache

cd /SourceCache

curl -O http://surfnet.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz

tar xzf libmcrypt-2.5.8.tar.gz

cd libmcrypt-2.5.8

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 --disable-dependency-tracking

make

make install

---(Now build dynamically loaded extension)---

cd /SourceCache

curl -O http://www.opensource.apple.com/source/apache_mod_php/apache_mod_php-44.2/php-5.2.8.tar.bz2

tar xjf php-5.2.8.tar.bz2

cd /SourceCache/php-5.2.8/ext/mcrypt

phpize

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

make

make install

---

When done, edit/create /etc/php.ini and add:
extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so

next issue:
sudo apachectl graceful</description>
		<content:encoded><![CDATA[<p>I found a good tutorial; this worked for me:</p>
<p>mkdir -p /SourceCache</p>
<p>cd /SourceCache</p>
<p>curl -O <a href="http://surfnet.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz" rel="nofollow">http://surfnet.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz</a></p>
<p>tar xzf libmcrypt-2.5.8.tar.gz</p>
<p>cd libmcrypt-2.5.8</p>
<p>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 &#8211;disable-dependency-tracking</p>
<p>make</p>
<p>make install</p>
<p>&#8212;(Now build dynamically loaded extension)&#8212;</p>
<p>cd /SourceCache</p>
<p>curl -O <a href="http://www.opensource.apple.com/source/apache_mod_php/apache_mod_php-44.2/php-5.2.8.tar.bz2" rel="nofollow">http://www.opensource.apple.com/source/apache_mod_php/apache_mod_php-44.2/php-5.2.8.tar.bz2</a></p>
<p>tar xjf php-5.2.8.tar.bz2</p>
<p>cd /SourceCache/php-5.2.8/ext/mcrypt</p>
<p>phpize</p>
<p>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</p>
<p>make</p>
<p>make install</p>
<p>&#8212;</p>
<p>When done, edit/create /etc/php.ini and add:<br />
extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so</p>
<p>next issue:<br />
sudo apachectl graceful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://adam.yanalunas.com/blog/archives/62/comment-page-1#comment-2784</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Wed, 29 Sep 2010 05:50:51 +0000</pubDate>
		<guid isPermaLink="false">http://adam.yanalunas.com/blog/?p=62#comment-2784</guid>
		<description>I am running into some problems.  I really hope someone can help me out.  Here are my details:

OS:  Snow Leopard Server 10.6.4
PHP (Came /w OSX):  5.3.2

I downloaded libmcrypt (libmcrypt-2.5.8.tar.gz) and installed per the instructions above.  I downloaded the source for PHP 5.3.2 (php-5.3.2.tar.gz); however, it was missing the &quot;mhash&quot; directory.  So I downloaded mhash (mhash-0.9.9.9.tar.gz) and put it in the php source folder.  This was missing &quot;config.m4&quot;, so, I copied it over from the &quot;php.5.2.13.tar.gz&quot;  and put it in.  That resolved the phpize problem.

Now, I am receiving the following error when trying to ./ configure mhash and do not know where to go from here:
configure: error: Please reinstall libmhash - I cannot find mhash.h

After reading the thread, I tried installing using &quot;php.5.2.13.tar.gz&quot;.  I still end up at the &quot;configure: error: Please reinstall libmhash - I cannot find mhash.h&quot; error when trying to ./configure mhash.

Again, I sincerely appreciate any help anyone can provide.

Thank you!</description>
		<content:encoded><![CDATA[<p>I am running into some problems.  I really hope someone can help me out.  Here are my details:</p>
<p>OS:  Snow Leopard Server 10.6.4<br />
PHP (Came /w OSX):  5.3.2</p>
<p>I downloaded libmcrypt (libmcrypt-2.5.8.tar.gz) and installed per the instructions above.  I downloaded the source for PHP 5.3.2 (php-5.3.2.tar.gz); however, it was missing the &#8220;mhash&#8221; directory.  So I downloaded mhash (mhash-0.9.9.9.tar.gz) and put it in the php source folder.  This was missing &#8220;config.m4&#8243;, so, I copied it over from the &#8220;php.5.2.13.tar.gz&#8221;  and put it in.  That resolved the phpize problem.</p>
<p>Now, I am receiving the following error when trying to ./ configure mhash and do not know where to go from here:<br />
configure: error: Please reinstall libmhash &#8211; I cannot find mhash.h</p>
<p>After reading the thread, I tried installing using &#8220;php.5.2.13.tar.gz&#8221;.  I still end up at the &#8220;configure: error: Please reinstall libmhash &#8211; I cannot find mhash.h&#8221; error when trying to ./configure mhash.</p>
<p>Again, I sincerely appreciate any help anyone can provide.</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adam</title>
		<link>http://adam.yanalunas.com/blog/archives/62/comment-page-1#comment-1876</link>
		<dc:creator>adam</dc:creator>
		<pubDate>Wed, 21 Apr 2010 21:47:19 +0000</pubDate>
		<guid isPermaLink="false">http://adam.yanalunas.com/blog/?p=62#comment-1876</guid>
		<description>Good catch. Thanks for the additional link.</description>
		<content:encoded><![CDATA[<p>Good catch. Thanks for the additional link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: k00k</title>
		<link>http://adam.yanalunas.com/blog/archives/62/comment-page-1#comment-1870</link>
		<dc:creator>k00k</dc:creator>
		<pubDate>Tue, 20 Apr 2010 12:53:54 +0000</pubDate>
		<guid isPermaLink="false">http://adam.yanalunas.com/blog/?p=62#comment-1870</guid>
		<description>If you&#039;re looking at this blog post, you should also take a look at this one which outlines how to tack on mcrypt without a php recompile. It worked for me.

http://tinyurl.com/yc3jbh2</description>
		<content:encoded><![CDATA[<p>If you&#8217;re looking at this blog post, you should also take a look at this one which outlines how to tack on mcrypt without a php recompile. It worked for me.</p>
<p><a href="http://tinyurl.com/yc3jbh2" rel="nofollow">http://tinyurl.com/yc3jbh2</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Snow Leopard Apache exit signal Segmentation fault (11) &#187; Tecnotertulia</title>
		<link>http://adam.yanalunas.com/blog/archives/62/comment-page-1#comment-1783</link>
		<dc:creator>Snow Leopard Apache exit signal Segmentation fault (11) &#187; Tecnotertulia</dc:creator>
		<pubDate>Wed, 17 Mar 2010 10:48:56 +0000</pubDate>
		<guid isPermaLink="false">http://adam.yanalunas.com/blog/?p=62#comment-1783</guid>
		<description>[...] Since the version of PHP that comes with Snow Leopard may be missing some of your favorite extensions, here&#8217;s a link to some instructions on how to include them (untested by me): Making Snow Leopard’s PHP 5.3.0 usable in the real world [...]</description>
		<content:encoded><![CDATA[<p>[...] Since the version of PHP that comes with Snow Leopard may be missing some of your favorite extensions, here&#8217;s a link to some instructions on how to include them (untested by me): Making Snow Leopard’s PHP 5.3.0 usable in the real world [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bloody-wicked</title>
		<link>http://adam.yanalunas.com/blog/archives/62/comment-page-1#comment-1780</link>
		<dc:creator>bloody-wicked</dc:creator>
		<pubDate>Mon, 15 Mar 2010 02:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://adam.yanalunas.com/blog/?p=62#comment-1780</guid>
		<description>hi adam,

thanks a lot for this walk through; saved me an awful lot of time!

a few notes you might want to add for clarity:

- the source which needs to be downloaded is php-5.2.13 (and not php-5.3.2 which is on top of the download page)
http://nl3.php.net/get/php-5.2.13.tar.bz2/from/a/mirror

- the mhash extension is not present in the php-5.3.2 source. even though the install from the 5.2.13 source results in a &quot;configure: error: Please reinstall libmhash - I cannot find mhash.h&quot; message, mcrypt installed and works without any issues... looks like mcrypt does not require the mhash extension to be installed  

- as ploughguy already pointed out; the mcrypt extension needs to be activated. simply add: extension=mcrypt.so
to your php.ini file, restart apache and mcrypt is activated / shows up in the phpinfo view (modes_dir &amp; algorithms_dir both use the default path so no need to uncomment those lines)

cheers
w</description>
		<content:encoded><![CDATA[<p>hi adam,</p>
<p>thanks a lot for this walk through; saved me an awful lot of time!</p>
<p>a few notes you might want to add for clarity:</p>
<p>- the source which needs to be downloaded is php-5.2.13 (and not php-5.3.2 which is on top of the download page)<br />
<a href="http://nl3.php.net/get/php-5.2.13.tar.bz2/from/a/mirror" rel="nofollow">http://nl3.php.net/get/php-5.2.13.tar.bz2/from/a/mirror</a></p>
<p>- the mhash extension is not present in the php-5.3.2 source. even though the install from the 5.2.13 source results in a &#8220;configure: error: Please reinstall libmhash &#8211; I cannot find mhash.h&#8221; message, mcrypt installed and works without any issues&#8230; looks like mcrypt does not require the mhash extension to be installed  </p>
<p>- as ploughguy already pointed out; the mcrypt extension needs to be activated. simply add: extension=mcrypt.so<br />
to your php.ini file, restart apache and mcrypt is activated / shows up in the phpinfo view (modes_dir &amp; algorithms_dir both use the default path so no need to uncomment those lines)</p>
<p>cheers<br />
w</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: macsucks</title>
		<link>http://adam.yanalunas.com/blog/archives/62/comment-page-1#comment-1674</link>
		<dc:creator>macsucks</dc:creator>
		<pubDate>Fri, 25 Dec 2009 20:22:46 +0000</pubDate>
		<guid isPermaLink="false">http://adam.yanalunas.com/blog/?p=62#comment-1674</guid>
		<description>I think i buy a windows computer, much easyier. no need to complie</description>
		<content:encoded><![CDATA[<p>I think i buy a windows computer, much easyier. no need to complie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jmarquez</title>
		<link>http://adam.yanalunas.com/blog/archives/62/comment-page-1#comment-1657</link>
		<dc:creator>jmarquez</dc:creator>
		<pubDate>Fri, 18 Dec 2009 19:42:02 +0000</pubDate>
		<guid isPermaLink="false">http://adam.yanalunas.com/blog/?p=62#comment-1657</guid>
		<description>PloughBoy,

How did you fix your last issue?
I was also missing mhash from the PHP Source, I did have hash though.  I downloaded mhash from here..
http://mhash.sourceforge.net/
I am having the same issue as you when running phpize for mhash.
I get this error
Cannot find config.m4. 
Make sure that you run &#039;/usr/bin/phpize&#039; in the top level source directory of the module

I am stuck.  How do I proceed?
Thank you</description>
		<content:encoded><![CDATA[<p>PloughBoy,</p>
<p>How did you fix your last issue?<br />
I was also missing mhash from the PHP Source, I did have hash though.  I downloaded mhash from here..<br />
<a href="http://mhash.sourceforge.net/" rel="nofollow">http://mhash.sourceforge.net/</a><br />
I am having the same issue as you when running phpize for mhash.<br />
I get this error<br />
Cannot find config.m4.<br />
Make sure that you run &#8216;/usr/bin/phpize&#8217; in the top level source directory of the module</p>
<p>I am stuck.  How do I proceed?<br />
Thank you</p>
]]></content:encoded>
	</item>
</channel>
</rss>

