pthreads 安装error: pthreads requires ZTS,please re-compile PHP with ZTS enabled
2014-03-28 09:55
791 查看
研发的同事要求安装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
相关文章推荐
- ubuntu在安装android studio出现Error:compileSdkVersion android-x requires compiling with JDK 7问题
- mac上安装android studio出现Error:compileSdkVersion android-x requires compiling with JDK 7问题
- mac上安装android studio出现Error:compileSdkVersion android-x requires compiling with JDK 7问题
- android studio出现Error:compileSdkVersion android-x requires compiling with JDK 7问题
- yum install php-gd 安装php gd库报错Error: php56w-common conflicts with php-common-5.3.3-48.el6_8.x86_64 大
- mplayer安装故障Error:The GUI requires libavcodec with PNG support (needs zlib).
- Linux(CentOS6.5)下编译安装PHP5.6.22时报错”configure: error: ZLIB extension requires gzgets in zlib”的解决方式(确定已经编译安装Zlib,并已经指定Zlib路径)
- android studio出现Error:compileSdkVersion android-x requires compiling with JDK 7问题
- compile php with openssl on mac osx error 填坑
- Error:(3, 22) compileSdkVersion android-22 requires compiling with JDK 7
- 安装PHP出现make: *** [sapi/cli/php] Error 1 解决办法
- 解决:Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.
- 关于安装cocoapods遇到的一些坑(ERROR: Error installing cocoapods: activesupport requires Ruby version >= 2.2)
- 错误Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.
- Android Studio 导入项目 出现安装Error:Cause: failed to find target with hash string 'android-23' 等错误
- 对前端js代码添加测试:Error: jQuery requires a window with a document
- php5.6版本安装出错 make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
- 安装PHPfailed---configure: error: build test failed. Please check the config.log for details
- Bmob之Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the
- Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.