Rails "Missing these required gems" error for installed gems

Posted by Shpigford on Stack Overflow See other posts from Stack Overflow or by Shpigford
Published on 2010-06-16T14:46:02Z Indexed on 2010/06/16 15:22 UTC
Read the original article Hit count: 261

Filed under:
|
|
|

I know this has been asked multiple times before, but I've tried those things and still am not having any luck.

For the mechanize gem, I keep getting the "Missing these required gems" error when I run db:migrate on my production server.

Here's the full error:

Missing these required gems:
  mechanize  

You're running:
  ruby 1.8.6.111 at /usr/bin/ruby1.8
  rubygems 1.3.5 at /home/user/.gem/ruby/1.8, /usr/lib/ruby/gems/1.8

Output of which ruby is /usr/bin/ruby

Output of which gem is /usr/bin/gem

When I run gem list mechanize (1.0.0) is definitely in the list.

What am I doing wrong here?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby