简体   繁体   English

在CentOS上为PHP安装pthreads

[英]Install pthreads for PHP on CentOS

I tried 1 month to install pthreads on my CentOS x64 6.x. 我尝试了1个月在我的CentOS x64 6.x上安装pthread。 My server is running apache2 and php 5.3.3 with Zend Engine 2.3.0. 我的服务器正在使用Zend Engine 2.3.0运行apache2和php 5.3.3。 My problem is same with many others people, when I try installing 'pecl install pthreads' it said: 我的问题和其他许多人一样,当我尝试安装“ pecl install pthreads”时说:

configure: error: in .....-0.0.45(pthread version) 配置:错误:在.....- 0.0.45(pthread版本)中

Configure: error: no acceptable C compiler found in $PATH 配置:错误:在$ PATH中找不到可接受的C编译器

I try to google but not luck. 我尝试谷歌,但没有运气。 Hope someone can advance it to me. 希望有人可以把它交给我。 Thanks a lot Sorry for bad English 非常感谢对不起的英语

You need to install a compiler and build tools, something like 您需要安装编译器和构建工具,例如

yum install gcc gcc-c++ autoconf automake

Should get you a working build environment. 应该可以为您提供一个工作环境。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM