jandot / ruby-ensembl-api

A ruby API to the Ensembl database
http://bioruby-annex.rubyforge.org
40 stars 17 forks source link

Missing the mysql2 gem #4

Open sciguy opened 13 years ago

sciguy commented 13 years ago

With ActiveRecord 3, I get the following error when trying to connect:

/Users/jason/.rvm/gems/ruby-1.8.7-p302/gems/activerecord-3.0.3/lib/active_record/connection_adapters/mysql_adapter.rb:22:in `mysql_connection': !!! Missing the mysql2 gem. Add it to your Gemfile: gem 'mysql2' (RuntimeError)

I was able to correct this by changing the DB_ADAPTER to 'mysql2' in the /lib/ensembl/db_connection.rb file.

wwood commented 13 years ago

I managed to workaround this by installing the mysql gem, rather than the mysql2 gem. I'm not sure if having the mysql2 gem interferes with this, but I got it to work (on 1.9.2 at least).

wwood commented 13 years ago

@jandot: should the mysql gem be a gem dependency or ruby-ensembl-api?