宝塔安装PHP提示 No package 'libwebp'
安装php的时候提示No package 'libwebp' found
是因为没有libwebp 安装包,需要手动安装
解决方案:
Redhat|CentOS系列:
7版本系列:
1、下载安装依赖rpm包:
- wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libwebp-0.3.0-7.el7.i686.rpm
- wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libwebp-devel-0.3.0-7.el7.x86_64.rpm
2、安装
8版本系列:
1、下载安装依赖rpm包:
-
- wget https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/libwebp-1.0.0-5.el8.x86_64.rpm
- wget https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/libwebp-devel-1.0.0-5.el8.i686.rpm
-
2、安装
Debian|Ubuntu系列(需要root权限去执行下面命令)
1、更新安装源
2、安装依赖
- apt-get install libwebp-dev