Brak takiej beczki: / usr / local / Cellar / mongod

0

Próbuję zainstalować MongoDB na Mac OSx El Capitan.
oto, co daje mi terminal:

$ brew install mongodb --with-openssl
  ...
  Warning: mongodb-3.2.9 already installed, it's just not linked
  ...

$brew link mongod
Error: No such keg: /usr/local/Cellar/mongod

$ ls -l /usr/local/bin/mongod
lrwxr-xr-x  1 fred  admin  37 13 Sep 09:05 /usr/local/bin/mongod -> ../Cellar/mongodb30/3.0.12/bin/mongod

Oto, co otrzymałem podczas instalacji mongod:

$ brew install mongodb --with-openssl
...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/bsondump
Target /usr/local/bin/bsondump
is a symlink belonging to mongodb30. You can unlink it:
  brew unlink mongodb30

To force the link and overwrite all conflicting files:
  brew link --overwrite mongodb

To list all files that would be deleted:
  brew link --overwrite --dry-run mongodb

Possible conflicting files are:
/usr/local/bin/bsondump -> /usr/local/Cellar/mongodb30/3.0.12/bin/bsondump
/usr/local/bin/mongo -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongo
/usr/local/bin/mongod -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongod
/usr/local/bin/mongodump -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongodump
/usr/local/bin/mongoexport -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongoexport
/usr/local/bin/mongofiles -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongofiles
/usr/local/bin/mongoimport -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongoimport
/usr/local/bin/mongooplog -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongooplog
/usr/local/bin/mongoperf -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongoperf
/usr/local/bin/mongorestore -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongorestore
/usr/local/bin/mongos -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongos
/usr/local/bin/mongosniff -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongosniff
/usr/local/bin/mongostat -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongostat
/usr/local/bin/mongotop -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongotop
==> Caveats
To have launchd start mongodb now and restart at login:
  brew services start mongodb
Or, if you don't want/need a background service you can just run:
  mongod --config /usr/local/etc/mongod.conf
==> Summary
🍺  /usr/local/Cellar/mongodb/3.2.9: 17 files, 241.2M

Jak utworzyć link? Dzięki

Fred J.
źródło

Odpowiedzi:

0

Masz literówkę w swoim poleceniu. Piszesz:

brew link mongod

Powinieneś pisać:

brew link mongodb

Brakuje dna końcu tam. linkPolecenie wykonuje beczkę nazwisko, a nie nazwa pliku.

Ian C.
źródło