重申一下,我正在运行第一个OS X 10.10测试版,并尝试使用Homebrew重新安装MongoDB。
运行$ brew install mongodb
后,输出如下:
==> Downloading http://downloads.mongodb.org/src/mongodb-src-r2.6.1.tar.gz
==> /usr/local/opt/scons/bin/scons install --prefix=/usr/local/Cellar/mongodb/2.6.1 -j8 --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --osx-version-min=10.10 --full --64
scons: Reading SConscript files ...
Mkdir(".scons/Darwin/nohost")
usage: scons [OPTION] [TARGET] ...
SCons Error: option --osx-version-min: invalid choice: '10.10' (choose from '10.6', '10.7', '10.8', '10.9')
显然安装包未针对10.10进行配置,因为它尚未发布给公众。
在构建过程中是否有手动绕过此问题的方法?
brew update
命令更新。此外,该帖子表明这只是一个警告,可以忽略:https://github.com/Homebrew/homebrew/issues/29988 - Linus Unnebäcklaunchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
启动mongodb时,出现了“服务已禁用”的消息。我通过brew services restart mongodb
重新启动,虽然出现了“brew services不支持”的提示,但是它成功启动了,一切都很好。 - Angel S. Morenobrew upgrade mongodb
后,我遇到了一个错误:Error: MongoDB not installed
。 - user101289brew install mongodb
而不是brew upgrade mongodb
。 - Lunf