简体   繁体   中英

Install pthreads for PHP on CentOS

I tried 1 month to install pthreads on my CentOS x64 6.x. My server is running apache2 and php 5.3.3 with Zend Engine 2.3.0. My problem is same with many others people, when I try installing 'pecl install pthreads' it said:

configure: error: in .....-0.0.45(pthread version)

Configure: error: no acceptable C compiler found in $PATH

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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