gpt4 book ai didi

ruby-on-rails - 在 Windows Server 2008 上安装 Redmine 时出现的问题

转载 作者:行者123 更新时间:2023-12-04 05:57:25 26 4
gpt4 key购买 nike

我有 Windows Server 2008 R2,分别安装了 MySQL 和 Subversion。只是提一下它也有IIS。

我们目前正在同一台服务器上安装 Redmine,并按照此页面的说明进行操作:

http://www.richardnichols.net/2009/09/1-minute-guide-installing-redmine-on-windows/

在安装它时,我们已经在第 1 步。 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 的专家。

感谢守护进程,根据您的更新,我已经降级了 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 Gems 版本。

试试 gem update --system 1.6.2
更新

抱歉,我对 Windows 上的 RoR 几乎没有经验。但基本上,由于 Redmine 使用旧版本的 gems,您应该会遇到问题。

您应该先尝试运行 bundle install查看您是否已经拥有所有指定的 gem 。如果 rake 仍然无法运行,请尝试 exec rake db:migrate .

最后,必要时使用蛮力。gem uninstall rack然后 gem install rack -v 1.1.0
这些操作的前提是尝试获得正确的 gem 版本。

关于ruby-on-rails - 在 Windows Server 2008 上安装 Redmine 时出现的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9341621/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com