# Mongrel1.1.6 Installation not working with Ruby 1.9.1 in Win

**URL:** <https://www.ruby-forum.com/t/mongrel1-1-6-installation-not-working-with-ruby-1-9-1-in-win/193692>\
**Category:** Ruby\
**Created:** [August 22, 2010, 3:32pm UTC](https://www.ruby-forum.com/t/mongrel1-1-6-installation-not-working-with-ruby-1-9-1-in-win/193692 "2010-08-22T15:32:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanand83](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5ac83/32.png) [@sanand83](https://www.ruby-forum.com/u/sanand83)\
**Post date:** [August 22, 2010, 3:32pm UTC](https://www.ruby-forum.com/t/mongrel1-1-6-installation-not-working-with-ruby-1-9-1-in-win/193692/1 "2010-08-22T15:32:16Z")

</div>

Hi There,

I am facing with this problem where I am trying to install mongrel in my  
dev env having developed an application with Ruby 1.9.1, rails 2.3.5 and  
in Windows. When I use WeBrick the aplication works perfectly. But I  
wanna try running this app with either mongrel or thin. But bad luck,  
none of them is working. I wil try to explain all the thins I did to  
finally arrive at the error. Please do help me in this.

Installation on Mongrel :

1. Googling enlightned me that Ruby 1.9.1 supports only mongrel-1.1.6  
version. So I had downloaded the mongrel 1.1.6 version from  
[http://github.com/radar/mongrel](http://github.com/radar/mongrel) URL.
2. Running the gem install mongrel-1.1.6.gem gives me the following  
error.  
===================================================================  
I:\Technology\RoR\gems\radar-mongrel-c39b9a4\radar-mongrel-c39b9a4\>gem  
instal mo  
ngrel-1.1.6.gem --local --platform=ruby  
Temporarily enhancing PATH to include DevKit…  
Building native extensions. This could take a while…  
ERROR: Error installing mongrel-1.1.6.gem:  
ERROR: Failed to build gem native extension.

G:/Softwares/Softwares/ruby-1.9.1/bin/ruby.exe extconf.rb  
checking for main() in c.lib… \*\*\* extconf.rb failed \*\*\*  
Could not create Makefile due to some reason, probably lack of  
necessary libraries and/or headers. Check the mkmf.log file for more  
details. You may need configuration options.

Provided configuration options:  
–with-opt-dir  
–without-opt-dir  
.  
.  
–with-opt-include  
–with-clib  
–without-clib  
G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/1.9.1/mkmf.rb:364:in  
`try_do': The co mplier failed to generate an executable file. (RuntimeError) You have to install development tools first. from G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/1.9.1/mkmf.rb:417:in `tr  
y\_link0’  
from  
G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/1.9.1/mkmf.rb:421:in `tr y_link' from G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/1.9.1/mkmf.rb:529:in `tr  
y\_func’  
from  
G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/1.9.1/mkmf.rb:725:in `bl ock in have_library' . . ecking_for' from G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/1.9.1/mkmf.rb:720:in `ha  
ve\_library’  
from extconf.rb:4:in `’

# Gem files will remain installed in G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/ge ms/1.9.1/gems/mongrel-1.1.6 for inspection. Results logged to G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/mon grel-1.1.6/ext/http11/gem\_make.out

The statement “You have to install development tools first.”, inspired  
me get the Ruby Development Tolkit and install accordingly from the URL  
[http://wiki.github.com/oneclick/rubyinstaller/development-kit](http://wiki.github.com/oneclick/rubyinstaller/development-kit)

But still noluck.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Comming to thin server, this is another adventure.

Installation of thin server went on fine.  
gem list thin  
\*\*\* LOCAL GEMS \*\*\*  
thin (1.2.7 x86-mswin32)

Later when starting of the server, I faced some issue as below.

G:\Aptana\_Workspace\sssmh\>thin start  
G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10-  
x86-mswin32-60/lib/rubyeventmachine.so: [BUG] Segmentation fault  
ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mswin32]

## – control frame ---------- c:0014 p:-12256496 s:0037 b:0037 l:000036 d:000036 TOP c:0013 p:---- s:0035 b:0035 l:000034 d:000034 CFUNC :require c:0012 p:0146 s:0031 b:0031 l:000030 d:000030 TOP G:/Softwares/Softwares/ruby -1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10-x86-mswin32-60/lib/eventmac hine.rb:66 c:0011 p:---- s:0029 b:0029 l:000028 d:000028 FINISH c:0010 p:---- s:0027 b:0027 l:000026 d:000026 CFUNC :require c:0009 p:0083 s:0023 b:0023 l:000022 d:000022 TOP G:/Softwares/Softwares/ruby -1.9.1/lib/ruby/gems/1.9.1/gems/thin-1.2.7-x86-mswin32/lib/thin.rb:7 c:0008 p:---- s:0021 b:0021 l:000020 d:000020 FINISH c:0007 p:---- s:0019 b:0019 l:000018 d:000018 CFUNC :require c:0006 p:0011 s:0015 b:0015 l:000014 d:000014 TOP G:/Softwares/Softwares/ruby -1.9.1/lib/ruby/gems/1.9.1/gems/thin-1.2.7-x86-mswin32/bin/thin:5 c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :load c:0003 p:0127 s:0007 b:0007 l:00262c d:002220 EVAL G:/Softwares/Softwares/ruby -1.9.1/bin/thin:19 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:00262c d:00262c TOP

– Ruby level backtrace  
information-----------------------------------------  
G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10-  
x86-mswin32-60/lib/eventmachine.rb:66:in `require' G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10- x86-mswin32-60/lib/eventmachine.rb:66:in `\<top (required)\>’  
G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/thin-1.2.7-x86-mswin3  
2/lib/thin.rb:7:in `require' G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/thin-1.2.7-x86-mswin3 2/lib/thin.rb:7:in `\<top (required)\>’  
G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/thin-1.2.7-x86-mswin3  
2/bin/thin:5:in `require' G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/thin-1.2.7-x86-mswin3 2/bin/thin:5:in `\<top (required)\>’  
G:/Softwares/Softwares/ruby-1.9.1/bin/thin:19:in `load' G:/Softwares/Softwares/ruby-1.9.1/bin/thin:19:in `’

[NOTE]  
You may encounter a bug of Ruby interpreter. Bug reports are welcome.  
For details: [http://www.ruby-lang.org/bugreport.html](http://www.ruby-lang.org/bugreport.html)

This application has requested the Runtime to terminate it in an unusual  
way.  
Please contact the application’s support team for more information.

=================================================================

Have checked with different versions of eventmachine. Donno if there is  
a special version for Ruby 1.9.1 version for windows.

* * *

Please do help me in this regard as I am in stress to implement the  
application in the production environment.

Thanks and Regards,  
Sandy …

---

<div class="post-metadata">

**Author:** ![sanand83](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5ac83/32.png) [@sanand83](https://www.ruby-forum.com/u/sanand83)\
**Post date:** [August 22, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/mongrel1-1-6-installation-not-working-with-ruby-1-9-1-in-win/193692/2 "2010-08-22T20:26:01Z")

</div>

On Aug 22, 10:32 am, Anand S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hi There,
> 
> I am facing with this problem where I am trying to install mongrel in my  
> dev env having developed an application with Ruby 1.9.1, rails 2.3.5 and  
> in Windows. When I use WeBrick the aplication works perfectly. But I  
> wanna try running this app with either mongrel or thin. But bad luck,  
> none of them is working. I wil try to explain all the thins I did to  
> finally arrive at the error. Please do help me in this.

Hello,

For either mongrel or thin to install, they need a Ruby installation  
capable of compiling extensions.

The error you’re receiving is clearly that, the inability of your  
installation to compile.

I would suggest you use RubyInstaller version of 1.9.1 in combination  
with our DevKit.

You can find more information and even details of this in our website  
along with tutorials:

> **[RubyInstaller for Windows](https://rubyinstaller.org/)**
>
> The easy way to install Ruby on Windows This is a self-contained Windows-based installer that includes the Ruby language, an execution environment, important...

[http://wiki.github.com/oneclick/rubyinstaller/tutorials](http://wiki.github.com/oneclick/rubyinstaller/tutorials)

> Installation on Mongrel :
> 
> 1. Googling enlightned me that Ruby 1.9.1 supports only mongrel-1.1.6  
> version. So I had downloaded the mongrel 1.1.6 version fromhttp://github.com/radar/mongrelURL.

Something to note: that specific repository is not the oficial Mongrel  
one.

Version 1.1.6 never existed, and fauna holds the official codebase,  
which is compatible with Ruby 1.9.1 but not newer Rails:

[http://github.com/fauna/mongrel/](http://github.com/fauna/mongrel/)

---

<div class="post-metadata">

**Author:** ![sanand83](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5ac83/32.png) [@sanand83](https://www.ruby-forum.com/u/sanand83)\
**Post date:** [August 23, 2010, 5:44pm UTC](https://www.ruby-forum.com/t/mongrel1-1-6-installation-not-working-with-ruby-1-9-1-in-win/193692/3 "2010-08-23T17:44:26Z")

</div>

Hi Luis,

Thanks verymuch for the lead. I got them installed and things are going  
on well. But I am still in a fix. I am thinking of using THIN server for  
my production mode. But I think it would be good if I have a cluster of  
servers running so that it will be easy to reproduce a linux env. But  
the bad thing is that I am using a WINDOWS machine, (in this case) so no  
demonization, no clusters or any useful things which we can do in the  
wonderful linux.

So please can you suggest a way of acheiving this in the WINDOWS  
machine. Or is it possible to use the Apache + multiple (Thin / Mongrel)  
servers combination in the WINDOWS machine.

Regards,  
Sandy.

Luis L. wrote:

> On Aug 22, 10:32ï¿½am, Anand S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > Hi There,
> > 
> > I am facing with this problem where I am trying to install mongrel in my  
> > dev env having developed an application with Ruby 1.9.1, rails 2.3.5 and  
> > in Windows. When I use WeBrick the aplication works perfectly. But I  
> > wanna try running this app with either mongrel or thin. But bad luck,  
> > none of them is working. I wil try to explain all the thins I did to  
> > finally arrive at the error. Please do help me in this.
> 
> Hello,
> 
> For either mongrel or thin to install, they need a Ruby installation  
> capable of compiling extensions.
> 
> The error you’re receiving is clearly that, the inability of your  
> installation to compile.
> 
> I would suggest you use RubyInstaller version of 1.9.1 in combination  
> with our DevKit.
> 
> You can find more information and even details of this in our website  
> along with tutorials:
> 
> [http://rubyinstaller.org/](http://rubyinstaller.org/)  
> [http://wiki.github.com/oneclick/rubyinstaller/tutorials](http://wiki.github.com/oneclick/rubyinstaller/tutorials)
> 
> > Installation on Mongrel :
> > 
> > 1. Googling enlightned me that Ruby 1.9.1 supports only mongrel-1.1.6  
> > version. So I had downloaded the mongrel 1.1.6 version fromhttp://github.com/radar/mongrelURL.
> 
> Something to note: that specific repository is not the oficial Mongrel  
> one.
> 
> Version 1.1.6 never existed, and fauna holds the official codebase,  
> which is compatible with Ruby 1.9.1 but not newer Rails:
> 
> [http://github.com/fauna/mongrel/](http://github.com/fauna/mongrel/)

---

<div class="post-metadata">

**Author:** ![sanand83](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5ac83/32.png) [@sanand83](https://www.ruby-forum.com/u/sanand83)\
**Post date:** [August 23, 2010, 11:31pm UTC](https://www.ruby-forum.com/t/mongrel1-1-6-installation-not-working-with-ruby-1-9-1-in-win/193692/4 "2010-08-23T23:31:47Z")

</div>

On Aug 23, 3:59 pm, jzakiya [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Also checkout nginx ([http://nginx.org/](http://nginx.org/)) for your application.

Hello,

Before suggesting something, please read all the details that the  
original poster made available. He is running Windows where nginx is  
not native or can’t be installed as a Windows Service.

---

<div class="post-metadata">

**Author:** ![sanand83](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5ac83/32.png) [@sanand83](https://www.ruby-forum.com/u/sanand83)\
**Post date:** [August 23, 2010, 9:00pm UTC](https://www.ruby-forum.com/t/mongrel1-1-6-installation-not-working-with-ruby-1-9-1-in-win/193692/5 "2010-08-23T21:00:40Z")

</div>

On Aug 23, 10:47 am, Anand S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> So please can you suggest a way of acheiving this in the WINDOWS
> 
> > wrote:
> 
> > along with tutorials:
> 
> > Version 1.1.6 never existed, and fauna holds the official codebase,  
> > which is compatible with Ruby 1.9.1 but not newer Rails:
> 
> > [http://github.com/fauna/mongrel/](http://github.com/fauna/mongrel/)
> 
> –  
> Posted viahttp://www.ruby-forum.com/.

Also checkout nginx ([http://nginx.org/](http://nginx.org/)) for your application.

---

<div class="post-metadata">

**Author:** ![sanand83](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5ac83/32.png) [@sanand83](https://www.ruby-forum.com/u/sanand83)\
**Post date:** [August 24, 2010, 4:45pm UTC](https://www.ruby-forum.com/t/mongrel1-1-6-installation-not-working-with-ruby-1-9-1-in-win/193692/6 "2010-08-24T16:45:42Z")

</div>

On Aug 24, 11:33 am, jzakiya [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > not native or can’t be installed as a Windows Service.  
> > \* Solaris 9 / i386, sun4u; Solaris 10 / i386, amd64, sun4v;  
> > \* MacOS X / ppc, i386;  
> > \* Windows XP, Windows Server 2003.

You’re right and I was wrong:

[http://nginx.org/en/docs/windows.html](http://nginx.org/en/docs/windows.html)

I remember back in 0.6 only cygwin support was available.

Is good to mention, as the documentation says that Windows support is  
not up to \*nix counterpart.

---

<div class="post-metadata">

**Author:** ![sanand83](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5ac83/32.png) [@sanand83](https://www.ruby-forum.com/u/sanand83)\
**Post date:** [August 24, 2010, 4:35pm UTC](https://www.ruby-forum.com/t/mongrel1-1-6-installation-not-working-with-ruby-1-9-1-in-win/193692/7 "2010-08-24T16:35:44Z")

</div>

On Aug 23, 4:23 pm, Luis L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> not native or can’t be installed as a Windows Service.
> 
> –  
> Luis L.

From [nginx](http://nginx.org/en/) website:

Tested OS and platforms

```
* FreeBSD 3 — 8 / i386; FreeBSD 5 — 8 / amd64;
* Linux 2.2 — 2.6 / i386; Linux 2.6 / amd64;
* Solaris 9 / i386, sun4u; Solaris 10 / i386, amd64, sun4v;
* MacOS X / ppc, i386;
* Windows XP, Windows Server 2003.

```

---

<div class="post-metadata">

**Author:** ![sanand83](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5ac83/32.png) [@sanand83](https://www.ruby-forum.com/u/sanand83)\
**Post date:** [August 24, 2010, 9:48pm UTC](https://www.ruby-forum.com/t/mongrel1-1-6-installation-not-working-with-ruby-1-9-1-in-win/193692/8 "2010-08-24T21:48:41Z")

</div>

Hi All,

Going through the NGINX documentation, I learn that  
“…nginx/Windows runs as a standard console application, not a service  
…”

So I feel that both thin and NGINX server the same purpose in the  
windows environment. Please do correct me if I am wrong.

By the way I am facing an error when I am trying to proxy the thin  
server via the Apache server. I am getting the DNS failed

# ====================================================== [Tue Aug 24 23:14:34 2010] [error] [client 127.0.0.1] proxy: DNS lookup failure for: www.sssmh.org:3000javascripts returned by /javascripts/jquery.js, referer: [http://www.sssmh.org/](http://www.sssmh.org/)

Like this the same error is repeated for all the public folder  
renderings (Images, Javascripts, css).

The modified conf file additions are pasted as below.

===================================================  
\<VirtualHost \*:80\>  
ServerName [example.org](http://example.org)  
ServerAlias [www.example.org](http://www.example.org)

DocumentRoot “G:/Aptana\_Workspace/sssmh/public/”

\<Directory “G:/Aptana\_Workspace/sssmh/public/”\>  
Options FollowSymLinks  
AllowOverride None  
Order allow,deny  
Allow from all

RewriteEngine On

# Redirect all non-static requests to thin

RewriteCond %{DOCUMENT\_ROOT}/%{REQUEST\_FILENAME} !-f  
RewriteRule ^/(.\*)$ [http://www.sssmh.org:3000](http://www.sssmh.org:3000)%{REQUEST\_URI} [P,QSA,L]

ProxyPass / [http://www.example.org:3000](http://www.example.org:3000)  
ProxyPassReverse / [http://www.example.org:3000](http://www.example.org:3000)  
ProxyPreserveHost on

====================================================

I feel there is some way of allowing these public folder elements to the  
website. Please rescue me once again please.

Regards,  
Sandy

---

<div class="post-metadata">

**Author:** ![sanand83](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5ac83/32.png) [@sanand83](https://www.ruby-forum.com/u/sanand83)\
**Post date:** [August 25, 2010, 12:32pm UTC](https://www.ruby-forum.com/t/mongrel1-1-6-installation-not-working-with-ruby-1-9-1-in-win/193692/9 "2010-08-25T12:32:22Z")

</div>

Hi Friends,

> By the way I am facing an error when I am trying to proxy the thin  
> server via the Apache server. I am getting the DNS failed
> 
> # ====================================================== [Tue Aug 24 23:14:34 2010] [error] [client 127.0.0.1] proxy: DNS lookup failure for: www.sssmh.org:3000javascripts returned by /javascripts/jquery.js, referer: [http://www.sssmh.org/](http://www.sssmh.org/)

I found the solution for the DNS lookup issue. Finally, as usual, there  
was this small thing “/”, I forgot after the

## Previously, I forgot to put the “/” after the URL “[http://www.example.org:3000](http://www.example.org:3000)”, so was not ale to resolve the URL like http://www.example.org:3000stylsheets

.

> ProxyPass / [http://www.example.org:3000](http://www.example.org:3000)  
> ProxyPassReverse / [http://www.example.org:3000](http://www.example.org:3000)  
> ProxyPreserveHost on

* * *

## After inserting the “/” after the URL, it became [http://www.example.org:3000/](http://www.example.org:3000/) and the corresponding stylesheets URL became [http://www.example.org:3000/styleseets](http://www.example.org:3000/styleseets).

.

> ProxyPass / [http://www.example.org:3000/](http://www.example.org:3000/)  
> ProxyPassReverse / [http://www.example.org:3000/](http://www.example.org:3000/)  
> ProxyPreserveHost on

* * *

Now I am trying to find if there is a way to launch the thin server as a  
service in the windows environment, if not as a cluster :). Please do  
suggest some things, so that I get some leads and take it forward.

Regards,  
Sandy.
