Cannot Freeze gems - uninitialized constant Gem::GemRunn

Nelson Hsu wrote:

I got the same issue, and after I tried a few things that were mentioned in the thread, this is what I needed to do to get it to work:

In ruby\lib\gems\1.8\gems\rails-2.0.1\lib\tasks\framework.rake:

[original] line 6: require 'rubygems'

[my fix] line 6: require 'rubygems' line 7: require 'rubygems/gem_runner'

And as Florian mentioned, make sure to delete the rails directory in vendor/ if it exists.

Perfect, this solved my problem - I had originally just used `require 'gem_runner'` but just needed to prefix it with `rubygems/`...derrr Thanks, Nelson