从M1迁移电脑到intel的brew问题

2024-01-04  本文已影响0人  阿权叔

M1的电脑备份,用迁移助手恢复到intel芯片的电脑
brew安装会出错
重新安装brew也提示错误

Cannot install on Intel processor in ARM default prefix (/opt/homebrew)

看PATH变量,执行的brew是 /opt/homebrew 里的
不同芯片的路径是不同的,m1的是上面的目录
而intel的是 /usr/local路径下的

查看

cat .zprofile

  export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/ #ckbrew
  eval $(/usr/local/Homebrew/bin/brew shellenv) #ckbrew

把 /opt/homebrew 改成 /usr/local/Homebrew

打开的新shell就正常了

上一篇 下一篇

猜你喜欢

热点阅读