mac安裝valet虛擬環(huán)境后提示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
再次執(zhí)行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!