Sunday, September 2, 2012

Installing MongoDB with Homebrew

Installation of mysql and mongodb with brew sometimes could end with an access error, for example:

Error: Permission denied - /usr/local/var/log/mongodb


Actually, there is no proper decision yet, so the short term solution might be the following:


ls -al /usr/local/bin/brew #confirm brew ownership

sudo chown root:wheel /usr/local/bin/brew
sudo brew install mongodb
sudo chown <your user>:<your group> /usr/local/bin/brew  #revert ownership

0 коммент.:

Post a Comment

Powered by Blogger.