# Migration Error

**URL:** <https://www.ruby-forum.com/t/migration-error/129689>\
**Category:** Rails\
**Created:** [February 20, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/migration-error/129689 "2008-02-20T19:10:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [February 20, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/migration-error/129689/1 "2008-02-20T19:10:59Z")

</div>

I started following the instructions on RailsRocket to migrate to Rails  
2.0. I entered the following commands (as root):

gem install rails -y  
gem update --system

The two commands seemed to work correctly, but for all intents and  
purposes, everything is now broken, and I could go no further.

If I issue any rake command, I get:  
/usr/bin/rake:17: undefined method `require\_gem’ for main:Object  
(NoMethodError)

If I issue a rails command, I get  
/usr/bin/rake:17: undefined method `require\_gem’ for main:Object  
(NoMethodError)

If I issue a gem command I get:  
/usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)

Can anyone offer some help on how to recorver?

Thanks in advance  
—Michael

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [February 20, 2008, 8:03pm UTC](https://www.ruby-forum.com/t/migration-error/129689/2 "2008-02-20T20:03:09Z")

</div>

are you on debian/ubuntu?

On 20 ÆÅ×, 20:10, Michael S. \<rails-mailing-l…@andreas-

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [February 20, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/migration-error/129689/3 "2008-02-20T20:47:49Z")

</div>

lq wrote:

> are you on debian/ubuntu?

Ubuntu (feisty)

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [February 20, 2008, 10:02pm UTC](https://www.ruby-forum.com/t/migration-error/129689/4 "2008-02-20T22:02:49Z")

</div>

I’ve asked because I had same problem on debian.  
gem update --system uploaded files to different location, than apt-get  
did, so some files were updated, while others kept obsolete.  
After working on the problem a bit, I wiped out ruby (it was 1.8.5 and  
no newer version, even in testing repository) and gems completely and  
compiled everything from the sources.  
No more problems I’ve got.  
However, I’d suggest adding require ‘rubygems/gem\_runner’ to /usr/bin/  
gem and run ‘gem update’ before going my way.

On 20 ÆÅ×, 21:47, Michael S. \<rails-mailing-l…@andreas-
