【问题标题】:enable ZTS on MAMP 3.0.2在 MAMP 3.0.2 上启用 ZTS
【发布时间】: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


【解决方案1】:

您无法启用 ZTS post-build,您必须安装线程安全版本。

phpize 是一个为扩展生成 autoconf foo 的工具。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-21
    • 1970-01-01
    • 1970-01-01
    • 2015-03-03
    • 1970-01-01
    • 2012-12-04
    相关资源
    最近更新 更多