Laravel代客链接PHP错误 [英] Laravel valet linked php error
问题描述
我出错了.
$ valet install
[DomainException]
Unable to determine linked PHP.
install
哪个"命令返回:
$ which php
/usr/local/Cellar/php70/7.0.6/bin/php
推荐答案
自制程序在/usr/local/bin
中创建(或尝试创建)符号链接.
Homebrew creates (or attempts to create) symlinks in /usr/local/bin
.
首先运行以下命令来尝试创建链接.
Start by running the following to attempt to create a link.
brew link php70
它将为您提供有关是否成功的信息.有时权限有问题,您可以使用
It'll give you information as to whether or not it was successful. Occasionally permissions are problematic and you can resolve this with
sudo chown -R `whoami`:admin /usr/local/bin
然后尝试再次运行brew brew命令.
Then try running the brew link command again.
或者,brew link
可能会为您提供说明,或者您可以使用brew doctor
获取有关Homebrew安装中存在的任何问题的报告.
Alternately brew link
may give you instructions, or you can use brew doctor
to get a report on any problems which exist with your Homebrew installation.
运行ls -la /usr/local/bin | grep bin/php$
后,如果设置正确,您应该会看到类似于
When it's set up properly after running ls -la /usr/local/bin | grep bin/php$
you should see something similar to
lrwxr-xr-x 1 YOURUSER admin 29 10 May 21:40 php -> /usr/local/Cellar/php70/7.0.6/bin/php
这篇关于Laravel代客链接PHP错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!