<?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: Adding the GD module to PHP on Leopard</title>
	<atom:link href="http://diymacserver.com/installing-php/adding-the-gd-module-to-php-on-leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://diymacserver.com</link>
	<description></description>
	<lastBuildDate>Mon, 08 Mar 2010 15:55:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Roberto</title>
		<link>http://diymacserver.com/installing-php/adding-the-gd-module-to-php-on-leopard/comment-page-1/#comment-6489</link>
		<dc:creator>Roberto</dc:creator>
		<pubDate>Wed, 03 Feb 2010 03:18:13 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=465#comment-6489</guid>
		<description>Hi Richard I&#039;ve successfully installed php5 off your guide then I went back and tried adding the mcrypt and GD module. Those installed successfully but now that I try recompiling php I get the following error after MAKE

/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
_png_check_sig
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

These are the configurations I used:

./configure --prefix=/usr/local/php5 \
  --mandir=/usr/share/man \
  --infodir=/usr/share/info \
  --sysconfdir=/etc \
  --with-config-file-path=/etc \
  --with-zlib \
  --with-zlib-dir=/usr \
  --with-openssl \
  --without-iconv \
  --enable-exif \
  --enable-ftp \
  --enable-mbstring \
  --enable-mbregex \
  --enable-sockets \
  --with-gd \
  --with-jpeg-dir=/usr/local/lib \
  --with-png-dir=/usr/X11R6 \
  --with-freetype-dir=/usr/X11R6 \
  --with-xpm-dir=/usr/X11R6 \
  --with-mcrypt \
  --with-mysql=/usr/local/mysql \
  --with-pdo-mysql=/usr/local/mysql \
  --with-mysqli=/usr/local/mysql/bin/mysql_config \
  --with-apxs2=/usr/local/apache2/bin/apxs

Any idea what it could be. Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi Richard I&#8217;ve successfully installed php5 off your guide then I went back and tried adding the mcrypt and GD module. Those installed successfully but now that I try recompiling php I get the following error after MAKE</p>
<p>/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:<br />
_png_check_sig<br />
collect2: ld returned 1 exit status<br />
make: *** [libs/libphp5.bundle] Error 1</p>
<p>These are the configurations I used:</p>
<p>./configure &#8211;prefix=/usr/local/php5 \<br />
  &#8211;mandir=/usr/share/man \<br />
  &#8211;infodir=/usr/share/info \<br />
  &#8211;sysconfdir=/etc \<br />
  &#8211;with-config-file-path=/etc \<br />
  &#8211;with-zlib \<br />
  &#8211;with-zlib-dir=/usr \<br />
  &#8211;with-openssl \<br />
  &#8211;without-iconv \<br />
  &#8211;enable-exif \<br />
  &#8211;enable-ftp \<br />
  &#8211;enable-mbstring \<br />
  &#8211;enable-mbregex \<br />
  &#8211;enable-sockets \<br />
  &#8211;with-gd \<br />
  &#8211;with-jpeg-dir=/usr/local/lib \<br />
  &#8211;with-png-dir=/usr/X11R6 \<br />
  &#8211;with-freetype-dir=/usr/X11R6 \<br />
  &#8211;with-xpm-dir=/usr/X11R6 \<br />
  &#8211;with-mcrypt \<br />
  &#8211;with-mysql=/usr/local/mysql \<br />
  &#8211;with-pdo-mysql=/usr/local/mysql \<br />
  &#8211;with-mysqli=/usr/local/mysql/bin/mysql_config \<br />
  &#8211;with-apxs2=/usr/local/apache2/bin/apxs</p>
