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 php@7.1...
Installing dnsmasq...
[dnsmasq] is not installed, installing it now via Brew...
Restarting dnsmasq...
Restarting nginx...
Valet installed successfully!