[Radiant] uninitialized constant Gem::GemRunner when freezing gems
Oli Studholme
radiantcms.org at boblet.net
Thu Apr 3 22:32:28 CDT 2008
Hi All,
This is probably obvious, but just in case it catches anyone else out:
I have a svn checkout of the rails2 branch with the gettext gem and
radiantgettext for Japanese localization, as per:
http://boblet.tumblr.com/post/30679470
and wanted to freeze gems for moving to my webhost. Doing
rake radiant:freeze:gems
Gave me the error
uninitialized constant Gem::GemRunner
Here is the full trace:
$ rake radiant:freeze:gems --trace
(in /path/to/radiant/install)
** Invoke radiant:freeze:gems (first_time)
** Execute radiant:freeze:gems
Freezing to the gems for Radiant 0.6.4
rake aborted!
uninitialized constant Gem::GemRunner
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:2237:in `const_missing'
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.4/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:in `chdir'
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.4/lib/tasks/framework.rake:24
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in
`invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
`invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
`standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
`standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19
I checked the Rails-2.0.2 framework.rake file as per:
http://bpdp.wordpress.com/2007/11/28/rubygems-095-and-rails-126-uninitialized-constant-gemgemrunner/
but it already had
require 'rubygems/gem_runner
Checking the trace I then edited:
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.4/lib/tasks/framework.rake
which didn't have it. Adding the requirement for gem_runner and saving
let me freeze successfully.
HTH
peace - oli
More information about the Radiant
mailing list