I''m running through the Depot tutorial on Agile Development w/ Rails (2nd Edition). I''ve created a DB and connect to it (and create dummy tables) via terminal with no problem. Everything is cool up until page 72 where I''m asked to run a Rake migration from the command line: rake db:migrate returns: rake aborted! Please install the msql adapter: `gem install activerecord-msql- adapter` (no such file to load -- active_record/connection_adapters/ msql_adapter) If I take the suggestion and type: gem install activerecord-msql-adapter returns: ERROR: could not find activerecord-msql-adapter locally or in a repository Running the migration with --trace returns: (in /Users/chad/src/ruby/depot) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! Please install the msql adapter: `gem install activerecord-msql- adapter` (no such file to load -- active_record/connection_adapters/ msql_adapter) /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:231:in `establish_connection'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:215:in `establish_connection'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:208:in `establish_connection'' /opt/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb: 234:in `initialize_database'' /opt/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:94:in `process'' /opt/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in `send'' /opt/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in `run'' /Users/chad/src/ruby/depot/config/environment.rb:13 /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /opt/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/tasks/misc.rake:3 /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_chain'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in `invoke_with_call_chain'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31 /opt/local/bin/rake:19:in `load'' /opt/local/bin/rake:19 Anyone have any ideas? Thanks in advance, RoRNoob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Apr-24 07:51 UTC
Re: Rake Aborted - Error Message Suggests Fix, Epic Fail
On Apr 23, 10:13 pm, RoRNoob <rorn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m running through the Depot tutorial on Agile Development w/ Rails > (2nd Edition). I''ve created a DB and connect to it (and create dummy > tables) via terminal with no problem. Everything is cool up until page > 72 where I''m asked to run a Rake migration from the command line: > > rake db:migrate > > returns: > > rake aborted! > Please install the msql adapter: `gem install activerecord-msql- > adapter` (no such file to load -- active_record/connection_adapters/ > msql_adapter) >Looks like you typed msql instead of mysql in your database.yml Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yes - that was it. Thanks man. On Apr 24, 12:51 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Apr 23, 10:13 pm,RoRNoob<rorn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m running through the Depot tutorial on Agile Development w/ Rails > > (2nd Edition). I''ve created a DB and connect to it (and create dummy > > tables) via terminal with no problem. Everything is cool up until page > > 72 where I''m asked to run a Rake migration from the command line: > > > rake db:migrate > > > returns: > > > rake aborted! > > Please install the msql adapter: `gem install activerecord-msql- > > adapter` (no such file to load -- active_record/connection_adapters/ > > msql_adapter) > > Looks like you typed msql instead of mysql in your database.yml > > Fred--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---