如何在Apple M1芯片上安装Mongodb [英] How to install Mongodb on Apple M1 chip

查看:169
本文介绍了如何在Apple M1芯片上安装Mongodb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照 mongodb 官方教程.但是我遇到了这个问题.

I'm trying to install Mongodb community server on macbook air with the new M1 chip following the official mongodb tutorial. However im running into this problem.

~ ❯❯❯ brew install mongodb-community@4.4                                
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

在 m1 上安装 mongodb 的任何帮助都会非常有帮助

Any help with installing mongodb on m1 would be very helpful

推荐答案

我在 M1 MacBook Pro 上遇到了同样的问题.我将终端设置更改为 Rosetta,然后尝试安装 brew.

I was getting the same problem, on the M1 MacBook Pro. I changed the terminal settings to Rosetta and then tried to install the brew.

对于此过程,在终端上用双指点按并单击获取信息,然后在菜单中单击使用 Rosetta 打开.

For this process, tap with double fingers on the terminal and click on Get Info, and in the menu, click on Open using Rosetta.

现在再次重新启动终端并尝试在终端中使用此链接再次安装 brew.

Now restart the terminal again and try to install the brew again with this link in the terminal.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

现在你的 brew 已经安装好了,现在用它来安装 MongoDB,它会顺利运行.您可以查看文档以了解进一步的过程,因为它不会产生更多问题:https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/

Now your brew is installed, use this to install MongoDB now, it will work smoothly. You can check the documentation for further process, as it won't make more issues: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/

这篇关于如何在Apple M1芯片上安装Mongodb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