How to install the PHP CLI mode gd2 library

I am Ubuntu18 + php7.1 + Nginx and want to integrate workerman
https://www.kancloud.cn/manua.
on tp5. According to this tutorial, the first step is to fail composer require topthink/think-worker
error as shown in figure

gd2/usr/lib/php/20170718gd.sogdgd2Ubuntugd2

.
Mar.18,2021

php-I | grep with-gd to see if you have gd when compiling and installing php
if not, reinstall gd with phpize


1. About the difference between gd and gd2, you can join the following link. To put it simply, gd2 is an updated version of gd, which can handle more image types
https://stackoverflow.com/que.
2. Gd and gd2, are already included in php-gd. If you installed a new version of php-gd, you should have already installed it, or check out the following version of your GD library

<?php
var_dump(gd_info());
?>

the version I show is 2.1.1, including GD2
clipboard.png

3composer require topthink/think-worker

:
4"phpcliphpphp.iniphpinfo()PHP CLI"

php-cliphpphp -vphpphp-cliapahcenginx
clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4c741-443f8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4c741-443f8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?