osx - Tried installing MongoDB with brew and it says "Error: Permission denied - (mongod.conf, /usr/local/etc/mongod.conf)" -
using mac osx 10.10.4 on 13' macbook air
typed in 'brew update' mongo docs said , updated typed 'brew install mongodb' , took ages
error: permission denied - (mongod.conf, /usr/local/etc/mongod.conf) this console said leading point, in case helps:
joshuas-air:~ josh$ brew install mongodb ==> downloading https://homebrew.bintray.com/bottles/mongodb-3.0.4.yosemite.bottle.tar.gz ######################################################################## 100.0% ==> pouring mongodb-3.0.4.yosemite.bottle.tar.gz error: permission denied - /usr/local/etc/mongod.conf warning: bottle installation failed: building source. ==> installing mongodb dependency: scons ==> downloading https://homebrew.bintray.com/bottles/scons-2.3.5.yosemite.bottle.tar.gz ######################################################################## 100.0% ==> pouring scons-2.3.5.yosemite.bottle.tar.gz 🍺 /usr/local/cellar/scons/2.3.5: 208 files, 2.4m ==> downloading https://fastdl.mongodb.org/src/mongodb-src-r3.0.4.tar.gz ######################################################################## 100.0% ==> cloning https://github.com/mongodb/mongo-tools.git updating /library/caches/homebrew/mongodb--github.com-mongodb-mongo-tools--git ==> checking out tag r3.0.4 ==> ./build.sh ==> /usr/local/opt/scons/bin/scons install --prefix=/usr/local/cellar/mongodb/3.0.4 -j4 --osx-version-min=10.10 --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --use-new-tools error: permission denied - (mongod.conf, /usr/local/etc/mongod.conf) joshuas-air:~ josh$ any @ appreciated.
my guess permissions on folder /usr/local/ not set 755 or 777. can change permissions or try run command root:
sudo brew install mongodb
Comments
Post a Comment