【发布时间】:2015-12-17 16:05:07
【问题描述】:
我正在尝试用pecl安装redis,终于报错了。
sudo pecl install redis
In file included from /private/tmp/pear/install/redis/redis.c:27:
/private/tmp/pear/install/redis/common.h:1:10: fatal error: 'php.h' file not found
#include "php.h"
^
1 error generated.
make: *** [redis.lo] Error 1
ERROR: `make' failed
我发现了和我一样的问题
Installing phpredis on osx with pecl
Answer: 看起来您的 php 在环境变量路径中不可用,或者安装正在从某个默认位置选择 php。
我如何确认我的 php 在环境变量路径中是否不可用,或者安装是否从某个默认位置选择 php?另外,如果您知道另一种制作方法,请告诉我。
【问题讨论】: