Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: installing GD library for PHP



It does? Have you tried it? Last time I tried, you couldn't build GD 2.0.11 into PHP 4.3.0.

If you use the GD from http://www.boutell.com/gd/ it actually doesn't compile into PHP because a while back the PHP developers forked off their own version of GD because they needed to make bug fixes and GD wasn't being maintained by its developer. Then the GD developer started working on it again, but by that time, PHP-GD and GD-GD were incompatible. At the moment, PHP and GD are working to merge their versions of GD (hopefully), but it hasn't happened yet (at least as of last week when I tried it). It may work with older versions of PHP and/or GD, but I wouldn't recommend bothering with it.

In short, just use --with-gd and use the compiled in version of GD (which was at v2.0.1 when it forked).
~Seth


On Thursday, January 30, 2003, at 02:03 PM, Daniel P. Hembree wrote:

substitute 2.0.11 for 1.8.4, it works fine.

On Thursday, January 30, 2003, at 10:28 AM, Seth Price wrote:

The latest version of PHP has a built in GD module, and I suggest that you use that for the time being. It is faster and bug-free. The procidure I use for installing the latest and greatest of PHP/GD looks something like this:
sudo -s
cd /usr/local
mkdir php
cd php
curl -O http://us3.php.net/distributions/php-4.3.0.tar.gz
gnutar -zxf php-4.3.0.tar.gz
cd php-4.3.0
./configure --with-gd --with-png-dir=/usr/local --with-zlib-dir=/usr --with-jpeg-dir=/usr/local --with-apxs
make
make install
apachectl graceful

This assumes that you are using php with apache and you have libjpeg, and libpng installed correctly in the /usr/local/lib folder. Refer to stepwise for those instructions. zlib is installed for you by apple.

The stepwise article still installs the old version of GD (1.8.4), and I don't know if it even works with the current version of PHP.

To test, make a small php file that contains only "<?php phpinfo(); ?>" and load it up as a web page. If php is working correctly you will get a print out of what you have installed/enabled

Note: I made these instructions from memory, so tell me if I forgot something silly or you run into snags.
~Seth




On Wednesday, January 29, 2003, at 01:30 PM, Daniel P. Hembree wrote:

Funny you should mention this, I finally got this to work for Perl. As far as just installing the libraries goes, that's easy, Scott Anguish at Stepwise.com has written an article on how to install libjpeg, libpng, and libgd.

http://www.stepwise.com/Articles/Workbench/2001-06-12.01.html

Once the libraries are installed correctly, whatever needs to use them needs to be linked to them. That's the hard part. You'll need to supply specific failure information to get help with that part.
On Wednesday, January 29, 2003, at 09:06 AM, Steve Poole wrote:

Hi there. I'm looking for some guidance on installing the GD library (and the libraries it requires) for PHP.

I've been able to find instructions for doing a PHP 4.3 install on Mac OS X client, along with these libraries, but as is often the case Mac OS X Server seems to have a somewhat nonstandard installation and the applicability of these instructions is suspect. I'm never quite sure when I'm going to stomp on something that Server wants to keep to itself, or fail to integrate properly with Server configuration features, or put myself into a tough upgrade situation.

What's important to me is the GD stuff, not the PHP version. If upgrading PHP is the way to do it then that's fine, if not preferred. Any hints?

Thanks!

Steve Poole
Software Engineering Manager
WRQ, Inc.

WRQ software extends host applications, rapidly integrating them for new applications or new users. Rated #1 in customer support. Relied on daily by four out of five Fortune 500 companies.
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: installing GD library for PHP (From: "Daniel P. Hembree" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.