Today while installing a little sinatra app into a friend macbook, i ran into the following piece of hell:
`establish_connection’: Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (no such file to load — active_record/connection_adapters/mysql2_adapter) (RuntimeError)
As i couldn’t possibly find that gem, i started searching the internet after a solution. About an hour later (and several frustrated attempts) i was finally able to solve the problem by issuing the following command:
sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib
Note that you need to replace
Hope it helps!