美文网首页
从M1迁移电脑到intel的brew问题

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

作者: 阿权叔 | 来源:发表于2024-01-04 22:31 被阅读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就正常了

相关文章

网友评论

      本文标题:从M1迁移电脑到intel的brew问题

      本文链接:https://www.haomeiwen.com/subject/abbbndtx.html