Reputation: 63
I first ran brew install mongodb
, which successfully completed and installed version 3.4.4. I was then able to start the server using brew services start mongodb
, and access the shell via running mongo
.
Then I discovered I need mongodb version 3.2.0. I uninstalled mongo v3.4.4 via brew uninstall mongodb
and verified service was gone and bin files removed.
I then ran brew search mongodb
and found [email protected] in the list, and so ran brew install [email protected]
. This completed successfully, and I was able to start the server using brew services start [email protected]
, which is successful. I then go to access the shell via 'mongo', or '[email protected]' or 'mongo32' and none of these exist.
What should this bin file be named and why can't I find it? with v3.4.4 shell bin executable was /usr/local/bin/mongo - this file doesn't exist after installing '[email protected]'.
Upvotes: 0
Views: 1139
Reputation: 1027
I see it in /usr/local/Cellar/[email protected]/3.2.11/bin/
along with all the other binaries.
I don't know why it isn't symlinked to /usr/local/bin/
like most other programs.
Upvotes: 1