General Discussion

Topics: User Forum
May 13, 2010 at 2:26 AM

The requirements state the php_gd2 must be enabled (if not compiled in).

Is this only related to Windows?  All I can find for Linux indicates php_gd and php_gd2 is only referenced as php_gd2.dll.

Thanks

Teresa

Coordinator
May 14, 2010 at 11:01 PM
Edited May 14, 2010 at 11:05 PM

No, it applies to all platforms.

On *nix, GD is enabled by configuring PHP --with-gd[=DIR], where DIR is the GD base install directory, when you do a build. If you're installing PHP from an RPM (or equivalent) rather than doing a manual build from source, then I'd expect GD to be enabled. Personally, I've always removed RPMs and done a manual build. If you're dependent on an ISP install, then GD will typically be enabled, but if not you should contact your ISP and they should do it for you.

You'll probably also need to configure with --with-jpeg-dir=DIR --with-png-dir=DIR --with-zlib-dir[=DIR] --with-freetype-dir=DIR

And if building on a 64-bit machine, ensure that you link to the correct 64-bit libraries

phpinfo() should tell you if GD is enabled