使用Homebrew安装MongoDB [英] Installing MongoDB with Homebrew

查看:103
本文介绍了使用Homebrew安装MongoDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对MongoDB相对较新,正在尝试使用Homebrew在Mac上安装MongoDB,但出现以下错误:

I'm relatively new to MongoDB and am trying to install MongoDB on my Mac with Homebrew, but I'm getting the following error:

Error: No available formula with the name "mongodb" 
==> Searching for a previously deleted formula (in the last 
month)...
Warning: homebrew/core is shallow clone. To get complete history 
run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

我跑了 brew update 然后 brew install mongodb

推荐答案

公式mongodb已从自制软件核心中删除.从homebrew-core中检查 pr-43770

Formula mongodb has been removed from homebrew-core. Check pr-43770 from homebrew-core

对我们的用户:如果您是因为mongodb停止为您工作而来的,那么我们已将其从Homebrew核心公式中删除,因为它已迁移到非开源许可证.

幸运的是,mongodb团队正在维护自定义的Homebrew水龙头.您可以卸载旧的mongodb,然后从新的水龙头重新安装新的mongodb.

Fortunately, the team of mongodb is maintaining a custom Homebrew tap. You can uninstall the old mongodb and reinstall the new one from the new tap.

brew services stop mongodb
brew uninstall mongodb

brew tap mongodb/brew
brew install mongodb-community
brew services start mongodb-community

检查 mongodb/homebrew-brew 以获得更多信息.

这篇关于使用Homebrew安装MongoDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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