Php – how to configure PHP –with-gd[=DIR]

PHP

This is a very silly question.

I need to enable GD-suport, the reference says "To enable GD-support configure PHP –with-gd[=DIR] , where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option –with-gd". But where do I put this option?

Best Answer

Depending on how you installed PHP, it's as easy as installing the package. Modern distros have up-to-date PHP packages generally so you don't need to compile from source unless you have specific needs.

That said, look for php5-gd or php-gd depending on your OS. Your question doesn't specify.