Hi all, I recently installed the ruby mysql gem (2.8.1) on my Mac Leopard after much trouble (http://groups.google.com/group/rubyonrails-talk/ browse_thread/thread/586c29ca813cd391/fb5f34c8f9eb9e3f?lnk=gst&q=mysql +gem#fb5f34c8f9eb9e3f) Now, when I start up the Rails 2.3.5 application using script/server, it connects to the database just fine. But when I run rake db:migrate, !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. rake aborted! no such file to load -- mysql /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'' /Users/ram/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/ dependencies.rb:156:in `require'' ... Anybody got any idea why this is happening and how I can fix it? Thanks! -- 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.
Frederick Cheung
2010-Jul-04 17:02 UTC
Re: mysql gem recognized by script/server but not rake
On Jul 4, 11:03 am, Ram <yourstruly.vi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > I recently installed the ruby mysql gem (2.8.1) on my Mac Leopard > after much trouble (http://groups.google.com/group/rubyonrails-talk/ > browse_thread/thread/586c29ca813cd391/fb5f34c8f9eb9e3f?lnk=gst&q=mysql > +gem#fb5f34c8f9eb9e3f) > > Now, when I start up the Rails 2.3.5 application using script/server, > it connects to the database just fine. But when I run rake db:migrate, >It looks like from that other thread that you installed the mysql gem in the ruby install in /usr/local but running rake is picking up the rake in the other ruby install, presumably because you haven''t installed rake in the /usr/local install. Fred> !!! The bundled mysql.rb driver has been removed from Rails 2.2. > Please install the mysql gem and try again: gem install mysql. > rake aborted! > no such file to load -- mysql > /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'' > /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'' > /Users/ram/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/ > dependencies.rb:156:in `require'' > ... > > Anybody got any idea why this is happening and how I can fix it? > > Thanks!-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi Fred, I actually checked that. Ran "gem list rake" and it listed 0.8.7 . I also ran "gem update rake" but there were no updates to be made. But now I uninstalled rake and then installed it again and its working now :). Weird. Thanks for your response! Cheers, Vinay. On Jul 4, 10:02 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jul 4, 11:03 am, Ram <yourstruly.vi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > > I recently installed the rubymysqlgem (2.8.1) on my Mac Leopard > > after much trouble (http://groups.google.com/group/rubyonrails-talk/ > > browse_thread/thread/586c29ca813cd391/fb5f34c8f9eb9e3f?lnk=gst&q=mysql > > +gem#fb5f34c8f9eb9e3f) > > > Now, when I start up the Rails 2.3.5 application using script/server, > > it connects to the database just fine. But when I runrakedb:migrate, > > It looks like from that other thread that you installed themysqlgem > in the ruby install in /usr/local but runningrakeis picking up therakein the other ruby install, presumably because you haven''t > installedrakein the /usr/local install. > > Fred > > > > > !!! The bundledmysql.rb driver has been removed from Rails 2.2. > > Please install themysqlgem and try again: gem installmysql. > >rakeaborted! > > no such file to load --mysql > > /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in > > `gem_original_require'' > > /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'' > > /Users/ram/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/ > > dependencies.rb:156:in `require'' > > ... > > > Anybody got any idea why this is happening and how I can fix it? > > > Thanks!-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.