Just cannot get redmine to work

不问归期 提交于 2019-12-01 08:49:42

问题


So, I've been trying to get redmine to work with following all kinds of tutorials around the web, but I always get stuck at the same step :

G:\Ruby187\apps\redmine>rake db:migrate
NOTE: SourceIndex.new(hash) is deprecated; From G:/Ruby187/apps/redmine/config/.
./vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in `new'.
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex

(See full trace by running task with --trace)

Looking up the error, they tell me to change the Rakefile line :

require 'rake/rdoctask'

to

require 'rdoc/task'

But then I get the error :

G:\Ruby187\apps\redmine>rake db:migrate
NOTE: SourceIndex.new(hash) is deprecated; From G:/Ruby187/apps/redmine/config/.
./vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in `new'.
rake aborted!
no such file to load -- rdoc/task

(See full trace by running task with --trace)

Here is some information about my setup :

  1. Machine : Windows 7 (32-bit)
  2. Redmine Version : 1.1.2
  3. Tutorial Followed : http://www.ptperalta.net/index.php/technology/installing-redmine-on-windows-step-by-step-guide.html
  4. gem list :

G:\Ruby187\apps\redmine>gem list

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5
activeresource (2.3.5)
activesupport (2.3.5)
cgi_multipart_eof_fix (2.5.0)
gem_plugin (0.2.3)
i18n (0.4.2)
mongrel (1.1.5 x86-mingw32)
mysql (2.8.1 x86-mingw32)
rack (1.0.1)
rails (2.3.5)
rake (0.9.2)

Please help !


回答1:


The problem seems to be with your version of rake - from the RedmineInstall requirements section:

Rake 0.8.7 is required (rake 0.9.x is not supported by Rails yet)

You'll need to uninstall the currently installed version of rake:

gem uninstall -v=0.9.2 rake

(answer y)

and install an older version:

gem install -v=0.8.7 rake

See also this message on the redmine forum




回答2:


If you get stuck installing Redmine "by hand" on Windows, try BitNami Redmine Stack (contains Redmine plus all required dependencies, in one single Windows installer).

I didn't manage to install Redmine manually either, so I used the BitNami installer, and it just worked, without any problems.



来源:https://stackoverflow.com/questions/7485299/just-cannot-get-redmine-to-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!