<?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: Install Apache2 and PHP5 with GD on Mac OS X</title>
	<atom:link href="http://www.kenior.com/macintosh/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kenior.com/macintosh/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Mon, 06 Oct 2008 15:14:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Kénior</title>
		<link>http://www.kenior.com/macintosh/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-344</link>
		<dc:creator>Kénior</dc:creator>
		<pubDate>Mon, 26 May 2008 08:53:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.veola.net/uncategorized/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-344</guid>
		<description>@Fredrik

1st question: It is normal that your Terminal said your version is 1.3.41, because the command httpd -v will ask the MAC's rebuilt in apache. That's OK, that will not make any issues for apahe2. for why you cannot restart apache, the error is what terminal tell you right? can you provide the apache2's error log please?

2nd: could you tell me what error you got please?</description>
		<content:encoded><![CDATA[<p>@Fredrik</p>
<p>1st question: It is normal that your Terminal said your version is 1.3.41, because the command httpd -v will ask the MAC&#8217;s rebuilt in apache. That&#8217;s OK, that will not make any issues for apahe2. for why you cannot restart apache, the error is what terminal tell you right? can you provide the apache2&#8217;s error log please?</p>
<p>2nd: could you tell me what error you got please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrik</title>
		<link>http://www.kenior.com/macintosh/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-341</link>
		<dc:creator>Fredrik</dc:creator>
		<pubDate>Sun, 25 May 2008 20:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.veola.net/uncategorized/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-341</guid>
		<description>Hi great site, I just have two problems I need to ask for. The first one is when I've installed apache2, it still says that my version is 1.3.41 when I use "httpd -v". I've tried to restart apache2 but then I get this:

dyld: Symbol not found: _XmlParseXmlDeclNS
  Referenced from: /usr/local/apache2/lib/libexpat.0.dylib
  Expected in: flat namespace

/usr/local/apache2/bin/apachectl: line 102: 26652 Trace/BPT trap          $HTTPD -k $ARGV

My next problem is that when I try to install php5 I get an error which I think leads to that I can't configure it later on. Haven't find anyone else with that problem..

I would be grateful with any help</description>
		<content:encoded><![CDATA[<p>Hi great site, I just have two problems I need to ask for. The first one is when I&#8217;ve installed apache2, it still says that my version is 1.3.41 when I use &#8220;httpd -v&#8221;. I&#8217;ve tried to restart apache2 but then I get this:</p>
<p>dyld: Symbol not found: _XmlParseXmlDeclNS<br />
  Referenced from: /usr/local/apache2/lib/libexpat.0.dylib<br />
  Expected in: flat namespace</p>
<p>/usr/local/apache2/bin/apachectl: line 102: 26652 Trace/BPT trap          $HTTPD -k $ARGV</p>
<p>My next problem is that when I try to install php5 I get an error which I think leads to that I can&#8217;t configure it later on. Haven&#8217;t find anyone else with that problem..</p>
<p>I would be grateful with any help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: olczij</title>
		<link>http://www.kenior.com/macintosh/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-9</link>
		<dc:creator>olczij</dc:creator>
		<pubDate>Sat, 29 Mar 2008 18:50:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.veola.net/uncategorized/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-9</guid>
		<description>i hope. abcba15c81 thanks</description>
		<content:encoded><![CDATA[<p>i hope. abcba15c81 thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oclenj</title>
		<link>http://www.kenior.com/macintosh/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-7</link>
		<dc:creator>oclenj</dc:creator>
		<pubDate>Thu, 06 Mar 2008 17:30:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.veola.net/uncategorized/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-7</guid>
		<description>Imagine czk4490 loop. Froogle has an abcba15c81 items checker.</description>
		<content:encoded><![CDATA[<p>Imagine czk4490 loop. Froogle has an abcba15c81 items checker.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.kenior.com/macintosh/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-6</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 13 Feb 2008 04:36:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.veola.net/uncategorized/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-6</guid>
		<description>Thanks for the extra instructions! Unfortunately I haven't gotten it yet

Here goes my story:
started installing jpeg library, but got a "C compiler cannot create executables" when I ran the "MACOSX_DEPLOYMENT_TARGET=...". So I REINSTALLED XCODE AND THE SAME ERROR CAME UP. UGH!
Anyway, I finally just tried building jpeg and png with "./configure --enable-shared --enable-static" and got them installed ok, I think. (with "make clean" - thanks)
Then I tried running the ./configure script again for PHP5 and I get a problem with MYSQL. From ./configure:
&lt;code&gt;
...
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
&lt;/code&gt;

config.log:
&lt;code&gt;
configure:59413: checking for MySQL UNIX socket location
configure:59604: checking for mysql_close in -lmysqlclient
configure:59623: gcc -o conftest -I/usr/include -g -O2  -no-cpp-precomp -L/usr/local/mysql/lib -L/usr/local/mysql/lib -liconv -L/usr/lib  -L/usr/local/lib -L/usr/local/lib conftest.c -lmysqlclient  -lldap -llber -liconv -lpng -lz -ljpeg -lcurl -lz -lm  -lxml2 -lz -liconv -lm -lcurl -lssl -lcrypto -lz -lxml2 -lz -liconv -lm 1&#62;&#38;5
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
_mysql_close
collect2: ld returned 1 exit status
configure: failed program was:
#line 59612 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_close();

int main() {
mysql_close()
; return 0; }
configure:59846: checking for mysql_error in -lmysqlclient
configure:59865: gcc -o conftest -I/usr/include -g -O2  -no-cpp-precomp -L/usr/local/mysql/lib -L/usr/local/mysql/lib -liconv -L/usr/lib  -L/usr/local/lib -L/usr/local/lib -L/usr -L/usr conftest.c -lmysqlclient  -lz -lldap -llber -liconv -lpng -lz -ljpeg -lcurl -lz -lm  -lxml2 -lz -liconv -lm -lcurl -lssl -lcrypto -lz -lxml2 -lz -liconv -lm 1&#62;&#38;5
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
_mysql_error
collect2: ld returned 1 exit status
configure: failed program was:
#line 59854 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_error();

int main() {
mysql_error()
; return 0; }
&lt;/code&gt;

- hope all that helps

On some other forums, I've read things like "you need to get the mysql developer tools" or even "change your /sw folder if you have fink". I also recompiled mysql from source.

-Any thoughts would help</description>
		<content:encoded><![CDATA[<p>Thanks for the extra instructions! Unfortunately I haven&#8217;t gotten it yet</p>
<p>Here goes my story:<br />
started installing jpeg library, but got a &#8220;C compiler cannot create executables&#8221; when I ran the &#8220;MACOSX_DEPLOYMENT_TARGET=&#8230;&#8221;. So I REINSTALLED XCODE AND THE SAME ERROR CAME UP. UGH!<br />
Anyway, I finally just tried building jpeg and png with &#8220;./configure &#8211;enable-shared &#8211;enable-static&#8221; and got them installed ok, I think. (with &#8220;make clean&#8221; - thanks)<br />
Then I tried running the ./configure script again for PHP5 and I get a problem with MYSQL. From ./configure:<br />
<code><br />
...<br />
checking for mysql_close in -lmysqlclient... no<br />
checking for mysql_error in -lmysqlclient... no<br />
configure: error: mysql configure failed. Please check config.log for more information.<br />
</code></p>
<p>config.log:<br />
<code><br />
configure:59413: checking for MySQL UNIX socket location<br />
configure:59604: checking for mysql_close in -lmysqlclient<br />
configure:59623: gcc -o conftest -I/usr/include -g -O2  -no-cpp-precomp -L/usr/local/mysql/lib -L/usr/local/mysql/lib -liconv -L/usr/lib  -L/usr/local/lib -L/usr/local/lib conftest.c -lmysqlclient  -lldap -llber -liconv -lpng -lz -ljpeg -lcurl -lz -lm  -lxml2 -lz -liconv -lm -lcurl -lssl -lcrypto -lz -lxml2 -lz -liconv -lm 1&gt;&amp;5<br />
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:<br />
_mysql_close<br />
collect2: ld returned 1 exit status<br />
configure: failed program was:<br />
#line 59612 "configure"<br />
#include "confdefs.h"<br />
/* Override any gcc2 internal prototype to avoid an error.  */<br />
/* We use char because int might match the return type of a gcc2<br />
    builtin and then its argument prototype would still apply.  */<br />
char mysql_close();</p>
<p>int main() {<br />
mysql_close()<br />
; return 0; }<br />
configure:59846: checking for mysql_error in -lmysqlclient<br />
configure:59865: gcc -o conftest -I/usr/include -g -O2  -no-cpp-precomp -L/usr/local/mysql/lib -L/usr/local/mysql/lib -liconv -L/usr/lib  -L/usr/local/lib -L/usr/local/lib -L/usr -L/usr conftest.c -lmysqlclient  -lz -lldap -llber -liconv -lpng -lz -ljpeg -lcurl -lz -lm  -lxml2 -lz -liconv -lm -lcurl -lssl -lcrypto -lz -lxml2 -lz -liconv -lm 1&gt;&amp;5<br />
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:<br />
_mysql_error<br />
collect2: ld returned 1 exit status<br />
configure: failed program was:<br />
#line 59854 "configure"<br />
#include "confdefs.h"<br />
/* Override any gcc2 internal prototype to avoid an error.  */<br />
/* We use char because int might match the return type of a gcc2<br />
    builtin and then its argument prototype would still apply.  */<br />
char mysql_error();</p>
<p>int main() {<br />
mysql_error()<br />
; return 0; }<br />
</code></p>
<p>- hope all that helps</p>
<p>On some other forums, I&#8217;ve read things like &#8220;you need to get the mysql developer tools&#8221; or even &#8220;change your /sw folder if you have fink&#8221;. I also recompiled mysql from source.</p>
<p>-Any thoughts would help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hill</title>
		<link>http://www.kenior.com/macintosh/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-5</link>
		<dc:creator>Hill</dc:creator>
		<pubDate>Sun, 03 Feb 2008 09:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.veola.net/uncategorized/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-5</guid>
		<description>@nick

thank you very much for your reply. I think that you use a 64 bit machine makes this problem.
I'm really sorry I didn't point out that the libpng and linjpeg binaries packages are for the 32 bit installation.

So, please try install them with terminal.
1.download &lt;a href="ftp://ftp.uu.net/graphics/jpeg/" rel="nofollow"&gt;libjpeg&lt;/a&gt; and &lt;a href="http://www.libpng.org/pub/png/libpng.html" rel="nofollow"&gt;libpng&lt;/a&gt; source package and uncompress them in /sourcecache folder (or other dictionary).

2.install them in your 64 bit mac
&lt;code&gt;cd /SourceCache/jpeg-6b
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .&lt;/code&gt;

For 64-bit use:
&lt;code&gt;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 --enable-shared&lt;/code&gt;
and type this to install:
&lt;code&gt;make
mkdir -p /usr/local/include
mkdir -p /usr/local/bin
mkdir -p /usr/local/lib
mkdir -p /usr/local/man/man1
make install&lt;/code&gt;

and for libpng is the same way. but please pay attention, first of all, run "make clean" to clean your 32 bit installation.

thank you</description>
		<content:encoded><![CDATA[<p>@nick</p>
<p>thank you very much for your reply. I think that you use a 64 bit machine makes this problem.<br />
I&#8217;m really sorry I didn&#8217;t point out that the libpng and linjpeg binaries packages are for the 32 bit installation.</p>
<p>So, please try install them with terminal.<br />
1.download <a href="ftp://ftp.uu.net/graphics/jpeg/" rel="nofollow">libjpeg</a> and <a href="http://www.libpng.org/pub/png/libpng.html" rel="nofollow">libpng</a> source package and uncompress them in /sourcecache folder (or other dictionary).</p>
<p>2.install them in your 64 bit mac<br />
<code>cd /SourceCache/jpeg-6b<br />
cp /usr/share/libtool/config.sub .<br />
cp /usr/share/libtool/config.guess .</code></p>
<p>For 64-bit use:<br />
<code>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 --enable-shared</code><br />
and type this to install:<br />
<code>make<br />
mkdir -p /usr/local/include<br />
mkdir -p /usr/local/bin<br />
mkdir -p /usr/local/lib<br />
mkdir -p /usr/local/man/man1<br />
make install</code></p>
<p>and for libpng is the same way. but please pay attention, first of all, run &#8220;make clean&#8221; to clean your 32 bit installation.</p>
<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.kenior.com/macintosh/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-4</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Tue, 29 Jan 2008 23:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.veola.net/uncategorized/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-4</guid>
		<description>Thanks for the post! I've been having trouble getting GD installed on my mac, so I thought I'd upgrade everything.

I get this hangup when running the ./config...etc for php5:

configure: error: Problem with libpng.(a&#124;so) or libz.(a&#124;so). Please check config.log for more information.

the last few lines in config.log say:

configure:35723: checking for png_write_image in -lpng
configure:35742: gcc -o conftest -g -O2  -no-cpp-precomp -L/usr/local/lib -L/usr/local/lib  -L/usr/local/lib -L/usr/local/lib -lz conftest.c -lpng  -ljpeg -lcurl -lz -lm  -lxml2 -lz -liconv -lm -lcurl -lssl -lcrypto -lz -lxml2 -lz -liconv -lm 1&gt;&#038;5
/usr/bin/ld: /usr/local/lib/libpng.dylib load command 4 unknown cmd field
collect2: ld returned 1 exit status
configure: failed program was:
#line 35731 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char png_write_image();

int main() {
png_write_image()
; return 0; }


So it looks like the libpng is the root of the problem, but I used the installation package listed above. Any ideas or suggestions?</description>
		<content:encoded><![CDATA[<p>Thanks for the post! I&#8217;ve been having trouble getting GD installed on my mac, so I thought I&#8217;d upgrade everything.</p>
<p>I get this hangup when running the ./config&#8230;etc for php5:</p>
<p>configure: error: Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information.</p>
<p>the last few lines in config.log say:</p>
<p>configure:35723: checking for png_write_image in -lpng<br />
configure:35742: gcc -o conftest -g -O2  -no-cpp-precomp -L/usr/local/lib -L/usr/local/lib  -L/usr/local/lib -L/usr/local/lib -lz conftest.c -lpng  -ljpeg -lcurl -lz -lm  -lxml2 -lz -liconv -lm -lcurl -lssl -lcrypto -lz -lxml2 -lz -liconv -lm 1>&#038;5<br />
/usr/bin/ld: /usr/local/lib/libpng.dylib load command 4 unknown cmd field<br />
collect2: ld returned 1 exit status<br />
configure: failed program was:<br />
#line 35731 &#8220;configure&#8221;<br />
#include &#8220;confdefs.h&#8221;<br />
/* Override any gcc2 internal prototype to avoid an error.  */<br />
/* We use char because int might match the return type of a gcc2<br />
    builtin and then its argument prototype would still apply.  */<br />
char png_write_image();</p>
<p>int main() {<br />
png_write_image()<br />
; return 0; }</p>
<p>So it looks like the libpng is the root of the problem, but I used the installation package listed above. Any ideas or suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hill</title>
		<link>http://www.kenior.com/macintosh/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-3</link>
		<dc:creator>Hill</dc:creator>
		<pubDate>Tue, 25 Sep 2007 22:32:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.veola.net/uncategorized/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-3</guid>
		<description>to jonas
Hi I'm really glad that my article can give you some help. I am just a newbie in Unix area and if you have any problem, just mail me webmaster@veola.net. hoping we can figure it out together.</description>
		<content:encoded><![CDATA[<p>to jonas<br />
Hi I&#8217;m really glad that my article can give you some help. I am just a newbie in Unix area and if you have any problem, just mail me <a href="mailto:webmaster@veola.net">webmaster@veola.net</a>. hoping we can figure it out together.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>http://www.kenior.com/macintosh/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-2</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Mon, 24 Sep 2007 12:05:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.veola.net/uncategorized/configuring-apache2-and-php5-with-gd-on-mac-os-x-tiger#comment-2</guid>
		<description>Hi! Thanks for the "how-to", it worked perfect. I have just changed from Win to Mac and I'm having trouble getting xslt to work with my apache-installation. Do you think you could help me? I'm lost!

Best regards.</description>
		<content:encoded><![CDATA[<p>Hi! Thanks for the &#8220;how-to&#8221;, it worked perfect. I have just changed from Win to Mac and I&#8217;m having trouble getting xslt to work with my apache-installation. Do you think you could help me? I&#8217;m lost!</p>
<p>Best regards.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
