# Basic question about mongrel

**URL:** <https://www.ruby-forum.com/t/basic-question-about-mongrel/92409>\
**Category:** Rails\
**Created:** [April 19, 2007, 7:23am UTC](https://www.ruby-forum.com/t/basic-question-about-mongrel/92409 "2007-04-19T07:23:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anakintang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/5fc32e/32.png) [@anakintang](https://www.ruby-forum.com/u/anakintang)\
**Post date:** [April 19, 2007, 7:23am UTC](https://www.ruby-forum.com/t/basic-question-about-mongrel/92409/1 "2007-04-19T07:23:34Z")

</div>

I am new to rails and try to setup mongrel on my windows machine.

When execute “gem install mongrel” shall I choose mongrel 1.0.1(ruby) or  
mongrel 1.0.1(win32)?

If I choose mongrel 1.0.1(ruby), I will get “nmake” not recognized  
error.

I tried switch to mongrel 1.0.1(win32), and it installs fine and starts  
fine but when I try to stop it with “mongrel\_rails stop” I got  
“log/mongrel.pid” not found error.

Does anyone know how to solve that?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![anakintang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/5fc32e/32.png) [@anakintang](https://www.ruby-forum.com/u/anakintang)\
**Post date:** [April 19, 2007, 7:38am UTC](https://www.ruby-forum.com/t/basic-question-about-mongrel/92409/2 "2007-04-19T07:38:36Z")

</div>

anakintang wrote:

> I am new to rails and try to setup mongrel on my windows machine.
> 
> When execute “gem install mongrel” shall I choose mongrel 1.0.1(ruby) or  
> mongrel 1.0.1(win32)?
> 
> If I choose mongrel 1.0.1(ruby), I will get “nmake” not recognized  
> error.
> 
> I tried switch to mongrel 1.0.1(win32), and it installs fine and starts  
> fine but when I try to stop it with “mongrel\_rails stop” I got  
> “log/mongrel.pid” not found error.
> 
> Does anyone know how to solve that?
> 
> Thanks in advance

I think “mongrel\_rails stop” is not supposed to work in Windows. Just  
CTRL-C in the command window from which you started the server to stop  
it.

---

<div class="post-metadata">

**Author:** ![anakintang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/5fc32e/32.png) [@anakintang](https://www.ruby-forum.com/u/anakintang)\
**Post date:** [April 19, 2007, 9:30am UTC](https://www.ruby-forum.com/t/basic-question-about-mongrel/92409/3 "2007-04-19T09:30:17Z")

</div>

Andrew Z wrote:

> anakintang wrote:
> 
> > I am new to rails and try to setup mongrel on my windows machine.
> > 
> > When execute “gem install mongrel” shall I choose mongrel 1.0.1(ruby) or  
> > mongrel 1.0.1(win32)?
> > 
> > If I choose mongrel 1.0.1(ruby), I will get “nmake” not recognized  
> > error.
> > 
> > I tried switch to mongrel 1.0.1(win32), and it installs fine and starts  
> > fine but when I try to stop it with “mongrel\_rails stop” I got  
> > “log/mongrel.pid” not found error.
> > 
> > Does anyone know how to solve that?
> > 
> > Thanks in advance
> 
> I think “mongrel\_rails stop” is not supposed to work in Windows. Just  
> CTRL-C in the command window from which you started the server to stop  
> it.

I suspect so cuz I have to start another cmd window to stop the one I  
used for start, which is just not neat.
