Install Redmine 2.1.2: Setup windows services: Could not find win32-service (< 0.6.0, >= 0.5.2)
Added by Van Toan Pham over 12 years ago
When I create redmine (2.1.2) service (follow http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache#Setup-windows-services), I get the following error
C:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_spe cs': Could not find win32-service (< 0.6.0, >= 0.5.2) amongst [actionmailer-3.2. 8, actionpack-3.2.8, activemodel-3.2.8, activerecord-3.2.8, activerecord-bq-adap ter-0.0.1, activerecord-mysql2-adapter-0.0.3, activeresource-3.2.8, activesuppor t-3.2.8, arel-3.0.2, bigdecimal-1.1.0, builder-3.0.4, builder-3.0.0, bundler-1.2 .1, cgi_multipart_eof_fix-2.5.0, coderay-1.0.8, daemons-1.1.9, erubis-2.7.0, eve ntmachine-1.0.0.rc.4-x86-mingw32, fastercsv-1.5.5, gem_plugin-0.2.3, hike-1.2.1, i18n-0.6.1, io-console-0.3, journey-1.0.4, jquery-rails-2.1.3, jquery-rails-2.0 .2, json-1.5.4, mail-2.4.4, metaclass-0.0.1, mime-types-1.19, minitest-2.5.1, mo cha-0.12.3, mongrel-1.2.0.pre2-x86-mingw32, mongrel-1.1.5-x86-mingw32, mongrel_s ervice-0.4.0, mongrel_service-0.3.4-x86-mswin32, multi_json-1.3.7, multipart_bod y-0.2.1, mysql-2.8.2-x86-mingw32, mysql2-0.3.11-x86-mingw32, mysql2-0.2.19b4, ne t-ldap-0.3.1, pg-0.14.1-x86-mingw32, polyglot-0.3.3, rack-1.4.1, rack-cache-1.2, rack-openid-1.3.1, rack-ssl-1.3.2, rack-test-0.6.2, rails-3.2.8, railties-3.2.8 , rake-0.9.2.2, rdoc-3.9.4, rmagick-2.13.1, rmagick-2.12.0-x86-mswin32, ruby-ope nid-2.2.2, ruby-openid-2.1.8, ruby-openid-2.1.4, rubygems-update-1.8.24, rubygem s-update-1.8.7, shoulda-3.3.2, shoulda-2.11.0, shoulda-context-1.0.1, shoulda-ma tchers-1.4.1, sprockets-2.1.3, sqlite3-1.3.6-x86-mingw32, test-unit-2.5.2, thin- 1.5.0, thor-0.16.0, tilt-1.3.3, treetop-1.4.12, tzinfo-0.3.35, win32-api-1.4.8-x 86-mingw32, win32-service-0.7.2-x86-mingw32, win32-service-0.7.0-x86-mswin32-60, win32-service-0.5.2-x86-mswin32, windows-api-0.4.2, windows-pr-1.2.2, yard-0.8. 3] (Gem::LoadError) from C:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:2 56:in `to_spec' from C:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems.rb:1200:in `gem ' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/mongrel_service-0.3.4-x8 6-mswin32/lib/mongrel_service/init.rb:37:in `validate' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-m ingw32/lib/mongrel/command.rb:206:in `run' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-m ingw32/bin/mongrel_rails:282:in `<top (required)>' from C:/webserver/Ruby/bin/mongrel_rails:19:in `load' from C:/webserver/Ruby/bin/mongrel_rails:19:in `<main>'
c:\webserver>ruby -v ruby 1.9.3p286 (2012-10-12) [i386-mingw32] c:\webserver>gem --version 1.8.7 c:\webserver>gem list win32-service *** LOCAL GEMS *** win32-service (0.7.2 x86-mingw32, 0.7.0 x86-mswin32-60, 0.5.2 mswin32)
On Windows 7 Ultimate 64bit.
Hope for your help. Thank so much!
Replies (6)
RE: Install Redmine 2.1.2: Setup windows services: Could not find win32-service (< 0.6.0, >= 0.5.2)
-
Added by Ivan Cenov over 12 years ago
You may try this guide
RE: Install Redmine 2.1.2: Setup windows services: Could not find win32-service (< 0.6.0, >= 0.5.2)
-
Added by Van Toan Pham over 12 years ago
When I try
thin start -e production -p 3000
so get this error
C:\webserver\Redmine>thin start -e production -p 3000 >> Using rack adapter C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/active_suppor t/dependencies.rb:251:in `require': cannot load such file -- dispatcher (LoadErr or) from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/ active_support/dependencies.rb:251:in `block in require' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/ active_support/dependencies.rb:236:in `load_dependency' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/ active_support/dependencies.rb:251:in `require' from C:/webserver/Redmine/plugins/redmine_attach_screenshot-master/init. rb:2:in `<top (required)>' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/ active_support/dependencies.rb:251:in `require' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/ active_support/dependencies.rb:251:in `block in require' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/ active_support/dependencies.rb:236:in `load_dependency' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/ active_support/dependencies.rb:251:in `require' from C:/webserver/Redmine/lib/redmine/plugin.rb:130:in `block in load' from C:/webserver/Redmine/lib/redmine/plugin.rb:121:in `each' from C:/webserver/Redmine/lib/redmine/plugin.rb:121:in `load' from C:/webserver/Redmine/config/initializers/30-redmine.rb:13:in `<top (required)>' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/ active_support/dependencies.rb:245:in `load' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/ active_support/dependencies.rb:245:in `block in load' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/ active_support/dependencies.rb:236:in `load_dependency' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/ active_support/dependencies.rb:245:in `load' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /engine.rb:588:in `block (2 levels) in <class:Engine>' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /engine.rb:587:in `each' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /engine.rb:587:in `block in <class:Engine>' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /initializable.rb:30:in `instance_exec' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /initializable.rb:30:in `run' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /initializable.rb:55:in `block in run_initializers' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /initializable.rb:54:in `each' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /initializable.rb:54:in `run_initializers' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /application.rb:136:in `initialize!' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /railtie/configurable.rb:30:in `method_missing' from C:/webserver/Redmine/config/environment.rb:14:in `<top (required)>' from C:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require. rb:55:in `require' from C:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require. rb:55:in `require' from C:/webserver/Redmine/config.ru:3:in `block in <main>' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/buil der.rb:51:in `instance_eval' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/buil der.rb:51:in `initialize' from C:/webserver/Redmine/config.ru:1:in `new' from C:/webserver/Redmine/config.ru:1:in `<main>' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/lib/rack/adap ter/loader.rb:33:in `eval' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/lib/rack/adap ter/loader.rb:33:in `load' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/lib/rack/adap ter/loader.rb:42:in `for' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/lib/thin/cont rollers/controller.rb:169:in `load_adapter' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/lib/thin/cont rollers/controller.rb:73:in `start' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/lib/thin/runn er.rb:187:in `run_command' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/lib/thin/runn er.rb:152:in `run!' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/bin/thin:6:in `<top (required)>' from C:/webserver/Ruby/bin/thin:19:in `load' from C:/webserver/Ruby/bin/thin:19:in `<main>'
RE: Install Redmine 2.1.2: Setup windows services: Could not find win32-service (< 0.6.0, >= 0.5.2)
-
Added by Ivan Cenov over 12 years ago
Probably you have an old version of the plugin redmine_attach_screenshot-master that is not compatible with Redmine 2.1.2. The old plugins require dispatcher that is not present nowadays.
RE: Install Redmine 2.1.2: Setup windows services: Could not find win32-service (< 0.6.0, >= 0.5.2)
-
Added by Ivan Cenov over 12 years ago
P.S. Another issue: you have unzipped/unrarred this plugin in plugins/redmine_attach_screenshot-master while, AFAIK, it should be in plugins/redmine_attach_screenshot.
RE: Install Redmine 2.1.2: Setup windows services: Could not find win32-service (< 0.6.0, >= 0.5.2)
-
Added by Van Toan Pham over 12 years ago
Thank for your help!
I delete all in plugin folder, then try this command again
thin start -e production -p 3000
and get another error
c:\webserver\Redmine>thin start -e production -p 3000 >> Using rack adapter c:/webserver/Redmine/config/initializers/optional-prefix.rb:8:in `<module:Action Controller>': uninitialized constant ActionController::Request (NameError) from c:/webserver/Redmine/config/initializers/optional-prefix.rb:7:in `< top (required)>' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /engine.rb:588:in `block (2 levels) in <class:Engine>' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /engine.rb:587:in `each' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /engine.rb:587:in `block in <class:Engine>' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /initializable.rb:30:in `instance_exec' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /initializable.rb:30:in `run' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /initializable.rb:55:in `block in run_initializers' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /initializable.rb:54:in `each' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /initializable.rb:54:in `run_initializers' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /application.rb:136:in `initialize!' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails /railtie/configurable.rb:30:in `method_missing' from c:/webserver/Redmine/config/environment.rb:14:in `<top (required)>' from C:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require. rb:55:in `require' from C:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require. rb:55:in `require' from c:/webserver/Redmine/config.ru:3:in `block in <main>' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/buil der.rb:51:in `instance_eval' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/buil der.rb:51:in `initialize' from c:/webserver/Redmine/config.ru:1:in `new' from c:/webserver/Redmine/config.ru:1:in `<main>' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/lib/rack/adap ter/loader.rb:33:in `eval' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/lib/rack/adap ter/loader.rb:33:in `load' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/lib/rack/adap ter/loader.rb:42:in `for' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/lib/thin/cont rollers/controller.rb:169:in `load_adapter' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/lib/thin/cont rollers/controller.rb:73:in `start' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/lib/thin/runn er.rb:187:in `run_command' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/lib/thin/runn er.rb:152:in `run!' from C:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/thin-1.5.0/bin/thin:6:in `<top (required)>' from C:/webserver/Ruby/bin/thin:19:in `load' from C:/webserver/Ruby/bin/thin:19:in `<main>'
I'm googling it now, and hope for resolve soon.
so what is the URL to access that Redmine on LAN? (something like: 192.168.22.16/redmine)
I'm beginer in Linux, Ruby... so I'm just want to use Remine :(
Sorry for my English.
RE: Install Redmine 2.1.2: Setup windows services: Could not find win32-service (< 0.6.0, >= 0.5.2)
-
Added by Etienne Massip over 12 years ago
There is no such config/initializerq/optional-prefix.rb
file bundled with the application.