Monday, February 14, 2011

Getting PHP's pcntl working on Snow Lepard

(make sure you've installed Apple's developer tools)


1. Check your version you have installed and download the PHP source code.

$ php -v
PHP 5.3.3 (cli) (built: Aug 22 2010 19:41:55)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans

$ curl -O http://us.php.net/distributions/php-5.3.3.tar.gz


2. unpack, phpize, configure, make, make install

$ tar -xzvf php-5.3.3.tar.gz
$ cd php-5.3.3/ext/pcntl/
$ phpize
$ ./configure
$ make
$ sudo make install


3. Add "extension=pcntl.so" to your /etc/php.ini

4. Confirm

$ php -i | grep pcntl
pcntl
pcntl support => enabled


Done

2 comments:

Eric Murano said...

Thanks very much for this!

I'm still using the OS X default PHP and I want to have the most up to date version. If I just compile and install PHP from source will that overwrite the default install will that mess things up?

yardenamacak said...

There are two distinct forms of wager can even make|you may make} when taking part in} on-line roulette – inside and out of 바카라사이트 doors bets. World-famous roulette software developers energy the most effective roulette websites in America. To make their sport catalog more diverse, the operators usually include tables and variations by different suppliers. So the identical variation of roulette additionally be} provided by a couple of of} developers. The payouts of all roulette bets are the returns of your preliminary wager. Each dollar you wager will theoretically deliver you a sure sum of money back if your wager wins.