Nessun keg: / usr / local / Cellar / mongod

0

Sto cercando di installare MongoDB su Mac OSx El Capitan.
ecco cosa mi dà il terminale:

$ 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

Ecco cosa ho ottenuto durante l'installazione di 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
                    
posta Fred J. 29.09.2016 - 02:09
fonte

1 risposta

0

Hai un errore nel tuo comando. Stai scrivendo:

brew link mongod

Dovresti digitare:

brew link mongodb

Manca un d alla fine lì. Il comando link accetta un nome di keg, non un nome di file.

    
risposta data 29.09.2016 - 02:43
fonte

Leggi altre domande sui tag