昨天我使用了Rails 3 beta gem,但是回到了2.3.8版本。在清理系统gems后,我尝试运行一个简单的Rake任务,结果出现了以下错误:
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:in `activate' from /Library/Ruby/Site/1.8/rubygems.rb:1082:in `gem' from /usr/bin/rake:18我不确定这是否与我的路径有关。
RubyGems 环境: - RUBYGEMS 版本:1.3.7
- RUBY 版本:1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] - 安装目录:/usr/local/lib/ruby/gems/1.8 - RUBY 可执行文件路径:/usr/local/bin/ruby - 可执行文件目录:/usr/local/bin - RUBYGEMS 平台: - ruby - x86-darwin-10 - GEM 路径: - /usr/local/lib/ruby/gems/1.8 - /Users/jayfallon/.gem/ruby/1.8 - GEM 配置: - :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/"] - 远程资源:
- http://gemcutter.org/