安装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.rpmwget http://mirror.centos.org/centos/7/os/x86_64/Packages/libjpeg-turbo-devel-1.2.90-8.el7.x86_64.rpm
安装:
rpm -ivh libjpeg*.rpm
Centos 8系列:下载安装rpm包
wgethttps://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/libjpeg-turbo-1.5.3-12.el8.x86_64.rpmwgethttps://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/libjpeg-turbo-devel-1.5.3-12.el8.x86_64.rpm
安装:
rpm -ivh libjpeg*.rpm
2、Debian|Ubuntu更新安装源
apt-get update
安装依赖
apt-get install libjpeg-dev