<p>Any idea what it could be. Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 骚客&#8217;s Blog &#187; Blog Archive &#187; Reverting PHP 5.3 to 5.2.10 on Snow Leopard （资料收集）</title>
		<link>http://diymacserver.com/installing-php/adding-the-gd-module-to-php-on-leopard/comment-page-1/#comment-6278</link>
		<dc:creator>骚客&#8217;s Blog &#187; Blog Archive &#187; Reverting PHP 5.3 to 5.2.10 on Snow Leopard （资料收集）</dc:creator>
		<pubDate>Mon, 18 Jan 2010 05:44:19 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=465#comment-6278</guid>
		<description>[...] before attempting install to prevent error 71 as noted in the comment by Tehkemo below and on DIYMacServer.com [...]</description>
		<content:encoded><![CDATA[<p>[...] before attempting install to prevent error 71 as noted in the comment by Tehkemo below and on DIYMacServer.com [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timothy</title>
		<link>http://diymacserver.com/installing-php/adding-the-gd-module-to-php-on-leopard/comment-page-1/#comment-5207</link>
		<dc:creator>Timothy</dc:creator>
		<pubDate>Fri, 04 Sep 2009 15:46:15 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=465#comment-5207</guid>
		<description>FYI, on Snow Leopard I&#039;m seeing a subfolder config in libtool, so the paths are:
cp /usr/share/libtool/config/config.sub .
cp /usr/share/libtool/config/config.guess .</description>
		<content:encoded><![CDATA[<p>FYI, on Snow Leopard I&#8217;m seeing a subfolder config in libtool, so the paths are:<br />
cp /usr/share/libtool/config/config.sub .<br />
cp /usr/share/libtool/config/config.guess .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robb Allan</title>
		<link>http://diymacserver.com/installing-php/adding-the-gd-module-to-php-on-leopard/comment-page-1/#comment-5153</link>
		<dc:creator>Robb Allan</dc:creator>
		<pubDate>Tue, 25 Aug 2009 04:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=465#comment-5153</guid>
		<description>I&#039;m curious why you didn&#039;t use macports and install php5-gd?</description>
		<content:encoded><![CDATA[<p>I&#8217;m curious why you didn&#8217;t use macports and install php5-gd?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://diymacserver.com/installing-php/adding-the-gd-module-to-php-on-leopard/comment-page-1/#comment-3970</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 12 May 2009 20:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=465#comment-3970</guid>
		<description>after &#039;make&#039; and before &#039;sudo make install&#039; I issued the following commands and now it finished without errors:

mkdir -p /usr/local/include
mkdir -p /usr/local/bin
mkdir -p /usr/local/lib
mkdir -p /usr/local/man/man1</description>
		<content:encoded><![CDATA[<p>after &#8216;make&#8217; and before &#8217;sudo make install&#8217; I issued the following commands and now it finished without errors:</p>
<p>mkdir -p /usr/local/include<br />
mkdir -p /usr/local/bin<br />
mkdir -p /usr/local/lib<br />
mkdir -p /usr/local/man/man1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://diymacserver.com/installing-php/adding-the-gd-module-to-php-on-leopard/comment-page-1/#comment-3968</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 12 May 2009 20:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=465#comment-3968</guid>
		<description>on a MacBook G4 running 10.5.6 I&#039;m getting this error after &#039;sudo make install&#039;

/usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1
install: /usr/local/man/man1/cjpeg.1: No such file or directory
make: *** [install] Error 71</description>
		<content:encoded><![CDATA[<p>on a MacBook G4 running 10.5.6 I&#8217;m getting this error after &#8217;sudo make install&#8217;</p>
<p>/usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1<br />
install: /usr/local/man/man1/cjpeg.1: No such file or directory<br />
make: *** [install] Error 71</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-php/adding-the-gd-module-to-php-on-leopard/comment-page-1/#comment-3530</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sun, 15 Mar 2009 07:25:41 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=465#comment-3530</guid>
		<description>Drew, I&#039;m not an avid PHP coder myself and I haven&#039;t tested the GD code myself but others ensured me this aproach worked for them. WIth the PHP configure fase we are referencing the X11R6 font stuff and everything compiled and ran wothout errors. Even on a fresh clean install of Mac OS X Leopard.</description>
		<content:encoded><![CDATA[<p>Drew, I&#8217;m not an avid PHP coder myself and I haven&#8217;t tested the GD code myself but others ensured me this aproach worked for them. WIth the PHP configure fase we are referencing the X11R6 font stuff and everything compiled and ran wothout errors. Even on a fresh clean install of Mac OS X Leopard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drew</title>
		<link>http://diymacserver.com/installing-php/adding-the-gd-module-to-php-on-leopard/comment-page-1/#comment-3524</link>
		<dc:creator>Drew</dc:creator>
		<pubDate>Sun, 15 Mar 2009 03:06:22 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=465#comment-3524</guid>
		<description>I would suggest adding the following code just before running ./configure from the gd-version directory. I always found it necessary on a fresh system.

sudo ln -s /usr/X11R6/include/fontconfig /usr/local/include
ln -s `which glibtool` ./libtool

Not sure why, but gd didn&#039;t like it if i didn&#039;t do this first.

Drew</description>
		<content:encoded><![CDATA[<p>I would suggest adding the following code just before running ./configure from the gd-version directory. I always found it necessary on a fresh system.</p>
<p>sudo ln -s /usr/X11R6/include/fontconfig /usr/local/include<br />
ln -s `which glibtool` ./libtool</p>
<p>Not sure why, but gd didn&#8217;t like it if i didn&#8217;t do this first.</p>
<p>Drew</p>
]]></content:encoded>
	</item>
</channel>
</rss>
