我在使用brew install mongodb
安装mongodb时出现问题。终端中的错误说:
curl: (7) Couldn't connect to server
Error: Failed to download resource "mongodb"
Warning: Bottle installation failed: building from source.
==> Installing dependencies for mongodb: go, scons
==> Installing mongodb dependency: go
curl: (7) Couldn't connect to server
Error: Failed to download resource "go"
Warning: Bottle installation failed: building from source.
curl: (7) Couldn't connect to server
Trying a mirror...
curl: (7) Couldn't connect to server
Error: Failed to download resource "go"
这可能(我在关于同一问题的其他回复中读到这个)是由防火墙或没有permise访问引起的。我在Mac OS X上。
答案 0 :(得分:-1)
首先运行 " brew update"命令 然后用sudo运行brew install Sudo brew安装mongodb