brewのバージョンを確認
1 2 |
$ brew -v Homebrew 0.9.5 |
一応、Homebrew自体をUP。
1 2 3 4 5 6 |
$ brew update warning: unable to unlink .yardopts: Permission denied warning: unable to unlink CONTRIBUTING.md: Permission denied warning: unable to unlink SUPPORTERS.md: Permission denied fatal: cannot create directory at '.github': Permission denied Error: Failure while executing: git pull --quiet origin refs/heads/master:refs/remotes/origin/master |
エラー発生。
1 2 |
sudo chown -R $(whoami):admin /usr/local cd $(brew --prefix) && git fetch origin && git reset --hard origin/master |
再度。
1 |
brew update |
確認。
1 2 |
$ brew -v Homebrew >1.1.0 (no git repository) |
オッケーです。
1 |
brew install mongodb |
確認。
1 2 3 4 5 6 7 8 9 |
$ mongo --version MongoDB shell version v3.4.1 git version: 5e103c4f5583e2566a45d740225dc250baacfbd7 OpenSSL version: OpenSSL 1.0.2k 26 Jan 2017 allocator: system modules: none build environment: distarch: x86_64 target_arch: x86_64 |
オッケー。
1 |
sudo mkdir -p /data/db |
1 |
sudo chown user /data/db/ |