【发布时间】:2012-03-09 15:24:35
【问题描述】:
我已分别安装了带有 MySQL 和 Subversion 的 Windows Server 2008 R2。顺便提一下,它也有 IIS。
我们目前正在同一台服务器上安装 Redmine,并按照此页面的说明进行操作:
http://www.richardnichols.net/2009/09/1-minute-guide-installing-redmine-on-windows/
在安装它时,我们已经完成了第 2 步。 8 Rake 错误中止!
这是完整的错误文本:
C:\Ruby187\Apps\Redmine>rake redmine:load_default_data RAILS_ENV=production
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on o
r after 2011-11-01.
Gem.source_index called from C:/Ruby187/Apps/Redmine/config/../vendor/rails/rail
ties/lib/rails/gem_dependency.rb:21.
NOTE: Gem::SourceIndex#initialize is deprecated with no replacement. It will be
removed on or after 2011-11-01.
Gem::SourceIndex#initialize called from C:/Ruby187/Apps/Redmine/config/../vendor
/rails/railties/lib/rails/vendor_gem_source_index.rb:100.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It wi
ll be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems
/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It wi
ll be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems
/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It wi
ll be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems
/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It wi
ll be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems
/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It wi
ll be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems
/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It wi
ll be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems
/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It wi
ll be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems
/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It wi
ll be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems
/source_index.rb:91.
rake aborted!
Could not find rack (~> 1.1.0) amongst [actionmailer-3.2.1, actionpack-3.2.1, ac
tivemodel-3.2.1, activerecord-3.2.1, activeresource-3.2.1, activesupport-3.2.1,
arel-3.0.0, builder-3.0.0, bundler-1.0.22, cgi_multipart_eof_fix-2.5.0, erubis-2
.7.0, gem_plugin-0.2.3, hike-1.2.1, i18n-0.6.0, journey-1.0.1, json-1.6.5, mail-
2.4.1, mime-types-1.17.2, mongrel-1.1.5-x86-mingw32, multi_json-1.0.4, mysql-2.8
.1-x86-mingw32, polyglot-0.3.3, rack-1.4.1, rack-cache-1.1, rack-ssl-1.3.2, rack
-test-0.6.1, rails-3.2.1, railties-3.2.1, rake-0.9.2.2, rdoc-3.12, sprockets-2.3
.1, sprockets-2.1.2, thor-0.14.6, tilt-1.3.3, treetop-1.4.10, tzinfo-0.3.31]
Tasks: TOP => redmine:load_default_data => environment
(See full trace by running task with –trace)
可能是什么原因造成的,以及如何解决这个问题。我不是 ROR 的专家。
感谢 daemonsly,根据您的更新,我已降级 Ruby Gems 版本。错误已更改,但仍无法继续进行。这是我得到的确切错误:
C:\Ruby187\Apps\Redmine>gem -v
1.6.2
C:\Ruby187\Apps\Redmine>rake db:migrate
rake aborted!
RubyGem version error: rack(1.4.1 not ~> 1.1.0)
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
【问题讨论】:
标签: ruby-on-rails project-management rake redmine