加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

brew链接php71:无法符号链接sbin / php-fpm

发布时间:2020-12-13 13:07:08 所属栏目:PHP教程 来源:网络整理
导读:我正在尝试安装Laravel Valet,这需要php 7.1,但是当我运行brew install php71时,我收到以下错误: == Pouring php71-7.1.10_21.high_sierra.bottle.tar.gzError: The `brew link` step did not complete successfullyThe formula built,but is not symlinked
我正在尝试安装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链接php71时,我得到了同样的错误.如果我运行php -v,我实际上看到我正在运行PHP 7.1.7.

但是,当我运行valet安装时,我得到:

[DomainException]
  Unable to determine linked PHP.

我甚至在/usr/local中都没有sbin目录.

有什么建议?

我首先在本地目录中创建一个新的dir sbin来解决这个问题:
sudo mkdir sbin

那么如果你像我一样使用macOS highSierra 10你需要运行:

sudo chown -R $(whoami) $(brew --prefix)

在这之后

brew link php71

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读