我找不到任何关于如何在 OSX 上安装这个东西的分步指南。如果可能的话,我不想重新编译 PHP。
是否有一个我可以从某个地方安装的软件包来启用 pthreads?我尝试过:
pecl install pthreads
pecl/pthreads requires PHP (version >= 7.0.0RC5), installed version is 5.5.30
No valid packages found
最佳答案
将 php 更新到版本 >= 7.0.0RC5 或安装其他版本的 pthreads
pecl install pthreads-2.0.10
此外,pthreads 还需要使用标志 --enable-maintainer-zts
配置 php。它是在php编译时设置的。
./configure ... --enable-maintainer-zts ...
make
make install
关于php - 如何在 OSX、PHP 5.5.30 上安装 "pthreads",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34534865/