我使用最新的Apple M1
芯片处理器。在安装应用程序时,我一直会遇到错误。
说,
brew install openjdk@11
Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!
Please create a new installation in /opt/homebrew using one of the
"Alternative Installs" from:
https://docs.brew.sh/Installation
You can migrate your previously installed formula list with:
brew bundle dump
需要帮助,准确的步骤,以遵循。
发布于 2020-11-25 00:57:40
值得注意的是,在安装Homebrew之前,您需要安装新的ARM硅片(M1芯片)的M1模拟器。我刚刚通过终端安装了Rosetta2,使用:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
这将安装rosetta2没有额外的按钮点击。
在安装上面的Rosetta2之后,您可以使用Homebrew并安装Homebrew M1芯片:arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
安装了M1 ARM的Homebrew后,请使用以下Homebrew命令安装软件包:arch -x86_64 brew install <package>
https://stackoverflow.com/questions/64963370
复制相似问题