

It should be noted that it might be pretty easy to install gd without the need to recompile php, when using debian. I also had to install the libgd package in addition to php5-gd: sudo apt-get install libgd2-xpm-dev.

Installation on Pop-os No need for php5 or php7.0 etc: sudo apt install php-gd. To get GD bundled under Ubuntu, the way to recompile php5 with gd is described here (french). On Ubuntu I was missing the libpng-dev, libjpeg-dev (and in my case) libwebp-dev libraries, all gettable with apt-get.Īlso once those libraries are installed, including -with-png-dir -with-jpeg-dir -with-webp-dir, without any values (i.e. phpbrew ext install gd It will compile the extension to the core.
