您好,复制下面的命令到终端中执行,执行成功后再去安装PHP试一下
- yum remove -y libwebp libwebp-devel gd gd-devel
- wget https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/libwebp-devel-1.0.0-5.el8.x86_64.rpm
- wget https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/gd-devel-2.2.5-7.el8.x86_64.rpm
- wget https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/gd-2.2.5-7.el8.x86_64.rpm
- wget https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/libwebp-1.0.0-5.el8.x86_64.rpm
- rpm -ivh libwebp-1.0.0-5.el8.x86_64.rpm --nodeps
- rpm -ivh libwebp-devel-1.0.0-5.el8.x86_64.rpm --nodeps
- rpm -ivh gd-2.2.5-7.el8.x86_64.rpm --nodeps
- rpm -ivh gd-devel-2.2.5-7.el8.x86_64.rpm --nodeps
复制代码 |