Проблемы при установке Redmine на Windows Server 2008 - PullRequest
2 голосов
/ 18 февраля 2012

У меня Windows Server 2008 R2 с MySQL и Subversion, установленными отдельно.Просто упомянуть, что он также имеет IIS.

В настоящее время мы устанавливаем Redmine на тот же сервер и следуем инструкциям на этой странице:

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

При установкеэто мы ударили на шаге нет.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)

1 Ответ

3 голосов
/ 18 февраля 2012

Возможно, вам придется понизить версию Ruby Gems.

Попробуйте gem update --system 1.6.2

Обновление

Извините, у меня мало опыта с RoR в Windows.Но в основном у вас должны быть проблемы из-за Redmine, использующего более старую версию гемов.

Сначала попробуйте запустить bundle install, чтобы проверить, есть ли у вас все указанные драгоценные камни.Если рейк все равно не запускается, попробуйте exec rake db:migrate.

Наконец, грубая сила, если это необходимо.gem uninstall rack затем gem install rack -v 1.1.0

Предпосылкой этих действий является попытка получить правильные версии драгоценных камней.

...