Home > General > How to get PHP5 with GD enabled with JPEG/PNG on x86-64

How to get PHP5 with GD enabled with JPEG/PNG on x86-64

November 7, 2007

I was trying to figure out why on CentOS 5.0 box on x86-64, I was unable to get GD support in PHP 5.2 for libjpeg and libpng. Lots of googling and looking through the PHP bug list and I finally worked out the magic invocation so for posterity (ie search engine’s sake) here it is

On an x86-64 environment ensure that you have the following configure options

-with-jpeg-dir=/usr \
–with-png-dir=/usr \
–with-libdir=lib64

Technorati Tags :
Advertisements
Categories: General
%d bloggers like this: