安装phpredis插件出现的问题

来源:互联网 发布:centos更新python 编辑:程序博客网 时间:2024/04/30 06:30

我的linux服务器的phpize文件在/usr/bin/中

在phpredis压缩包解压之后的目录下:使用命令/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

解决方法:安装php-devel

在centos下使用命令:yum install php-devel

然后再使用命令: 

  # /usr/bin/phpize  
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525

0 0
原创粉丝点击