I have just installed mongoDb in my macOs Sierra version 10.12.6 with command brew install [email protected] and start the service using command brew services start [email protected].
I got message "Successfully started mongodb-community (label: homebrew.mxcl.mongodb-commu", after which I run the command mongod and I got error message:
Macs-MacBook-Pro:~ mac$ mongod
dyld: Symbol not found: _syslog$DARWIN_EXTSN
Referenced from: /usr/local/bin/mongod (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
in /usr/local/bin/mongod
Abort trap: 6
I thought it's happening because of older version of my macOs so, after this I have install and tried with the following but got same error
brew install [email protected]
brew install [email protected] and
brew install [email protected]
but got same error message:
Macs-MacBook-Pro:~ mac$ mongod
dyld: Symbol not found: _syslog$DARWIN_EXTSN
Referenced from: /usr/local/bin/mongod (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
in /usr/local/bin/mongod
Abort trap: 6
What can I try to overcome this?
Check Mongodb macOs installation instructions, it stated that MongoDB 4.4 Community Edition supports macOS 10.13 or later and this was also stated in the error message you got. I would recommend you install version 4.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With