# Problem starting mongrel in windows

**URL:** <https://www.ruby-forum.com/t/problem-starting-mongrel-in-windows/147848>\
**Category:** Mongrel\
**Created:** [September 6, 2008, 1:03am UTC](https://www.ruby-forum.com/t/problem-starting-mongrel-in-windows/147848 "2008-09-06T01:03:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![suman\_gurungShotmai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9f8e36/32.png) [@suman\_gurungShotmai](https://www.ruby-forum.com/u/suman_gurungShotmai)\
**Post date:** [September 6, 2008, 1:03am UTC](https://www.ruby-forum.com/t/problem-starting-mongrel-in-windows/147848/1 "2008-09-06T01:03:09Z")

</div>

Hi everybody,  
I was trying to get rails applications deployed in my pc(windows vista),  
and I had some problem trying to start mongrel web server, and I have no  
clue as to how and why it is not working.  
I have installed ruby, rubygems, rails, mysql and mongrel, the last  
three as rubygems. I could run the ‘rails’ command to and create an  
application with the folder structure and all. But when I tried to start  
the mongrel, I get the following error message.

F:\ROR\sources\hello\>mongrel\_rails start -d  
C:/ruby/jruby-1.1.3/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require': no such file to load -- win32/service (LoadError) from C:/ruby/jruby-1.1.3/lib/ruby/site_ruby/1.8/rubygems/custom_require. rb:27:in`require’  
from  
C:/ruby/jruby-1.1.3/lib/ruby/gems/1.8/gems/mongrel\_service-0.1/lib/mongrel\_service/init.rb:5  
from  
C:/ruby/jruby-1.1.3/lib/ruby/gems/1.8/gems/mongrel\_service-0.1/lib/mongrel\_service/init.rb:27:in  
`require' from C:/ruby/jruby-1.1.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`require’  
from  
C:/ruby/jruby-1.1.3/lib/ruby/gems/1.8/gems/gem\_plugin-0.2.3/lib/gem\_plugin.rb:134:in  
`load' from C:/ruby/jruby-1.1.3/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:195:in`each’  
from  
C:/ruby/jruby-1.1.3/lib/ruby/site\_ruby/1.8/rubygems/source\_index.rb:195:in  
`each' from C:/ruby/jruby-1.1.3/lib/ruby/gems/1.8/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:112:in`load’  
from  
C:/ruby/jruby-1.1.3/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/bin/mongrel\_rails:278  
from  
C:/ruby/jruby-1.1.3/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/bin/mongrel\_rails:19:in  
`load’  
from c:\ruby\jruby-1.1.3\bin\mongrel\_rails:19

Also, is there any way to keep mongrel live and running?? I tried to  
install it as a service as mentioned in the website with the following  
command: gem install mongrel\_service and it mentioned that 1 gem was  
installed, but I don’t see any service with the name “mongrel” or  
“mongrel\_rails” running in the list of services. I am new with mongrel  
so please do help me.

Thanks,  
suman gurung

---

<div class="post-metadata">

**Author:** ![suman\_gurungShotmai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9f8e36/32.png) [@suman\_gurungShotmai](https://www.ruby-forum.com/u/suman_gurungShotmai)\
**Post date:** [September 6, 2008, 10:09pm UTC](https://www.ruby-forum.com/t/problem-starting-mongrel-in-windows/147848/2 "2008-09-06T22:09:29Z")

</div>

On Fri, Sep 5, 2008 at 7:56 PM, suman gurung(hotmail)  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> C:/ruby/jruby-1.1.3/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
> `require': no such file to load -- win32/service (LoadError) from C:/ruby/jruby-1.1.3/lib/ruby/site_ruby/1.8/rubygems/custom_require. rb:27:in `require’  
> from  
> C:/ruby/jruby-1.1.3/lib/ruby/gems/1.8/gems/mongrel\_service-0.1/lib/mongrel\_service/init.rb:5  
> from  
> C:/ruby/jruby-1.1.3/lib/ruby/gems/1.8/gems/mongrel\_service-0.1/lib/mongrel\_service/init.rb:27:in  
> `require’

To keep it short:

You’re using JRuby, not Matz Ruby (MRI) so:

mongrel\_service gem will not work, since it depends on win32-service,  
which is only Windows (not Java).  
You’re using a old version of mongrel\_service (0.1) which definitely  
will not work as expected with latest Rails and Mongrel.

Daemonize (-d) otpion requires fork functionality, which is not  
available in Windows (neither MRI or JRuby or any Ruby for Windows  
implementation).

> Also, is there any way to keep mongrel live and running?? I tried to install  
> it as a service as mentioned in the website with the following command: gem  
> install mongrel\_service and it mentioned that 1 gem was installed, but I  
> don’t see any service with the name “mongrel” or “mongrel\_rails” running in  
> the list of services. I am new with mongrel so please do help me.

mongrel\_rails service::install --help

That is clearly documented in mongrel site:

[http://mongrel.rubyforge.org/wiki/Win32](http://mongrel.rubyforge.org/wiki/Win32)

## – Luis L. 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

---

<div class="post-metadata">

**Author:** ![suman\_gurungShotmai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9f8e36/32.png) [@suman\_gurungShotmai](https://www.ruby-forum.com/u/suman_gurungShotmai)\
**Post date:** [September 7, 2008, 5:30am UTC](https://www.ruby-forum.com/t/problem-starting-mongrel-in-windows/147848/3 "2008-09-07T05:30:35Z")

</div>

Thanks, Luis, for making me see that. Indeed I was using jruby’s gems to  
install all the applications. When I installed anything using the gem  
command, it was the gem under the jruby folder that was being executed.  
I  
had to changed the precedence of the entries of jruby and ruby in the  
path(environment variable) and do all the installs again and mongrel  
runs  
smooth.

great!!!

* * *

From: “Luis L.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Saturday, September 06, 2008 3:08 PM  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Mongrel] problem starting mongrel in windows
