mysql2 ruby gem and Mac OS X: image not found

If you are using the mysql2 ruby gem on Mac OS X you may have run into this problem before. > require 'mysql2' LoadError: dlopen(mysql2-0.2.7/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.16.dylib Referenced from: mysql2-0.2.7/lib/mysql2/mysql2.bundle Reason: image not found – mysql2-0.2.7/lib/mysql2/mysql2.bundle So far the only solution I have found online is to use install_name_tool to update the […]