我正在尝试使用php 5.6在Mac上安装phpredis。我运行以下命令:
1. git clone https://www.github.com/phpredis/phpredis.git
2. cd phpredis
3. phpize && ./configure && make && sudo make install
但是当我运行命令3时,出现以下错误:
In file included from /Users/user1/phpredis/redis.c:25:
In file included from ./php_redis.h:20:
./common.h:12:10: fatal error: 'zend_smart_str.h' file not found
#include <zend_smart_str.h>
^~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [redis.lo] Error 1
还有另一种安装方式?
从github开始,您可以使用pecl作为另一种安装方式。