<?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"
	>
<channel>
	<title>Comments on: Making Leopard PHP a better PHP by adding GD support</title>
	<atom:link href="http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/making-leopard-php-a-better-php-by-adding-gd-support/feed/" rel="self" type="application/rss+xml" />
	<link>http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/making-leopard-php-a-better-php-by-adding-gd-support/</link>
	<description>A blog named for the muse of Astronomy containing musings by an astronomer</description>
	<pubDate>Tue, 14 Oct 2008 07:49:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Urania &#187; Blog Archive &#187; osxutils now fixed on MacPorts under Leopard</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/making-leopard-php-a-better-php-by-adding-gd-support/#comment-113</link>
		<dc:creator>Urania &#187; Blog Archive &#187; osxutils now fixed on MacPorts under Leopard</dc:creator>
		<pubDate>Thu, 10 Apr 2008 21:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/making-leopard-php-a-better-php-by-adding-gd-support/#comment-113</guid>
		<description>[...] did indeed install osxutils as promised.   I also noticed they upgraded from version 1.6 to 1.7, maybe that was all that was necessary.  All the MacPorts packages I used in Tiger now work in Leopard. Now if I could only get a proper recompile of PHP working under Leopard. [...]</description>
		<content:encoded><![CDATA[<p>[...] did indeed install osxutils as promised.   I also noticed they upgraded from version 1.6 to 1.7, maybe that was all that was necessary.  All the MacPorts packages I used in Tiger now work in Leopard. Now if I could only get a proper recompile of PHP working under Leopard. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Parsons</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/making-leopard-php-a-better-php-by-adding-gd-support/#comment-96</link>
		<dc:creator>Jeff Parsons</dc:creator>
		<pubDate>Mon, 24 Mar 2008 23:36:14 +0000</pubDate>
		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/making-leopard-php-a-better-php-by-adding-gd-support/#comment-96</guid>
		<description>Fyi, the above steps do still work with 2008-002 and PHP 5.2.5.

Also, I remembered those steps came from: &lt;a href="http://osx.topicdesk.com/content/view/135/41/" rel="nofollow"&gt;osx.topicdesk.com&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Fyi, the above steps do still work with 2008-002 and PHP 5.2.5.</p>
<p>Also, I remembered those steps came from: <a href="http://osx.topicdesk.com/content/view/135/41/" rel="nofollow">osx.topicdesk.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Parsons</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/making-leopard-php-a-better-php-by-adding-gd-support/#comment-89</link>
		<dc:creator>Jeff Parsons</dc:creator>
		<pubDate>Fri, 21 Mar 2008 05:38:18 +0000</pubDate>
		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/making-leopard-php-a-better-php-by-adding-gd-support/#comment-89</guid>
		<description>It looks to me like Apple's recent security update (2008-002), which updates PHP to 5.2.5, has bundled GD support into the PHP apache module.

That's good news, except for one small detail: the CLI version of PHP 5.2.5 that they've provided does NOT appear to include GD support.  So when I run any PHP tests using the command-line interface, I still have to use a home-built version of PHP.

Also, I suspect the reason many people have been unsuccessful building their own PHP for Leopard is because Leopard needs a 64-bit version of PHP -- in part because the OS shipped with a 64-bit version of apache.

I recommend building just the GD library, rather than all of PHP, and continue using the pre-installed PHP.  Before the 2008-002, I was able to do that as follows:

&lt;code&gt;
cd php-5.2.4/ext/gd
phpize
MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp
" CCFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" CXXFLAGS="-arch ppc -arch ppc64 -arch i386 -arch 
x86_64 -g -Os -pipe" LDFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind_at_load" ./configure --with-zlib-dir=/
usr --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/X11R6 --with-freetype-dir=/usr/X11R6 --with-xpm-dir=/usr/X11R6
make
sudo make install
sudo echo "extension=gd.so" &#62;&#62; /etc/php.ini
sudo apachectl restart
&lt;/code&gt;

I haven't tried this procedure again with the 5.2.5 PHP sources and 2008-002 security update, however.</description>
		<content:encoded><![CDATA[<p>It looks to me like Apple&#8217;s recent security update (2008-002), which updates PHP to 5.2.5, has bundled GD support into the PHP apache module.</p>
<p>That&#8217;s good news, except for one small detail: the CLI version of PHP 5.2.5 that they&#8217;ve provided does NOT appear to include GD support.  So when I run any PHP tests using the command-line interface, I still have to use a home-built version of PHP.</p>
<p>Also, I suspect the reason many people have been unsuccessful building their own PHP for Leopard is because Leopard needs a 64-bit version of PHP &#8212; in part because the OS shipped with a 64-bit version of apache.</p>
<p>I recommend building just the GD library, rather than all of PHP, and continue using the pre-installed PHP.  Before the 2008-002, I was able to do that as follows:</p>
<p><pre><code>
cd php-5.2.4/ext/gd
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 --with-zlib-dir=/
usr --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/X11R6 --with-freetype-dir=/usr/X11R6 --with-xpm-dir=/usr/X11R6
make
sudo make install
sudo echo &quot;extension=gd.so&quot; &amp;gt;&amp;gt; /etc/php.ini
sudo apachectl restart
</code></pre></p>
<p>I haven&#8217;t tried this procedure again with the 5.2.5 PHP sources and 2008-002 security update, however.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juan Cabanela</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/making-leopard-php-a-better-php-by-adding-gd-support/#comment-81</link>
		<dc:creator>Juan Cabanela</dc:creator>
		<pubDate>Thu, 13 Mar 2008 22:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/making-leopard-php-a-better-php-by-adding-gd-support/#comment-81</guid>
		<description>Unfortunately, I have been unable to get PHP 5.2.5 to compile properly in Leopard, despite trying some tricks like re-installing/upgrading Apache and the like.  PHP 5.2.5 just throws a slew of errors in its 'make test' phase when I attempt to get it working, so I have given up on upgrading to it for now.</description>
		<content:encoded><![CDATA[<p>Unfortunately, I have been unable to get PHP 5.2.5 to compile properly in Leopard, despite trying some tricks like re-installing/upgrading Apache and the like.  PHP 5.2.5 just throws a slew of errors in its &#8216;make test&#8217; phase when I attempt to get it working, so I have given up on upgrading to it for now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr K</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/making-leopard-php-a-better-php-by-adding-gd-support/#comment-80</link>
		<dc:creator>Mr K</dc:creator>
		<pubDate>Thu, 13 Mar 2008 05:12:46 +0000</pubDate>
		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/making-leopard-php-a-better-php-by-adding-gd-support/#comment-80</guid>
		<description>Hey there

great post ... a question for you. how did you update PHP on leopard from 5.2.4 to 5.2.5??  Is it easy enough to do? A step by step tutorial would be awesome if you had the time.  It seems the 5.2.4 that comes with Leopard is also missing things like mcrypt &#38; pdo_mysql</description>
		<content:encoded><![CDATA[<p>Hey there</p>
<p>great post &#8230; a question for you. how did you update PHP on leopard from 5.2.4 to 5.2.5??  Is it easy enough to do? A step by step tutorial would be awesome if you had the time.  It seems the 5.2.4 that comes with Leopard is also missing things like mcrypt &amp; pdo_mysql</p>
]]></content:encoded>
	</item>
</channel>
</rss>
