brew mongodb 安装 使用 brew update

2022/8/24 2:22:58

本文主要是介绍brew mongodb 安装 使用 brew update,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

参考:
菜鸟教程 https://www.runoob.com/mongodb/mongodb-osx-install.html
https://juejin.cn/post/6974036633205080095


  • 简化
wuyueping@wuyueping ~ % xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
wuyueping@wuyueping ~ % brew tap mongodb/brew
wuyueping@wuyueping ~ % brew install mongdodb-comminity@6.0
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "mongdodb-comminity@6.0".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
wuyueping@wuyueping ~ % brew install mongodb-community@6.0 
==> Installing mongodb-community from mongodb/brew
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula with the name "mongosh" (dependency of mongodb/brew/mongodb-community).
It was migrated from mongodb/brew to homebrew/core.
wuyueping@wuyueping ~ % echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/' >> ~/.zshrc
wuyueping@wuyueping ~ % source ~/.zshrc 
wuyueping@wuyueping ~ % brew update -v
......
==> Outdated Formulae
consul          ghc             openjdk         python@3.9      redis           sqlite          xz
gdbm            jmeter          openssl@1.1     readline        sphinx-doc      tcl-tk          zookeeper

You have 14 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
wuyueping@wuyueping ~ % brew install mongodb-community@6.0
==> Downloading https://fastdl.mongodb.org/tools/db/mongodb-database-tools-macos-x86_64-100.6.0.zip
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//brotli-1.0.9.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//c-ares-1.18.1_1.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//icu4c-70.1.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//libnghttp2-1.48.0.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//libuv-1.44.2.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//ca-certificates-2022-07-19_1.all.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//openssl%401.1-1.1.1q.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//node%4016-16.17.0.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//mongosh-1.5.4.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-6.0.1.tgz
######################################################################## 100.0%
==> Installing mongodb-community from mongodb/brew
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 12.4.

==> Installing dependencies for mongodb/brew/mongodb-community: mongodb-database-tools, brotli, c-ares, icu4c, libnghttp2, libuv, ca-certificates, openssl@1.1, node@16 and mongosh
==> Installing mongodb/brew/mongodb-community dependency: mongodb-database-tools
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 12.4.



	


这篇关于brew mongodb 安装 使用 brew update的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程