我正在尝试安装Laravel Valet,它需要php 7.1,但当我运行brew install php71时,我收到以下错误:
==> Pouring php71-7.1.10_21.high_sierra.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink sbin/php-fpm
/usr/local/sbin is not writable.
运行brew link php71
时,我遇到了相同的错误。如果我运行php -v
,我实际上可以看到我当前正在运行PHP 7.1.7。
但是当我运行valet install时,我会得到:
[DomainException]
Unable to determine linked PHP.
我在 /usr/local 中甚至没有 sbin 目录。
您有任何建议吗?
csrutil
或类似工具。 - Mark Setchellmkdir /usr/local/sbin
。 - Mark Setchell