ruby - /var/lib/gems/1.8/bin/rake:17: undefined method `require_gem' for main:Object (NoMethodError) -
I'm getting a rake to work on my machine, it only happens from the rack version that was installed from RubyGomas (Not installed Debian). Please see above:
Charlotte: ~ # rack /var/lib/gems/1.8/bin//rake charlotte: ~ # rake /var/lib/gems/1.8/bin/rake : 17: `needed_gem 'for the undefined method main: Object (nomeless error) Charlotte: ~ # rake-v / / / like / games / 1/8 / bin / rake 1: Undefined method for main` require_gem': Object (NoMethière error) Charlotte: ~ # Gem -v 1.6.2 Charlotte: ~ # Rabbi - Version Rabbi 1.8.7 (2010-08-16 Patchlevel 302) [x86_64-linux] Charlotte: ~ # gem list | Grep rake rake (0.8.7) charlotte: ~ # / usr / bin / rake rack aborted! No rockfile found (search: rackfile, rackfile, rackfile.rb, rackfile.rb) /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakefile ' (See full search after working with --trace) Charlotte: ~ #
I do not think that you have the recent version of the rake used for the need_gem on line 17, and in all the versions of the last few years it replaced it with just gem has gone. Find out what $ GEM_HOME is pointing to, and uninstall your distribution version properly if your GEM_HOME is something different (it may be empty which is okay), remove the path of broken rake from your path and Remove those gems there. Also try to run gem environment In summary in your shell, you do not have version 0.8.7 on the rack, it is old, and I do not think Rabbits are putting their gems on.
Comments
Post a Comment