<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.7" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Enabling GD library for PHP 4.4.4 on Mac OS X</title>
	<link>http://blog.designsolution.co.uk/enabling-gd-library-for-php-on-mac-os-x/</link>
	<description>Web Development &#038; Hosting : Technically Speaking</description>
	<pubDate>Mon, 12 May 2008 15:18:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.7</generator>

	<item>
		<title>by: John Kirn</title>
		<link>http://blog.designsolution.co.uk/enabling-gd-library-for-php-on-mac-os-x/#comment-192</link>
		<pubDate>Fri, 16 Feb 2007 21:17:03 +0000</pubDate>
		<guid>http://blog.designsolution.co.uk/enabling-gd-library-for-php-on-mac-os-x/#comment-192</guid>
					<description>After much trial and error, I eventually discovered that you must have Xcode Tools installed, or glen's instructions result in "no such file or directory" and "cannot find autoconf" errors.    The Xcode Tools installer is on your OS X install disc(s), or can be downloaded from Apple's site if you are an ADC member.

You may also need to add sudo to glen's first two commands, or you'll get permissions denied errors (or I did anyway):
sudo phpize ./configure --with-jpeg-dir=/sw --with-png-dir=/sw --with-zlib-dir=/usr
sudo make
sudo make install

This successfully created the gd.so file in /usr/lib/php/extensions/no-debug-non-zts-20020429/  on my OS X 10.3.9 server.

I then tried adding the line 
extension=gd.so
to my php.ini file, but GD didn't show as active on my php.info page after I restarted Apache.  Changing the line to this, then restarting Apache, got it working:
extension=/usr/lib/php/extensions/no-debug-non-zts-20020429/gd.so

So I'm now successfully running GD, and my PHP scripts accessing it work fine.</description>
		<content:encoded><![CDATA[<p>After much trial and error, I eventually discovered that you must have Xcode Tools installed, or glen&#8217;s instructions result in &#8220;no such file or directory&#8221; and &#8220;cannot find autoconf&#8221; errors.    The Xcode Tools installer is on your OS X install disc(s), or can be downloaded from Apple&#8217;s site if you are an ADC member.</p>
<p>You may also need to add sudo to glen&#8217;s first two commands, or you&#8217;ll get permissions denied errors (or I did anyway):<br />
sudo phpize ./configure &#8211;with-jpeg-dir=/sw &#8211;with-png-dir=/sw &#8211;with-zlib-dir=/usr<br />
sudo make<br />
sudo make install</p>
<p>This successfully created the gd.so file in /usr/lib/php/extensions/no-debug-non-zts-20020429/  on my OS X 10.3.9 server.</p>
<p>I then tried adding the line<br />
extension=gd.so<br />
to my php.ini file, but GD didn&#8217;t show as active on my php.info page after I restarted Apache.  Changing the line to this, then restarting Apache, got it working:<br />
extension=/usr/lib/php/extensions/no-debug-non-zts-20020429/gd.so</p>
<p>So I&#8217;m now successfully running GD, and my PHP scripts accessing it work fine.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jesse</title>
		<link>http://blog.designsolution.co.uk/enabling-gd-library-for-php-on-mac-os-x/#comment-119</link>
		<pubDate>Wed, 31 Jan 2007 23:06:24 +0000</pubDate>
		<guid>http://blog.designsolution.co.uk/enabling-gd-library-for-php-on-mac-os-x/#comment-119</guid>
					<description>So I get to step 3 and get stuck any ideas?

WebEmailServer:~/Desktop/php-4.4.4/ext/gd rwsccadmin$ phpize 
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:        
Zend Module Api No:     
Zend Extension Api No:  
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/build/libtool.m4: Permission denied
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/build/shtool: Permission denied
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/build/scan_makefile_in.awk: Permission denied
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/build/mkdep.awk: Permission denied
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/ltmain.sh: Permission denied
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/config.guess: Permission denied
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/config.sub: Permission denied
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/Makefile.global: Permission denied
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/acinclude.m4: Permission denied
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF 
environment variable is set correctly and then rerun this script. 

WebEmailServer:~/Desktop/php-4.4.4/ext/gd rwsccadmin$ ./configure --with-jpeg-dir=/sw --with-png-dir=/sw --with-zlib-dir=/usr
-bash: ./configure: No such file or directory</description>
		<content:encoded><![CDATA[<p>So I get to step 3 and get stuck any ideas?</p>
<p>WebEmailServer:~/Desktop/php-4.4.4/ext/gd rwsccadmin$ phpize<br />
grep: /usr/include/php/main/php.h: No such file or directory<br />
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory<br />
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory<br />
Configuring for:<br />
PHP Api Version:<br />
Zend Module Api No:<br />
Zend Extension Api No:<br />
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/build/libtool.m4: Permission denied<br />
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/build/shtool: Permission denied<br />
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/build/scan_makefile_in.awk: Permission denied<br />
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/build/mkdep.awk: Permission denied<br />
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/ltmain.sh: Permission denied<br />
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/config.guess: Permission denied<br />
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/config.sub: Permission denied<br />
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/Makefile.global: Permission denied<br />
cp: /Users/rwsccadmin/Desktop/php-4.4.4/ext/gd/acinclude.m4: Permission denied<br />
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF<br />
environment variable is set correctly and then rerun this script. </p>
<p>WebEmailServer:~/Desktop/php-4.4.4/ext/gd rwsccadmin$ ./configure &#8211;with-jpeg-dir=/sw &#8211;with-png-dir=/sw &#8211;with-zlib-dir=/usr<br />
-bash: ./configure: No such file or directory
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: glen</title>
		<link>http://blog.designsolution.co.uk/enabling-gd-library-for-php-on-mac-os-x/#comment-45</link>
		<pubDate>Thu, 04 Jan 2007 17:07:16 +0000</pubDate>
		<guid>http://blog.designsolution.co.uk/enabling-gd-library-for-php-on-mac-os-x/#comment-45</guid>
					<description>Unfortunately, there seems to be a problem with the CLI version of PHP included with OS X.  It doesn't seem to be able to load extensions dynamically.  I can't see any way around this at the moment :(</description>
		<content:encoded><![CDATA[<p>Unfortunately, there seems to be a problem with the CLI version of PHP included with OS X.  It doesn&#8217;t seem to be able to load extensions dynamically.  I can&#8217;t see any way around this at the moment <img src='http://blog.designsolution.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Benni</title>
		<link>http://blog.designsolution.co.uk/enabling-gd-library-for-php-on-mac-os-x/#comment-44</link>
		<pubDate>Thu, 04 Jan 2007 16:44:57 +0000</pubDate>
		<guid>http://blog.designsolution.co.uk/enabling-gd-library-for-php-on-mac-os-x/#comment-44</guid>
					<description>I used your guide to enable gd lib on my mac webserver, but I have problems with the PHP CLI. It produces the following output:
mac: user# php -v
dyld: NSLinkModule() error
dyld: Symbol not found: _php_sig_gif
  Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20020429/gd.so
  Expected in: flat namespace

Trace/BPT trap

Any ideas how I could make this workable?</description>
		<content:encoded><![CDATA[<p>I used your guide to enable gd lib on my mac webserver, but I have problems with the PHP CLI. It produces the following output:<br />
mac: user# php -v<br />
dyld: NSLinkModule() error<br />
dyld: Symbol not found: _php_sig_gif<br />
  Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20020429/gd.so<br />
  Expected in: flat namespace</p>
<p>Trace/BPT trap</p>
<p>Any ideas how I could make this workable?
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
