Recently I was working on upgrading the MongoDB on my OS X Lion machine. When I upgraded then tried the mongo client I got this:
dyld: Symbol not found: __ZNK5boost15program_options16validation_error4whatEv Referenced from: /opt/local/bin/mongo Expected in: /opt/local/lib/libboost_program_options-mt.dylib in /opt/local/bin/mongo
So I did a little googling and found this bug report. If you follow the directions and install boost version 1.49.0_0 using Subversion as shown it should fix the issue for you. Here are the commands to install the older and needed boost version:
svn co -r 93341 'http://svn.macports.org/repository/macports/trunk/dports/devel/boost/' cd boost sudo port install
Once you’ve finished try ‘mongo’ again and see if it doesn’t work. If it fails you should try ‘port installed | grep boost’ and then check that boost 1.49.0_0 is the active version. It will be obvious because it will say ‘active’ next to it If not you can do the following:
sudo port activate boost @1.49.0_0
Now try ‘mongo’ again, if this fails I am not sure exactly how to help, sorry!