我正在尝试在以下宝石中安装fedena 3.0版本
ruby 1.9.1
rubygem 2.4.1
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
bundler (1.2.1)
declarative_authorization (0.5.1)
hoe (3.12.0)
i18n (0.4.2)
mysql (2.8.1)
rack (1.0.1)
rails (2.3.5)
rake (0.9.6)
rubygems-bundler (1.1.0)
test-unit (1.2.3)
但我得到了以下错误,我该如何解决?
错误
root@ubuntu:/home/user/fedena# rake db:create
WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
at /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:54:in `require'
rake aborted!
cannot load such file -- spec/rake/spectask
/home/user/fedena/lib/tasks/rspec.rake:22:in `<top (required)>'
/home/user/fedena/Rakefile:10:in `<top (required)>'
(See full trace by running task with --trace)
答案 0 :(得分:2)
错误是由rake引起的。您应该使用以下命令安装正确的版本:
gem install rake -v 0.8.7
那会让你超越那个错误。请记住卸载rake的早期版本。
Fedena 3.0需要额外的宝石才能正常工作。尝试启动应用程序时,您将收到有关缺失的gem的错误消息。