homebrew/php/php56-redis josegonzalez/php/php56-redis?


请问mac pro提示
$ brew install php56-redis
Error: Formulae found in multiple taps:
* homebrew/php/php56-redis
* josegonzalez/php/php56-redis

Please use the fully-qualified name e.g. homebrew/php/php56-redis to refer the formula.
是啥意思啊? 是说 homebrew/php和josegonzalez/php两个不同的啥东西吗?不懂,第一次用mac。

phpredis homebrew mac php

二次元追随者 9 years ago

brew untap josegonzalez/homebrew-php

塞克蒂·安 answered 9 years ago

你要先tap


 bash


 brew tap homebrew/php
brew install php56-redis

当然,实际上真正要运行,首先你要先安装homebrew/php下的php56,所以:


 bash


 brew tap homebrew/php
brew install php56 #你可能装之前希望看看php56的参数,那么通过brew options php56来查看
brew install php56-redis

安装好的php会在/usr/local/Cellar/php56下面,/usr/local/bin和/usr/local/sbin下面你可以分别见到php和php-fpm的符号链接,如果你希望默认使用brew安装的php,那么需要修改你的环境变量,以~/.bashrc为例,在里面加入


 bash


 export PATH="/usr/local/bin:/usr/local/sbin:$PATH"

donsiu answered 9 years ago

Your Answer