我尝试在 OS X Lion ( ) 上使用 pecl 安装 APC,sudo pecl install apc
但它抱怨缺少 pcre.h 文件:
In file included from /private/tmp/pear/temp/APC/apc.c:44:
/usr/include/php/ext/pcre/php_pcre.h:29:10: fatal error: 'pcre.h' file not found
#include "pcre.h"
所以我使用 MacPorts 安装 pcre 包(sudo port install pcre
)但它仍然抱怨。我怎样才能解决这个问题?