<?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: Recompiling PHP 5.3 On Snow Leopard With Freetype Support</title>
	<atom:link href="http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 10 May 2010 06:32:39 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mike Kormendy</title>
		<link>http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/#comment-2122</link>
		<dc:creator>Mike Kormendy</dc:creator>
		<pubDate>Mon, 10 May 2010 06:32:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=329#comment-2122</guid>
		<description>Okay all, I have an update for those with the following system:

OS X Server 10.6.3
PHP 5.3.1
PCRE8.02
LIBJPEG8a

I did not have any hiccups with my install from the above steps, however make sure:
- that you are compiling for the right architecture
- that you do not copy and paste from this page into your terminal shell

The double quotes have been converted in the comments section on this site and cause problems with copy and paste.

@Dae: did you run as sudo su? that might fix the problem
@Ron: this has worked for my SL Server 10.6.3
@RS: alternatively you can download from Apple&#039;s repository: http://www.opensource.apple.com/</description>
		<content:encoded><![CDATA[<p>Okay all, I have an update for those with the following system:</p>
<p>OS X Server 10.6.3<br />
PHP 5.3.1<br />
PCRE8.02<br />
LIBJPEG8a</p>
<p>I did not have any hiccups with my install from the above steps, however make sure:<br />
- that you are compiling for the right architecture<br />
- that you do not copy and paste from this page into your terminal shell</p>
<p>The double quotes have been converted in the comments section on this site and cause problems with copy and paste.</p>
<p>@Dae: did you run as sudo su? that might fix the problem<br />
@Ron: this has worked for my SL Server 10.6.3<br />
@RS: alternatively you can download from Apple&#8217;s repository: <a href="http://www.opensource.apple.com/" rel="nofollow">http://www.opensource.apple.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Everybody Staze&#8230; &#187; PHP 5.3.1 compiled from source on 10.6.2 Server</title>
		<link>http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/#comment-2049</link>
		<dc:creator>Everybody Staze&#8230; &#187; PHP 5.3.1 compiled from source on 10.6.2 Server</dc:creator>
		<pubDate>Thu, 04 Feb 2010 05:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=329#comment-2049</guid>
		<description>[...] http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/" rel="nofollow">http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RS</title>
		<link>http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/#comment-2048</link>
		<dc:creator>RS</dc:creator>
		<pubDate>Thu, 04 Feb 2010 03:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=329#comment-2048</guid>
		<description>So, this does work with PHP 5.3.1 directly downloaded from php.net. I did have to download pcre8.01, as well as jpeg7. But, it&#039;s working with 10.6.2 server.</description>
		<content:encoded><![CDATA[<p>So, this does work with PHP 5.3.1 directly downloaded from php.net. I did have to download pcre8.01, as well as jpeg7. But, it&#8217;s working with 10.6.2 server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RS</title>
		<link>http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/#comment-2045</link>
		<dc:creator>RS</dc:creator>
		<pubDate>Tue, 02 Feb 2010 06:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=329#comment-2045</guid>
		<description>Anyone try this with PHP 5.3.1? I&#039;m going to give it a shot tomorrow, but thought I&#039;d ask before potentially wasting an afternoon. =P</description>
		<content:encoded><![CDATA[<p>Anyone try this with PHP 5.3.1? I&#8217;m going to give it a shot tomorrow, but thought I&#8217;d ask before potentially wasting an afternoon. =P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron</title>
		<link>http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/#comment-2042</link>
		<dc:creator>Ron</dc:creator>
		<pubDate>Sun, 31 Jan 2010 22:13:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=329#comment-2042</guid>
		<description>Does anyone know if this works for OS X Snow Leopard Server as well?</description>
		<content:encoded><![CDATA[<p>Does anyone know if this works for OS X Snow Leopard Server as well?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dae</title>
		<link>http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/#comment-2034</link>
		<dc:creator>Dae</dc:creator>
		<pubDate>Sat, 23 Jan 2010 14:31:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=329#comment-2034</guid>
		<description>The link to PCRE 7.7 didn&#039;t work, so I took the link to PCRE 7.9 from the comment above, but make failed with the following:
=======
Dae-MacPro:pcre-7.9 Dae$ make
make  all-am
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp -MT pcre_compile.lo -MD -MP -MF .deps/pcre_compile.Tpo -c -o pcre_compile.lo pcre_compile.c
 gcc -DHAVE_CONFIG_H -I. -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp -MT pcre_compile.lo -MD -MP -MF .deps/pcre_compile.Tpo -c pcre_compile.c -o pcre_compile.o
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[1]: *** [pcre_compile.lo] Error 1
make: *** [all] Error 2
=======

I didn&#039;t fix the problem: instead I took PCRE 7.7 from here:
http://downloads.sourceforge.net/project/pcre/pcre/7.7/pcre-7.7.tar.gz

Make worked like a charm with the older version.</description>
		<content:encoded><![CDATA[<p>The link to PCRE 7.7 didn&#8217;t work, so I took the link to PCRE 7.9 from the comment above, but make failed with the following:<br />
=======<br />
Dae-MacPro:pcre-7.9 Dae$ make<br />
make  all-am<br />
/bin/sh ./libtool &#8211;tag=CC   &#8211;mode=compile gcc -DHAVE_CONFIG_H -I.     -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp -MT pcre_compile.lo -MD -MP -MF .deps/pcre_compile.Tpo -c -o pcre_compile.lo pcre_compile.c<br />
 gcc -DHAVE_CONFIG_H -I. -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp -MT pcre_compile.lo -MD -MP -MF .deps/pcre_compile.Tpo -c pcre_compile.c -o pcre_compile.o<br />
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags<br />
make[1]: *** [pcre_compile.lo] Error 1<br />
make: *** [all] Error 2<br />
=======</p>
<p>I didn&#8217;t fix the problem: instead I took PCRE 7.7 from here:<br />
<a href="http://downloads.sourceforge.net/project/pcre/pcre/7.7/pcre-7.7.tar.gz" rel="nofollow">http://downloads.sourceforge.net/project/pcre/pcre/7.7/pcre-7.7.tar.gz</a></p>
<p>Make worked like a charm with the older version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Kormendy</title>
		<link>http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/#comment-2033</link>
		<dc:creator>Mike Kormendy</dc:creator>
		<pubDate>Sat, 23 Jan 2010 12:40:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=329#comment-2033</guid>
		<description>Also wanted to mention something about plugging in mcrypt (useful for latest version phpmyadmin) for php as discussed here:


http://michaelgracie.com/2009/09/23/plugging-mcrypt-into-php-on-mac-os-x-snow-leopard-10.6.1/


Recompiling PHP will NOT affect a previous mcrypt plug-in installation. :-)


I am running a 64bit Xserve with Snow Leopard 10.6.2, and the above process with pcre7.9 and libjpeg7 worked flawlessly for me and maintains mcrypt.

Thanks to all who contributed.</description>
		<content:encoded><![CDATA[<p>Also wanted to mention something about plugging in mcrypt (useful for latest version phpmyadmin) for php as discussed here:</p>
<p><a href="http://michaelgracie.com/2009/09/23/plugging-mcrypt-into-php-on-mac-os-x-snow-leopard-10.6.1/" rel="nofollow">http://michaelgracie.com/2009/09/23/plugging-mcrypt-into-php-on-mac-os-x-snow-leopard-10.6.1/</a></p>
<p>Recompiling PHP will NOT affect a previous mcrypt plug-in installation. <img src='http://www.gen-x-design.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I am running a 64bit Xserve with Snow Leopard 10.6.2, and the above process with pcre7.9 and libjpeg7 worked flawlessly for me and maintains mcrypt.</p>
<p>Thanks to all who contributed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Kormendy</title>
		<link>http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/#comment-2032</link>
		<dc:creator>Mike Kormendy</dc:creator>
		<pubDate>Sat, 23 Jan 2010 12:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=329#comment-2032</guid>
		<description>For myself as well, I had to install libjpeg7 before compiling PHP.
In some cases, please be aware of your compiling for 64bit or 32bit as discussed in this post:
http://diymacserver.com/installing-php/adding-the-gd-module-to-php-on-snow-leopard/

1. download source files (with corrected pcre ver 7.9 &amp; php)
2. compile your PCRE
3. download source files (libjpeg7)
4. compile libjpeg7
5. compile php

Here are Simon Birve&#039;s steps, CORRECTED, in one go (for 64bit):

cd /src
mkdir libjpeg
cd libjpeg
curl http://www.ijg.org/files/jpegsrc.v7.tar.gz -O 
tar xzf jpegsrc.v7.tar.gz
cd jpeg-7
cp /usr/share/libtool/config/config.sub .
cp /usr/share/libtool/config/config.guess .
export MACOSX_DEPLOYMENT_TARGET=10.6 \
CFLAGS=&quot;-arch x86_64&quot; \
CXXFLAGS=&quot;-arch x86_64&quot; \
LDFLAGS=&quot;-arch x86_64&quot;
./configure –enable-shared
make
sudo make install</description>
		<content:encoded><![CDATA[<p>For myself as well, I had to install libjpeg7 before compiling PHP.<br />
In some cases, please be aware of your compiling for 64bit or 32bit as discussed in this post:<br />
<a href="http://diymacserver.com/installing-php/adding-the-gd-module-to-php-on-snow-leopard/" rel="nofollow">http://diymacserver.com/installing-php/adding-the-gd-module-to-php-on-snow-leopard/</a></p>
<p>1. download source files (with corrected pcre ver 7.9 &amp; php)<br />
2. compile your PCRE<br />
3. download source files (libjpeg7)<br />
4. compile libjpeg7<br />
5. compile php</p>
<p>Here are Simon Birve&#8217;s steps, CORRECTED, in one go (for 64bit):</p>
<p>cd /src<br />
mkdir libjpeg<br />
cd libjpeg<br />
curl <a href="http://www.ijg.org/files/jpegsrc.v7.tar.gz" rel="nofollow">http://www.ijg.org/files/jpegsrc.v7.tar.gz</a> -O<br />
tar xzf jpegsrc.v7.tar.gz<br />
cd jpeg-7<br />
cp /usr/share/libtool/config/config.sub .<br />
cp /usr/share/libtool/config/config.guess .<br />
export MACOSX_DEPLOYMENT_TARGET=10.6 \<br />
CFLAGS=&#8221;-arch x86_64&#8243; \<br />
CXXFLAGS=&#8221;-arch x86_64&#8243; \<br />
LDFLAGS=&#8221;-arch x86_64&#8243;<br />
./configure –enable-shared<br />
make<br />
sudo make install</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randy Hobart</title>
		<link>http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/#comment-2018</link>
		<dc:creator>Randy Hobart</dc:creator>
		<pubDate>Sun, 17 Jan 2010 14:45:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=329#comment-2018</guid>
		<description>Thank you for your time in writing these instructions.
I was successful in the recompile and works great.
Recompiled on the MacBook I just purchase 1 week ago.
---
Had to compile the jpegsrc.v7.tar.gz as above.
-----
One big change is that the below file is no longer there.
curl ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.7.tar.gz -O
It is now ------
curl ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.9.tar.gz -O
-----
It took about 4 times to get it right.
I found out you can copy the configure settings straight from you black box above.
This saved alot of time.
------
Thanks again, my php is running great now.
And thanks for the comments given by others, could not have done it without all this help.</description>
		<content:encoded><![CDATA[<p>Thank you for your time in writing these instructions.<br />
I was successful in the recompile and works great.<br />
Recompiled on the MacBook I just purchase 1 week ago.<br />
&#8212;<br />
Had to compile the jpegsrc.v7.tar.gz as above.<br />
&#8212;&#8211;<br />
One big change is that the below file is no longer there.<br />
curl <a href="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.7.tar.gz" rel="nofollow">ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.7.tar.gz</a> -O<br />
It is now &#8212;&#8212;<br />
curl <a href="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.9.tar.gz" rel="nofollow">ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.9.tar.gz</a> -O<br />
&#8212;&#8211;<br />
It took about 4 times to get it right.<br />
I found out you can copy the configure settings straight from you black box above.<br />
This saved alot of time.<br />
&#8212;&#8212;<br />
Thanks again, my php is running great now.<br />
And thanks for the comments given by others, could not have done it without all this help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Galen Sprague</title>
		<link>http://www.gen-x-design.com/archives/recompiling-php-5-3-on-snow-leopard-with-freetype-support/#comment-2014</link>
		<dc:creator>Galen Sprague</dc:creator>
		<pubDate>Wed, 13 Jan 2010 21:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=329#comment-2014</guid>
		<description>This is great thank you very much! I also had to install libjpeg with the same flags as the php install to get it to compile. Working great now!!! Thanks again, this is awesome!!!!</description>
		<content:encoded><![CDATA[<p>This is great thank you very much! I also had to install libjpeg with the same flags as the php install to get it to compile. Working great now!!! Thanks again, this is awesome!!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
