>백엔드 개발 >PHP 튜토리얼 >mac - homebrew/php/php56-redis josegonzalez/php/php56-redis?

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

WBOY
WBOY원래의
2016-06-06 20:32:441413검색

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

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.