安装多线程“ pthreads”时,出现了一个这样的error错误:

 

checking for ZTS... configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled

翻译成中文

检查ZTS…配置:错误:Pthreads需要ZTS,请重新编译PHP ZTS启用

checking for ZTS... configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled

ZTS解决办法:

只需要在PHP编译参数基础上加上:--enable-maintainer-zts 即可!

 

注意:zts不能动态加载,必须PHP源码编译加载,因此:千万不要产生不需要编译PHP就能解决这个问题的错误想法。

看到大多数,都是要求重新编译PHP,如果你有更好的办法,欢迎留言交流.

 

相关文章:

  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2021-05-03
相关资源
相似解决方案