我创建了一个用于运行旧的rails项目的rvm 1.8.7.
当我跑rake时,有一个警告:
WARNING: ‘require ‘rake/rdoctask” is deprecated. Please use ‘require
‘rdoc/task’ (in RDoc 2.4.2+)’ instead.
这是由于安装了更新版本的rake:
rake (0.9.2.2,0.8.7)
通过@global gemset中的rvm
$gem list -d rake *** LOCAL GEMS *** rake (0.9.2.2,0.8.7) Author: Jim Weirich Rubyforge: http://rubyforge.org/projects/rake Homepage: http://rake.rubyforge.org Installed at (0.9.2.2): /Users/horace/.rvm/gems/ruby-1.8.7-p358@global (0.8.7): /Users/horace/.rvm/gems/ruby-1.8.7-p358 Ruby based make-like utility.
如果我尝试删除@global gemset中的rake 0.9.2.2,则会出现警告:
You have requested to uninstall the gem: rake-0.9.2.2 rvm-1.11.3.3 depends on [rake (>= 0)] If you remove this gems,one or more dependencies will not be met. Continue with Uninstall? [Yn]
那么,如何在我的rvm 1.8.7中默认使用rake 0.8.7?