holman/play — Issue #66: mysql2 error on install?
Author: chrisdrackett
Created: 2011-12-07 21:09:13+00:00
State: open

I had been running play without issue on my laptop, but decided to move it to our work server (mac running 10.7.2 with nothing installed)

I installed mysql and then attempted to install play using the system ruby, but always run into the following:

```
+ Migrating your database.
/Library/Ruby/Gems/1.8/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:71:in `establish_connection': Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (dlopen(/Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (RuntimeError)
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle
Reason: image not found - /Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle)
from /Users/cwd/play/lib/play/app.rb:29
from /Library/Ruby/Gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1273:in `configure'
from /Users/cwd/play/lib/play/app.rb:25
from ./bin/../lib/play.rb:18:in `require'
from ./bin/../lib/play.rb:18
from bin/play:6:in `require'
from bin/play:6
```