mac上安装pear和yar扩展

使用
brew install php71-yar
提示
No available formula with the name "php71-yar"
 
用brew也搜索不到
通过github,找到yar扩展https://github.com/laruence/yar
发现需要
 
pecl install yar-2.0.3
 
安装pear和pecl
执行安装:
 
sudo php go-pear.phar
 
 
到这一步需要你配置选项;
配置选项1和4就行了;
 
输入1,回车,配置pear路径为:/usr/local/pear
输入4,回车,配置命令路径为:/usr/local/bin
回车两次,其他让其默认,安装完成
pear version 查看版本
安装yar
 
修改配置文件php.ini
 
extension=yar.so
输入php-m
安装成功
 
posted @ 2017-12-16 00:46  _Peter_He  阅读(475)  评论(0编辑  收藏  举报