yaf之道

Mac安装 pear

2017-10-29  本文已影响0人  悟道皆空

The following instructions installPEARandPECLon Mac OS X under/usr/local/. PECL is bundled with PEAR. So this is as simple as installing PEAR on Mac OS X.

PEAR is PHP’sPackageRepository and makes it easy to download and install PHP tools likePHPUnitandXDebug. I specifically recommend these two for every PHP developer.

Download PEAR

curl -O http://pear.php.net/go-pear.phar

sudo php -d detect_unicode=0 go-pear.phar

Configure and Install PEAR

You should now be at a prompt to configure PEAR.

Type1and pressreturn.

Enter:

/usr/local/pear

Type4and pressreturn.

Enter:

/usr/local/bin

Pressreturn

Verify PEAR

You should be able to type:

pear version

上一篇 下一篇

猜你喜欢

热点阅读