Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I install GD library with php 7.2?

Tags:

php

yum

gd

I installed php72-php-gd, php70-php-gd, 2 php-gd in Amazon Linux 2 AMI server with

yum install php72-g

I can't get any information about GD library in php.info, the old server was Ubuntu 16.04.3 from DigitalOcean and works well there.

like image 282
Abdelrhman Mohamed Avatar asked Dec 10 '18 11:12

Abdelrhman Mohamed


People also ask

What does the GD library do in PHP?

GD is an open source code library for the dynamic creation of images. GD is used for creating PNG, JPEG and GIF images and is commonly used to generate charts, graphics, thumbnails on the fly.

Which function should be run to watch that GD Support is enabled or not?

Mostly PHP 4 and higher versions comes with GD support. Some time it may not be enabled. To know this we can use phpinfo function and check GD support is available or not.


1 Answers

apt-get install php7.2-gd 

works for me on Debian Stretch with this php7.2 packages php7.2 install

you have to know the name of the package you need, it differs from distro to distro and install it.

like image 71
cabanni Avatar answered Sep 21 '22 19:09

cabanni