尝试安装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$
答案 0 :(得分:6)
如果任务未在rake -T
的输出中列出,则表明它未定义,您无法运行它。
Rails 3删除了此任务,转而使用Gemfile
和bundler作为官方gem安装程序,因为gems:install
通常很难正常工作。