laravel Homebrew PHP 似乎没有链接。- 代客

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/55917317/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 18:20:04  来源:igfitidea点击:

Homebrew PHP appears not to be linked. - Valet

phplaravelphp-7.1laravel-valet

提问by Epsilon47

I had a problem which appeared all of the sudden saying: Unable to determine linked PHP.which I could not solve so I uninstalled valet, php and dependencies. Then I installed fresh php7.1but when I run valet installI get quiet slightly similar error: Homebrew PHP appears not to be linked.

我遇到了一个突然出现的问题: Unable to determine linked PHP.我无法解决,所以我卸载了 valet、php 和依赖项。然后我安装了新的,php7.1但是当我运行时,valet install我安静了一些类似的错误:Homebrew PHP appears not to be linked.

采纳答案by Wouter Van Damme

Homebrew can't find the correct PHP version, have you linked them up properly?

Homebrew 找不到正确的 PHP 版本,您是否正确链接了它们?

brew link php71

brew link php71

回答by zarpio

First, find the PHP version installed via.

首先,找到安装的PHP版本。

brew list

In my case it was [email protected], then

就我而言,它是 [email protected],然后

brew link [email protected] --force --overwrite

and finally

最后

valet install

:)

:)

回答by PT-83

brew link [email protected] --force --overwrite

酿造链接 [email protected] --force --overwrite

That will push this--

那会推动这个——

If you need to have this software first in your PATH instead consider running: echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.bash_profile

如果您需要先在 PATH 中安装此软件,请考虑运行: echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile echo 'export PATH=" /usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.bash_profile

I ran both independently then tried valet install (worked like a charm).

我独立运行,然后尝试代客安装(就像一个魅力)。

回答by SirPhemmiey

brew install [email protected]

then link it

然后链接它

brew link [email protected] --force --overwrite