phpize出错

来源:互联网 发布:知乎水族箱品牌 编辑:程序博客网 时间:2024/06/05 04:22
/usr/bin/phpize

提示错误:
Can’t find PHP headers in /usr/include/php
The php-devel package is required for use of this command.

安装php-devel

yum install php-devel

这里写图片描述

安装php-devel失败
手动下载php-devel
https://centos.pkgs.org/6/webtatic-x86_64/php56w-devel-5.6.30-1.w6.x86_64.rpm.html

然后安装
phpize
Cannot find config.m4.
Make sure that you run ‘/usr/bin/phpize’ in the top level source directory of the module
出现这种错误
到phpredis的安装目录下执行即可解决