The following instructions install PEAR and PECL On Mac OS X under/usr/local/. PECL is bundled with PEAR. As simple as installing PEAR on MAC OS x.
PEAR is php 's package Repository and makes it easy-to-download and install PHP tools like /c7>phpunit and XDebug. I specifically recommend these II for every PHP developer.
Download PEAR
curl -O http://pear.php.net/go-pear.pharsudo php -d detect_unicode=0 go-pear.phar
Configure and Install PEAR
You should now is at a prompt to configure PEAR.
- Type and press. 1 return
Enter:
/usr/local/pear
- Type and press. 4 return
Enter:
/usr/local/bin
- Pressreturn
Verify PEAR
You should is able to type:
pear version
Eventually, if you use any extensions or applications from the PEAR, you could need to update PHP's include path.
Reference article address: http://jason.pureconcepts.net/2012/10/install-pear-pecl-mac-os-x/
The above describes the install PEAR and PECL on Mac OS X, including aspects of the content, I hope to be interested in PHP tutorial friends helpful.