pthreads 安装error: pthreads requires ZTS,please re-compile PHP with ZTS enabled
来源:互联网 发布:windows android语言 编辑:程序博客网 时间:2024/06/05 02:29
研发的同事要求安装php pthread扩展!
tar zxvf pthreads-0.0.44.tgz
cd pthreads-0.0.44
/usr/local/webserver/php/bin/phpize
./configure --with-php-config=/usr/local/webserver/php/bin/php-config
##但在configure时却出错,提示:
configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled
原因: 我在编译php的时候没有加入 --enable-maintainer-zts ,这个必须要重新编译php,不能动态加载的!
于是我重新编译了php,在原来的编译参数基础上那个加入了 --enable-maintainer-zts ,重新编译安装php即可!
make
make install
并在php.ini中加入:
extension_dir = "/usr/local/webserver/php/lib/php/extensions/no-debug-zts-20100525" ##必须和你的目录相对应!
extension =pthreads.so
重启php服务!/etc/init.d/php-fpm restart
tar zxvf pthreads-0.0.44.tgz
cd pthreads-0.0.44
/usr/local/webserver/php/bin/phpize
./configure --with-php-config=/usr/local/webserver/php/bin/php-config
##但在configure时却出错,提示:
configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled
原因: 我在编译php的时候没有加入 --enable-maintainer-zts ,这个必须要重新编译php,不能动态加载的!
于是我重新编译了php,在原来的编译参数基础上那个加入了 --enable-maintainer-zts ,重新编译安装php即可!
make
make install
并在php.ini中加入:
extension_dir = "/usr/local/webserver/php/lib/php/extensions/no-debug-zts-20100525" ##必须和你的目录相对应!
extension =pthreads.so
重启php服务!/etc/init.d/php-fpm restart
0 0
- pthreads 安装error: pthreads requires ZTS,please re-compile PHP with ZTS enabled
- php 5.4 安装 pthreads
- php 多线程 pthreads安装
- php下pthreads扩展安装
- php安装pthreads多线程扩展
- Pthreads
- pthreads
- pthreads
- wamp安装pthreads扩展(PHP多线程)
- wamp安装pthreads扩展(PHP多线程)
- wamp安装pthreads扩展(PHP多线程)
- PHP安装pthreads多线程扩展[windows篇]
- windows下安装php的pthreads扩展
- iis7.0安装php的pthreads扩展
- PHP 多线程扩展 pthreads
- php pthreads 列子:1
- PHP + pthreads + memcached
- PHP的pthreads扩展
- Fatal error: Call to undefined function apc_fetch() in /var/www/lib/cakephp-2.1.1/lib/Cake/Cache/Eng
- Android 中的接口回调
- ASCII码表
- C#开发——窗体去边框之后无法移动解决办法
- 【人文】第一部分对保不住秘密的人,要保持距离
- pthreads 安装error: pthreads requires ZTS,please re-compile PHP with ZTS enabled
- 将文字显示在图片上面,并使文字背景半透明
- jquery获取颜色,ie和ff的区别
- 【C++专题】static_cast, dynamic_cast, const_cast探讨
- ibatis返回List<String>
- UIAlertview中自定义ALert, confirm, promopt
- Can't load AMD 64-bit .dll on a IA 32-bit platform
- linux下vi命令大全
- Oracle创建表空间和表空间用户的步骤