Home >Backend Development >PHP Tutorial >mac - homebrew/php/php56-redis josegonzalez/php/php56-redis?

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

WBOY
WBOYOriginal
2016-06-06 20:32:441413browse

请问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。

回复内容:

请问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。

你要先tap

<code>bash</code><code>brew tap homebrew/php
brew install php56-redis
</code>

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

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

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

<code>bash</code><code>export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
</code>

brew untap josegonzalez/homebrew-php

brew untap josegonzalez/homebrew-php

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn