Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dyld: Symbol not found: _syslog$DARWIN_EXTSN: mongoDb

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?

like image 864
Aslam Ansari Avatar asked Dec 06 '25 14:12

Aslam Ansari


1 Answers

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

like image 56
Balogun Ridwan Ridbay Avatar answered Dec 08 '25 08:12

Balogun Ridwan Ridbay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!