Cannot freeze gems

Running rake rails:freeze:gems I got the following error:

[root@WiNN-Mesh web_interface]# /usr/local/bin/rake rails:freeze:gems
–trace
(in /usr/sbin/web_interface)
** Invoke rails:freeze:gems (first_time)
** Execute rails:freeze:gems
Freezing to the gems for Rails 1.2.5
rm -rf vendor/rails
mkdir -p vendor/rails
cd vendor/rails
rake aborted!
uninitialized constant Gem::GemRunner
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:2028:in
const_missing' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/tasks/framework.rake:26 /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/tasks/framework.rake:25:ineach’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/tasks/framework.rake:25
/usr/local/lib/ruby/1.8/fileutils.rb:121:in chdir' /usr/local/lib/ruby/1.8/fileutils.rb:121:inchdir’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:805:in chdir' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/tasks/framework.rake:24 /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:incall’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in
execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:ineach’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in
execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:ininvoke’
/usr/local/lib/ruby/1.8/thread.rb:135:in synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:ininvoke’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in
top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:ineach’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in
top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:instandard_exception_handling’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in
top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:inrun’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in
standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:inrun’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7
/usr/local/bin/rake:16:in `load’
/usr/local/bin/rake:16

I 'm runnin rubygems with the following environment:

RubyGems Environment:

  • RUBYGEMS VERSION: 0.9.5 (0.9.5)
  • RUBY VERSION: 1.8.5 (2006-12-25 patchlevel 12) [arm-linux]
  • INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8/
  • RUBY EXECUTABLE: /usr/local/bin/ruby
  • RUBYGEMS PLATFORMS:
    • ruby
    • arm-linux
  • GEM PATHS:
    • /usr/local/lib/ruby/gems/1.8/
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000

Any clues on what to do?