我正在尝试安装Redmine并遵循第http://www.redmine.org/projects/redmine/wiki/RedmineInstall页中提到的步骤,但是在步骤8中出现错误,消息是:
D:\Permana\Develop\Ruby\redmine-1.1.2>ruby script/server webrick -e production
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
D:/Permana/Develop/Ruby/redmine-1.1.2/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:in `requirement': undefined local variable or method `version_requirements' for #<Rails::GemDependency:0x33ca6f8> (NameError)
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:254:in `activate'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:1204:in `gem'
from D:/Permana/Develop/Ruby/redmine-1.1.2/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:73:in `add_load_paths'
from D:/Permana/Develop/Ruby/redmine-1.1.2/config/../vendor/rails/railties/lib/initializer.rb:301:in `add_gem_load_paths'
from D:/Permana/Develop/Ruby/redmine-1.1.2/config/../vendor/rails/railties/lib/initializer.rb:301:in `each'
from D:/Permana/Develop/Ruby/redmine-1.1.2/config/../vendor/rails/railties/lib/initializer.rb:301:in `add_gem_load_paths'
from D:/Permana/Develop/Ruby/redmine-1.1.2/config/../vendor/rails/railties/lib/initializer.rb:132:in `process'
from D:/Permana/Develop/Ruby/redmine-1.1.2/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
from D:/Permana/Develop/Ruby/redmine-1.1.2/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
from D:/Permana/Develop/Ruby/redmine-1.1.2/config/environment.rb:20
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in`gem_original_require'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in`require'
from D:/Permana/Develop/Ruby/redmine-1.1.2/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
from D:/Permana/Develop/Ruby/redmine-1.1.2/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
from D:/Permana/Develop/Ruby/redmine-1.1.2/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
from D:/Permana/Develop/Ruby/redmine-1.1.2/vendor/rails/railties/lib/commands/server.rb:84
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in`gem_original_require'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in`require'
from script/server:3
D:\Permana\Develop\Ruby\redmine-1.1.2>
我尝试打开http://localhost:3000/并返回404.
我对Ruby on Rails一无所知,但我擅长PHP。在尝试演示并计划将其与SVN集成后,我真的对Redmine感兴趣
答案 0 :(得分:1)
这个问题几乎肯定是你的Ruby Gems版本。 Redmine has problems with version 1.5+ of gems
系统上gem -v
的输出将确认 - 如果它是&gt; = 1.5.0,则最好安装旧版本(直到他们发布Redmine 1.2,根据该错误报告)。