<?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 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>
	<lastBuildDate>Sat, 14 Nov 2009 00:01:11 -0600</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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-page-1/#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[[...] 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. [...]]]></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-page-1/#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=&quot;http://osx.topicdesk.com/content/view/135/41/&quot; rel=&quot;nofollow&quot;&gt;osx.topicdesk.com&lt;/a&gt;</description>
		<content:encoded><![CDATA[Fyi, the above steps do still work with 2008-002 and PHP 5.2.5.

Also, I remembered those steps came from: <a href="http://osx.topicdesk.com/content/view/135/41/" rel="nofollow">osx.topicdesk.com</a>]]></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-page-1/#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&#039;s recent security update (2008-002), which updates PHP to 5.2.5, has bundled GD support into the PHP apache module.

That&#039;s good news, except for one small detail: the CLI version of PHP 5.2.5 that they&#039;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=&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; &gt;&gt; /etc/php.ini
sudo apachectl restart
&lt;/code&gt;

I haven&#039;t tried this procedure again with the 5.2.5 PHP sources and 2008-002 security update, however.</description>
		<content:encoded><![CDATA[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:

<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>

I haven't tried this procedure again with the 5.2.5 PHP sources and 2008-002 security update, however.]]></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-page-1/#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 &#039;make test&#039; phase when I attempt to get it working, so I have given up on upgrading to it for now.</description>
		<content:encoded><![CDATA[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.]]></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-page-1/#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 &amp; pdo_mysql</description>
		<content:encoded><![CDATA[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 &amp; pdo_mysql]]></content:encoded>
	</item>
</channel>
</rss>
