Rake Gems安装错误

时间:2010-11-11 16:43:49

标签: ruby-on-rails rake

尝试安装gem时出现以下错误:

Mohammad-Azams-MacBook-Pro:awesomecats azamsharp$ sudo rake gems:install
Password:
(in /Projects/awesomecats)
rake aborted!
Don't know how to build task 'gems:install'

(See full trace by running task with --trace)
Mohammad-Azams-MacBook-Pro:awesomecats azamsharp$ 

1 个答案:

答案 0 :(得分:6)

如果任务未在rake -T的输出中列出,则表明它未定义,您无法运行它。

Rails 3删除了此任务,转而使用Gemfilebundler作为官方gem安装程序,因为gems:install通常很难正常工作。