Project

General

Profile

redmine start.bat doesn't work after i installed bundle

Added by Murat Sahilli about 1 year ago

Hi everyone,

I tried to install this user specific theme in my redmine root (C:/ruby/redmine).
https://github.com/seyedmmousavi/redmine_user_specific_theme

Our server works on windows.
what i did was:
git clone https://github.com/seyedmmousavi/redmine_user_specific_theme.git plugins/redmine_user_specific_theme
gem install bundler
bundle install

Then it throws this error:
Bundler could not find compatible versions for gem "nokogiri":

I deleted/uninstalled gemfile and bundler then reinstalled.
Now redmine start.bat doesn't works.
Throws this error:

C:/ruby/redmine/config/application.rb:18:in `<top (required)>': uninitialized constant Bundler (NameError)
from <internal:C:/ruby/ruby2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:148:in `require'
from <internal:C:/ruby/ruby2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:148:in `require'
from C:/ruby/ruby2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:138:in `block in perform'
from <internal:kernel>:90:in `tap'
from C:/ruby/ruby2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:135:in `perform'
from C:/ruby/ruby2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from C:/ruby/ruby2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from C:/ruby/ruby2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
from C:/ruby/ruby2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/command/base.rb:69:in `perform'
from C:/ruby/ruby2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/command.rb:48:in `invoke'
from C:/ruby/ruby2/lib/ruby/gems/3.1.0/gems/railties-6.1.7/lib/rails/commands.rb:18:in `<top (required)>'
from <internal:C:/ruby/ruby2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
from <internal:C:/ruby/ruby2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
from <internal:C:/ruby/ruby2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
from bin/rails:4:in `<main>'

Any idea what i should do? I don't think previous gem version was 3.1.0 I think it updated after i installed bundle


Replies (2)

RE: redmine start.bat doesn't work after i installed bundle - Added by C S about 1 year ago

Which version of Redmine should it run with? The plugin was developed for version 3.1 and hasn't been updated since 2015... presumably it's not compatible?

RE: redmine start.bat doesn't work after i installed bundle - Added by Murat Sahilli about 1 year ago

Redmine 5.1 I suppose.
I installed bundle again. Then installed all the packages it asks for. The last error i face is : Could not load the 'sqlserver' Active Record adapter. Ensure that the adapter is spelled correctly in config/database.yml and that you've added the necessary adapter gem to your Gemfile. (LoadError)

I have " gem 'activerecord-sqlserver-adapter' " in my gemfile and required settings in database.yml file. I don't understand why it throws error.

    (1-2/2)