[英]Java Homebrew installation
我正在尝试在我的 Mac 上安装 Homebrew,用于 Java 开发。 我已按照以下说明操作: https://brew.sh ,并粘贴了命令: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
到我的终端。
当我这样做时,会执行一些脚本,然后得到输出:
MacBook-Pro:~ me$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew
Password:
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown me /Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
HEAD is now at ea8be17 Merge pull request #2631 from GauthamGoli/audit_homepage_rubocop
==> Cleaning up /Library/Caches/Homebrew...
==> Migrating /Library/Caches/Homebrew to /Users/me/Library/Caches/Homeb
==> Deleting /Library/Caches/Homebrew...
已经是最新的。
错误:无法链接:
/usr/local/etc/bash_completion.d/brew
请删除这些路径并运行
brew update
。错误:无法链接所有完成、文档和联机帮助页:
权限被拒绝 - (../../../Homebrew/completions/zsh/_brew_cask, /usr/local/share/zsh/site-functions/_brew_cask)
期间失败:/usr/local/bin/brew update --force
MacBook Pro:~我$
所以输出告诉我它已经是最新的,大概是因为我已经尝试安装它一两次?
如何删除运行brew update
的路径,就像它告诉我的那样?
我遇到了这个错误。 修复方法是运行命令sudo chown -R $USER:admin /usr/local/*
如解决此问题的Tech Stacker 博客文章中所述。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.