我尝试在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
),但仍然出现问题。如何解决?