安装PHP的时候提示:No package libjpeg found出现原因:缺少libjpeg 的依赖包
解决方案:
1、Redhat|CentOS7版本:
下载安装rpm包:
- wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libjpeg-turbo-1.2.90-8.el7.x86_64.rpm
- wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libjpeg-turbo-devel-1.2.90-8.el7.x86_64.rpm
安装:
Centos 8系列:
下载安装rpm包
- wget https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/libjpeg-turbo-1.5.3-12.el8.x86_64.rpm
- wget https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/libjpeg-turbo-devel-1.5.3-12.el8.x86_64.rpm
安装:
2、Debian|Ubuntu
更新安装源
安装依赖
- apt-get install libjpeg-dev