在 CentOS 8 服务器上安装 Redis ,执行 phpize 时报错:
Can't find PHP headers in /usr/include/php The php-devel package is required for use of this command. [shell] 想直接安装 php-devel : [shell] yum install php-devel
报错:
Last metadata expiration check: 2:44:07 ago on Sat 15 Aug 2020 05:50:40 AM UTC. Error: Problem: cannot install the best candidate for the job - nothing provides libedit-devel(x86-64) needed by php-devel-7.3.21-1.el8.remi.x86_64 (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
安装 libedit-devel :
yum install http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/libedit-devel-3.1-23.20170329cvs.el8.x86_64.rpm
再直接安装 php-devel :
yum install php-devel