Mongodb and Macports

Posted by Brian in tips (October 20th, 2009)

I just hit a bump in the road with installing MongoDB via Macports 1.8.1.

sudo port install boost pcre++ spidermonkey
sudo port install mongodb

When I ran


I was greeted with

dyld: Library not loaded: /opt/local/lib/libnspr4.dylib
  Referenced from: /opt/local/lib/nspr/libplds4.dylib
  Reason: image not found
Trace/BPT trap

To fix, I simply copied the missing file from its origin to where Mongodb was looking.

 sudo  cp /opt/local/lib/nspr/libnspr4.dylib /opt/local/lib

And all was right.

Comments are closed.

Sorry, the comment form is closed at this time.