Let me start by saying I'm not a Ruby dev. I'm just trying to install Redmine on Windows x64. I've found similar questions here which I will link later. But since I'm not a Ruby dev, I don't understand the answers and can't apply them to my situation. So please be a little verbose in your answer so that I can fully understand what I'm doing.
I get to Step 5 in the the Redmine Install and the following error is generated:
C:\redmine\redmine-3.2.3>bundle exec rake generate_secret_token
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: duplicated key at line 466 ignored: "inodot"
rake aborted!
LoadError: cannot load such file -- tiny_tds/tiny_tds
C:/redmine/redmine-3.2.3/config/application.rb:5:in `<top (required)>'
C:/redmine/redmine-3.2.3/Rakefile:5:in `require'
C:/redmine/redmine-3.2.3/Rakefile:5:in `<top (required)>'
LoadError: cannot load such file -- tiny_tds/2.2/tiny_tds
C:/redmine/redmine-3.2.3/config/application.rb:5:in `<top (required)>'
C:/redmine/redmine-3.2.3/Rakefile:5:in `require'
C:/redmine/redmine-3.2.3/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
Looking at this answer and this answer, I see that looking at Redmine's Gemfile and my list of gems should provide some insight as to the problem.
The problem seems to be with tiny_tds
and the only place it is mentioned in the Gemfile is here:
when /sqlserver/
gem "tiny_tds", "~> 0.6.2", :platforms => [:mri, :mingw, :x64_mingw]
gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
From my gem list
:
rake (11.2.2, default: 10.4.2)
tiny_tds (1.0.4, 0.6.2 x64-mingw32)
It looks to me that I have multiple versions of rake
and tiny_tds
installed and it is choosing the wrong ones. One of the answers linked above seems to suggest that the Gemfile needs to be edited to pick the correct version and the other seems to suggest that using bundle exec
should take care of this for me.
So what do I need to do here to complete this installation?