I have Ruby and Rails 2.1.1 installed, then I installed mongrel 1.1.5. Now I want to install mongrel as a service. I downloaded and installed mongrel_service-0.3.3-mswin32.gem. After all these, I followed the instructions to install it as service by running the command below, but got an error. C:\ruby>mongrel_rails service::install -N BuildDashboard -c "c:\Build Dashboard" -p 4000 -e development c:/ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.3.3-mswin32/lib/mongrel_service/init.rb:140:in `initialize'': wrong number of arguments (0 for 1) (ArgumentError) from c:/ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.3.3-mswin32/lib/mongrel_service/init.rb:140:in `new'' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.3.3-mswin32/lib/mongrel_service/init.rb:140:in `run'' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/command.rb:212:in `run'' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:281 from c:/ruby/bin/mongrel_rails:16:in `load'' from c:/ruby/bin/mongrel_rails:16 Thanks for any help. -- Posted via http://www.ruby-forum.com/.
Luis Lavena
2008-Sep-16 23:25 UTC
[Mongrel] Error when install Mongrel as a Windows service
On Tue, Sep 16, 2008 at 6:01 PM, Sophie Su <lists at ruby-forum.com> wrote:> I have Ruby and Rails 2.1.1 installed, then I installed mongrel 1.1.5. > Now I want to install mongrel as a service. I downloaded and installed > mongrel_service-0.3.3-mswin32.gem. After all these, I followed the > instructions to install it as service by running the command below, but > got an error. >Did you install mongrel_service using RubyGems locally or remote? If you downloaded the gem and installed locally then the win32/service dependency will not be fulfilled. mongrel_service requires a specific version of that win32-service gem>= 0.5.2 and less than 0.6, since that version introduced someincompatibilities that require a lot of code change in the plugin. -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams
Thanks very much for that information. I installed mongrel service locally. I didn''t know it caused the service not work. My employer blocked lots of internet sites, so I was not able to install mongrel remotely from the office. I took my laptop home and did the remote installation from home. Now it works. Thanks again. Luis Lavena wrote:> On Tue, Sep 16, 2008 at 6:01 PM, Sophie Su <lists at ruby-forum.com> wrote: >> I have Ruby and Rails 2.1.1 installed, then I installed mongrel 1.1.5. >> Now I want to install mongrel as a service. I downloaded and installed >> mongrel_service-0.3.3-mswin32.gem. After all these, I followed the >> instructions to install it as service by running the command below, but >> got an error. >> > > Did you install mongrel_service using RubyGems locally or remote? > > If you downloaded the gem and installed locally then the win32/service > dependency will not be fulfilled. > > mongrel_service requires a specific version of that win32-service gem >>= 0.5.2 and less than 0.6, since that version introduced some > incompatibilities that require a lot of code change in the plugin. > > -- > Luis Lavena > AREA 17-- Posted via http://www.ruby-forum.com/.