Mac安装 pear

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容