且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Ubuntu中使用Pthreads PHP扩展

更新时间:2023-01-31 22:32:02

如果无法访问扩展类,则不会加载它.

If you cannot access the extensions classes then it is not loaded.

我认为您打开了一个错误报告,对此我的答复是您的配置行格式错误.

I think you opened a bug report, to which I responded that your configure line is malformed.

您要使用的配置行是:

./configure --enable-pthreads --enable-maintainer-zts

以上命令将pthreads作为DSO构建.

The above command will build pthreads as a DSO.

./configure --enable-pthreads=static --enable-maintainer-zts

以上命令将pthreads静态地构建到PHP中.

The above command will build pthreads statically into PHP.

5.3、5.4甚至5.5均对两者均提供支持.

Both are equally supported by 5.3, 5.4 and even 5.5.

此外,如果要覆盖系统安装,则应使用特定的--prefix,例如,如果php可执行文件位于/usr/bin(可以通过哪个php"确定),则--prefix=/usr将覆盖您的系统安装.

Additionally, if you are overwriting your system installation then you should use a specific --prefix, for example, if you php executable is at /usr/bin ( which you can ascertain with "which php" ), then --prefix=/usr will overwrite your system installation.

清理旧的安装(如果源仍然可用,请进行卸载).重新开始,确保您覆盖了系统安装或完全隔离了该安装.

Clean out your old installations ( do make uninstall if the sources are still available ). Start again, ensure you are either, overwriting the system installation or isolating this one completely.

解决后,请更新错误报告.

Please update the bug report when you have worked it out.