$ bundle show mysql /home/bhas/.rvm/gems/ruby-1.9.2-p136/gems/mysql-2.8.1 but when I run $ rake db:migrate (in /home/bhas/projects/schapp) rake aborted! no such file to load -- mysql-2.8.1 /home/bhas/projects/schapp/Rakefile:4:in `<top (required)>'' (See full trace by running task with --trace) Please help. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 4 Feb 2011, at 07:54, hari <harihara.bhasker-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> $ bundle show mysql > /home/bhas/.rvm/gems/ruby-1.9.2-p136/gems/mysql-2.8.1 > > but when I run > > $ rake db:migrate > (in /home/bhas/projects/schapp) > rake aborted! > no such file to load -- mysql-2.8.1 > /home/bhas/projects/schapp/Rakefile:4:in `<top (required)>'' > (See full trace by running task with --trace) >Could it be that although the mysql gem is present, it can''t be loaded because (for example) it can''t find a required library? In those situations, you sometimes get a better error message by trying to load the gem from an irb session Fred> > Please help. > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks Fred, I had created the project using rails new app -d mysql which bydefault added mysql2. I had changed the Gemfile to use mysql instead of mysql2 but did not change the database.yml file in the config directory. On Fri, Feb 4, 2011 at 1:24 PM, hari <harihara.bhasker-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> $ bundle show mysql > /home/bhas/.rvm/gems/ruby-1.9.2-p136/gems/mysql-2.8.1 > > but when I run > > $ rake db:migrate > (in /home/bhas/projects/schapp) > rake aborted! > no such file to load -- mysql-2.8.1 > /home/bhas/projects/schapp/Rakefile:4:in `<top (required)>'' > (See full trace by running task with --trace) > > > Please help. > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.