Install PEAR and PECL on Mac OS X
2015-12-29 15:13
901 查看
The following instructions install PEAR and PECL on
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’s Package Repository and makes it easy to download and install PHP tools like PHPUnit and XDebug.
I specifically recommend these two for every PHP developer.
Type 1 and press return.
Enter:
Type 4 and press return.
Enter:
Press return
Eventually, if you use any extensions or applications from PEAR, you may need to update PHP’s
include path.
参考文章地址:http://jason.pureconcepts.net/2012/10/install-pear-pecl-mac-os-x/
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’s Package Repository and makes it easy to download and install PHP tools like PHPUnit and XDebug.
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.Type 1 and press return.
Enter:
/usr/local/pear
Type 4 and press return.
Enter:
/usr/local/bin
Press return
Verify PEAR
You should be able to type:pear version
Eventually, if you use any extensions or applications from PEAR, you may need to update PHP’s
include path.
参考文章地址:http://jason.pureconcepts.net/2012/10/install-pear-pecl-mac-os-x/
相关文章推荐
- phpstorm yii 方法提示
- How to Install PHP intl extension on OS X
- php 的5 大 新特性!
- 捣蛋phpwind控制器注入
- PHP命名空间(namespace)的使用详解
- PHP中一个好用的函数parse_url
- yii2 migrate 数据库迁移
- WordPress中用于创建以及获取侧边栏的PHP函数讲解
- rhel6配置vsftpd(debian8很简单)
- yii简单的单表查询
- php通过curl下载远程图片实例
- ATPCS, AAPCS
- ftp文件下载
- PHP正则验证类
- 【PHP入门篇】 WAMPServer集成环境安装与使用--慕课网【学习总结】
- php当前使用的ini配置文件
- PHP添加文本编辑器nicEditor
- PHP 性能分析第三篇: 性能调优实战
- Js实现类似PHP中的in_array方法
- 让你的PHP也能执行JS并获得JS函数的返回值