On Monday, June 25, 2012 10:25:50 PM UTC-7, Ravi wrote: > > Hi, > > Is Sequel is compatible with ruby 1.9.1? because I have a test and it runs > perfectly with ruby 1.8.7 but the same test error out using ruby 1.9.1. > Following is the error: > /ruby/1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in > `require': LoadError: cannot load such file -- mysql > (Sequel::AdapterNotFound) > from > /ruby/1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in > `require' > from /gem/gems/sequel-3.36.1/lib/sequel/adapters/mysql.rb:4:in > `rescue in <top (required)>' > from /gem/gems/sequel-3.36.1/lib/sequel/adapters/mysql.rb:1:in > `<top (required)>' > from > /ruby/1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in > `require' > from > /ruby/1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in > `require' > from /gem/gems/sequel-3.36.1/lib/sequel/core.rb:356:in `block in > tsk_require' > from /gem/gems/sequel-3.36.1/lib/sequel/core.rb:100:in `block in > check_requiring_thread' > from <internal:prelude>:10:in `synchronize' > from /gem/gems/sequel-3.36.1/lib/sequel/core.rb:97:in > `check_requiring_thread' > from /gem/gems/sequel-3.36.1/lib/sequel/core.rb:356:in > `tsk_require' > from > /gem/gems/sequel-3.36.1/lib/sequel/database/connecting.rb:25:in > `adapter_class' > from > /gem/gems/sequel-3.36.1/lib/sequel/database/connecting.rb:55:in `connect' > from /gem/gems/sequel-3.36.1/lib/sequel/core.rb:147:in `connect' > > That's not ruby 1.9.1 (which Sequel doesn't support), that's ruby 1.9.3 (which Sequel does support). Your problem is you are attempting to use the mysql adapter without installing the mysql gem. Install the mysql gem and the problem should go away.
Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/sequel-talk/-/PBKHTCOa8WEJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
