tags:

views:

877

answers:

1

I am trying to enable pcntl on my php on centos. I see I am suppose to do a ./configure make build but have not ever done it. Could someone give me some direction?

A: 

Hi,

If you want/need to compile PHP by yourself, you might want to take a look at Apache 2.0 on Unix systems : the process is not too complex, but it can take some time (say between one and two hours) if it's your firt time.

If you have more specific questions, don't hesitate to ask :-)


As you are using a distribution that provides RPM, though, one question comes to my mind : is there no RPM providing the pcntl extension, that you could use instead of re-compiling yourself ?
(I don't have a CentOS machine to test, sorry)

Pascal MARTIN
I did not think about looking for a rpm. I need these extensions. * PCNTL: --enable-pcntl * POSIX: --enable-posix * Sockets: --enable-sockets * SHMOP: --enable-shmop * SysVSem: --enable-sysvsem
David
I tried to find an PHP5 RPM but no luck. I ran ./configure and got this<pre>./configureloading cache ./config.cachechecking for Cygwin environment... nochecking for mingw32 environment... nochecking for egrep... grep -Echecking for a sed that does not truncate output... /bin/sedchecking host system type... i686-pc-linux-gnuchecking target system type... i686-pc-linux-gnuchecking for gcc... nochecking for cc... noconfigure: error: no acceptable cc found in $PATH</pre>
David
Figured out cc or gcc was not installed.
David
This worked:* Downloaded newest php5.3 by wget http://url at php.net* I unzipped the file* Went to folder php-5.3.0* ran ./configure -enable-pcntl -enable-posix -enable-sockets -enable-shmop -enable-sysvsem* Found gcc was not installed* Installed gcc* Ran config again* Found libxml2 was not installed* Rand config again* PHP5.3.0 Complete* make* make test* make install
David
kind of what I meant by "can take some time" : it's often about trial and error with the required libs ^^ Still, nice to know you succedeed !
Pascal MARTIN