我正在尝试用php5.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还有其他方法可以安装它吗?
https://stackoverflow.com/questions/61397767
复制相似问题