views:

61

answers:

2

Hi, I'm having a hellava time with Rails these past two days. I was using the Rails 3 beta gem yesterday but went back to 2.3.8 and after cleaning the system gems and whatnot I'm just trying to run a simple rake task and I get this:

Peleliu:haml jayfallon$ sudo rake install /Library/Ruby/Site/1.8/rubygems.rb:779:in report_activate_error': Could not find RubyGem rake (>= 0) (Gem::LoadError) from /Library/Ruby/Site/1.8/rubygems.rb:214:inactivate' from /Library/Ruby/Site/1.8/rubygems.rb:1082:in `gem' from /usr/bin/rake:18

Not sure if it has to do with my path being borked or not. Any help would be appreciated.

RubyGems Environment: - RUBYGEMS VERSION: 1.3.7

  • RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0]
  • INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
  • RUBY EXECUTABLE: /usr/local/bin/ruby
  • EXECUTABLE DIRECTORY: /usr/local/bin
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86-darwin-10
  • GEM PATHS:
    • /usr/local/lib/ruby/gems/1.8
    • /Users/jayfallon/.gem/ruby/1.8
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
    • :sources => ["http://gems.rubyforge.org/", "http://gems.github.com", "http://gems.github.com", "http://gems.github.com", "http://gems.github.com", "http://gems.github.com", "http://gems.github.com", "http://gems.github.com", "http://gems.github.com", "http://gems.github.com", "http://gemcutter.org/"]
  • REMOTE SOURCES:

A: 

You just need add rake on your Gemfile

gem 'rake'
shingara
I was trying to use Rake outside of a Rails app and just install the latest Haml gem. - thanks
jayfallon
where would that gem file be located at?
Yohann T.
A: 

I'm having a problem with my .profile; the path is getting mixed up when I open a new terminal window.

jayfallon