mongocli 是否支持 Apple M1 芯片的公式 URL? [英] Does the mongocli support a formula URL for Apple M1 chips?

查看:112
本文介绍了mongocli 是否支持 Apple M1 芯片的公式 URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 安装说明,运行时:

brew tap mongodb/brew

我收到以下错误:

Error: Invalid formula: /opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/mongocli.rb

formulae require at least a URL

Error: Cannot tap mongodb/brew: invalid syntax in tap!

我确实遵守了先决条件(更新了 xcodebrew).我确保运行 brew updatebrew doctor.

I do comply with prerequisites (updated xcode and brew). I made sure to run brew update and brew doctor.

此时,我在 mongodb/homebrew-brew repo 上寻找答案,看到了一个非常最近的 mongocli 提交.

At this point, I looked for answers on the mongodb/homebrew-brew repo and saw a very recent commit for the mongocli.

显然,它定义了带有 Intel 芯片但没有提及 Apple M1 芯片的 Mac 和 Linux 机器的 URL.目前这阻止了我点击 mongodb.您是否知道任何解决方法,或者我是否在某处犯了错误?

Apparently, it defines URLs for Mac and Linux machines that have Intel chips but no mention of Apple M1 chips. This is blocking me from tapping mongodb at the moment. Would you know of any workaround or am I making a mistake somewhere?

推荐答案

刚遇到同样的问题...

Just had the same problem ...

前往 Finder >实用程序并右键单击终端并选择获取信息";找到选项使用 Rosetta 打开"并检查它.

Go to Finder > Utilities and right click on Terminal and select "Get Info" Find the option "Open using Rosetta" and check it.

打开新终端并运行brew tap mongodb/brew";完成后关闭终端并取消选中使用 Rosetta 打开",再次打开终端,然后运行brew install mongodb-community@4.4".

Open new Terminal and run "brew tap mongodb/brew" After it completes close the terminal and uncheck "Open using Rosetta", open Terminal again and then run "brew install mongodb-community@4.4".

这对我有用,并且安装了 MongoDB.

That worked for me and MongoDB is installed.

这篇关于mongocli 是否支持 Apple M1 芯片的公式 URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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