General Discussion

Topics: User Forum
May 13, 2010 at 3: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.



May 15, 2010 at 12:01 AM
Edited May 15, 2010 at 12:05 AM

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