【发布时间】:2014-06-23 09:08:40
【问题描述】:
我正在尝试使用以下命令安装 pthread:
sudo pecl install pthreads
但是,这样做时,我收到以下错误消息:
checking checking for ZTS... configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled
ERROR: /private/tmp/pear/install/pthreads/configure' failed
有人知道我如何在启用 ZTS 的情况下重新编译 PHP 吗?我正在使用 MAMP 3.0.2,我认为运行 phpize 会重新编译 php,但是这样做时会出现此错误:
Cannot find config.m4.
Make sure that you run '/Applications/MAMP/bin/php/php5.5.10/bin/phpize' in the top level source directory of the module
【问题讨论】:
-
您是否解决了这个问题,如果是 - 如何解决?
标签: php compilation pthreads mamp