valet install error

mac安装valet虚拟环境后提示Unable to determine linked PHP

$ valet install
Stopping nginx...
Installing nginx configuration...
Installing nginx directory...
Updating PHP configuration...

In Brew.php line 182:

  Unable to determine linked PHP.

解决:

brew安装的的php软链接到/usr/local/bin/php

ln -s /usr/local/opt/php71/bin/php /usr/local/bin/php

再次执行valet intall:

$ valet install
Stopping nginx...
Installing nginx configuration...
Installing nginx directory...
Updating PHP configuration...
Restarting [email protected]...
Installing dnsmasq...
[dnsmasq] is not installed, installing it now via Brew...
Restarting dnsmasq...
Restarting nginx...

Valet installed successfully!

你可能感兴趣的:(valet install error)