0
tim@ubuntu:~/rails_projects/sample_app$ bundle exec rake db:migrate
ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead.


tim@ubuntu:~/rails_projects/sample_app$ gem uninstall rake --version 10.0.4


You have requested to uninstall the gem:
    rake-10.0.4
addressable-2.3.3 depends on [rake (>= 0.7.3)]
diff-lcs-1.2.2 depends on [rake (~> 10.0)]
excon-0.20.1 depends on [rake (>= 0)]
heroku-api-0.3.9 depends on [rake (>= 0)]
launchy-2.2.0 depends on [rake (~> 10.0.3)]
mime-types-1.22 depends on [rake (~> 10.0)]
nokogiri-1.5.9 depends on [rake (>= 0.9)]
rack-1.2.8 depends on [rake (>= 0)]
railties-3.0.1 depends on [rake (>= 0.8.4)]
rspec-core-2.13.1 depends on [rake (~> 10.0.0)]
rspec-expectations-2.13.0 depends on [rake (~> 10.0.0)]
rspec-mocks-2.13.1 depends on [rake (~> 10.0.0)]
rspec-rails-2.13.0 depends on [rake (~> 10.0.0)]
thor-0.14.6 depends on [rake (>= 0.8)]
treetop-1.4.12 depends on [rake (>= 0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]  ^CERROR:  Interrupted

これらの rake-10.0.4 への依存関係のために、rake-0.8.7 にロールバックしたくありません。

この問題に対する他の解決策はありますか?

4

1 に答える 1

1

rake バージョン > 10.0.0 を使用している場合。Rakefile を編集してください

から:

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'

に:

require 'rake'
require 'rake/testtask'
require 'rdoc/task'
require 'tasks/rails'
于 2013-04-14T09:48:12.403 に答える