# Mongrel install crash on win32

**URL:** <https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379>\
**Category:** Mongrel\
**Created:** [November 27, 2007, 1:34pm UTC](https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379 "2007-11-27T13:34:11Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![jesperronn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Post date:** [November 27, 2007, 1:34pm UTC](https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379/1 "2007-11-27T13:34:11Z")

</div>

Something suddenly went wrong in my ruby install.

When installing Mongrel on my Windows XP laptop, it incorrectly tries to  
build it as a native extension. I don’t even get the selection where I  
can choose to install a compiled version.

I would appreciate any help/links or similar, as I frankly don’t  
understand what’s going on and why I dont get the usual selection box.

C:\>gem install mongrel  
Building native extensions. This could take a while…  
ERROR: Error installing mongrel:  
ERROR: Failed to build gem native extension.

c:/ruby/bin/ruby.exe extconf.rb install mongrel  
creating Makefile

nmake  
‘nmake’ is not recognized as an internal or external command,  
operable program or batch file.

Gem files will remain installed in  
c:/ruby/lib/ruby/gems/1.8/gems/fastthread-1.0.1 for inspection.  
Results logged to  
c:/ruby/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem\_make.out

PS. for further investigation I have attached the output from running  
the gem install with --debug flag

---

<div class="post-metadata">

**Author:** ![jesperronn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Post date:** [November 27, 2007, 1:38pm UTC](https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379/2 "2007-11-27T13:38:58Z")

</div>

On Nov 27, 2007 9:34 AM, Jesper RÃ¸nn-jensen [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Something suddenly went wrong in my ruby install.
> 
> When installing Mongrel on my Windows XP laptop, it incorrectly tries to  
> build it as a native extension. I don’t even get the selection where I  
> can choose to install a compiled version.
> 
> I would appreciate any help/links or similar, as I frankly don’t  
> understand what’s going on and why I dont get the usual selection box.

Two things:

What version of RubyGems are you using? 0.9.5 shows some problems with  
mswin32 platform.

It seems this is the problem, since there is a native build of  
fastthread for mswin32 (even that mongrel-mswin32 don’t require it).

I suggest you revert to 0.9.4 until this issue get solved. Eric H.  
is working on it.

## – Luis L. Multimedia systems

Leaders are made, they are not born. They are made by hard effort,  
which is the price which all of us must pay to achieve any goal that  
is worthwhile.  
Vince Lombardi

---

<div class="post-metadata">

**Author:** ![jesperronn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Post date:** [November 27, 2007, 1:53pm UTC](https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379/3 "2007-11-27T13:53:28Z")

</div>

Luis L. wrote:

> What version of RubyGems are you using? 0.9.5 shows some problems with  
> mswin32 platform.
> 
> […]  
> I suggest you revert to 0.9.4 until this issue get solved. Eric H.  
> is working on it.

Thanks for the quick answer! I really appreciate that.

but how do I revert to a previous version??

I tried these without luck:

> > gem uninstall rubygems -v 0.9.5  
> > =\> ERROR: While executing gem … (Gem::InstallError)  
> > Unknown gem rubygems-= 0.9.5  
> > gem uninstall rubygems-update  
> > =\> Successfully uninstalled rubygems-update-0.9.5

Here is my gem environment:  
C:\>gem environment  
RubyGems Environment:

- RUBYGEMS VERSION: 0.9.5 (0.9.5)
- RUBY VERSION: 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]
- INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8
- RUBY EXECUTABLE: c:/ruby/bin/ruby.exe
- RUBYGEMS PLATFORMS:
  - ruby
  - x86-mswin32-60

- GEM PATHS:
  - c:/ruby/lib/ruby/gems/1.8

- GEM CONFIGURATION:
  - :update\_sources =\> true
  - :verbose =\> true
  - :benchmark =\> false
  - :backtrace =\> false
  - :bulk\_threshold =\> 1000

- REMOTE SOURCES:
  - [http://gems.rubyforge.org](http://gems.rubyforge.org)

---

<div class="post-metadata">

**Author:** ![jesperronn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Post date:** [November 27, 2007, 2:47pm UTC](https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379/4 "2007-11-27T14:47:30Z")

</div>

Jesper wrote:

> but how do I revert to a previous version??

OK I found out. Downloaded version 0.9.4 from rubyforge then

gem install rubygems-update-0.9.4.gem

Thanks a lot for pointing me to it 🙂

/Jesper  
Blog: www.justaddwater.dk

Note to self: release 0.9.4 downloaded from  
[http://rubyforge.org/frs/?group\_id=126](http://rubyforge.org/frs/?group_id=126)

---

<div class="post-metadata">

**Author:** ![jesperronn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Post date:** [November 28, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379/5 "2007-11-28T17:16:57Z")

</div>

On Nov 28, 2007 5:38 AM, Jesper RÃ¸nn-jensen [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Here is the proper end of the story:
> 
> I tried to reinstall as described above, but 0.9.5 did not uninstall.  
> End of story was that I had to:
> 
> - uninstall C:\ruby
> - reinstall gems
> 
> It took a bit longer. But finally worked.

Jesper, please excuse I couldn’t answer you back yesterday, was a  
nightmare here at the office (the redundant power supply of one server  
crashed, all the 3!) So took us a lot of hard work to put it back  
online.

Regarding your problem, you should have:

Downloaded rubygems-0.9.4.zip from rubyforge page [1]

Unpacked into any clean folder,

run: ruby setup.rb install

that should have overwrite your 0.9.5 installation.

If that didn’t work as expected, you an also remove  
lib/ruby/site\_ruby/1.8 the files and folders for rubygems:

ubygems.rb rubygems.rb and rubygems folder.

Then install 0.9.4 again as described above.

## – Luis L. Multimedia systems

Leaders are made, they are not born. They are made by hard effort,  
which is the price which all of us must pay to achieve any goal that  
is worthwhile.  
Vince Lombardi

---

<div class="post-metadata">

**Author:** ![jesperronn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Post date:** [November 28, 2007, 9:38am UTC](https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379/6 "2007-11-28T09:38:05Z")

</div>

Here is the proper end of the story:

I tried to reinstall as described above, but 0.9.5 did not uninstall.  
End of story was that I had to:

- uninstall C:\ruby
- reinstall gems

It took a bit longer. But finally worked.

/Jesper  
Blog: www.justaddwater.dk

---

<div class="post-metadata">

**Author:** ![jesperronn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Post date:** [November 28, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379/7 "2007-11-28T19:16:03Z")

</div>

Thanks Luis for getting back.  
I hope for someone to consider implementing a  
gem uninstall --system  
for easier uninstall along the way (even though I hope nobody will ever  
need it).

I’m sorry to hear about the problems at work. Hopefully things will work  
out.  
Thanks!

/Jesper

---

<div class="post-metadata">

**Author:** ![jesperronn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Post date:** [December 11, 2007, 2:03pm UTC](https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379/8 "2007-12-11T14:03:28Z")

</div>

> Regarding your problem, you should have:
> 
> Downloaded rubygems-0.9.4.zip from rubyforge page [1]
> 
> Unpacked into any clean folder,
> 
> run: ruby setup.rb install
> 
> that should have overwrite your 0.9.5 installation.
> 
> If that didn’t work as expected, you an also remove  
> lib/ruby/site\_ruby/1.8 the files and folders for rubygems:
> 
> ubygems.rb rubygems.rb and rubygems folder.
> 
> Then install 0.9.4 again as described above.  
> …

Before I could do “ruby setup.rb install” I needed to do “ruby setup.rb  
config”. 0.9.4 then installed although it seemed to install the docs for  
0.9.5.

Thanks for this.

---

<div class="post-metadata">

**Author:** ![jesperronn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Post date:** [December 12, 2007, 6:49pm UTC](https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379/9 "2007-12-12T18:49:34Z")

</div>

simply “ruby setup.rb” seems to work too

---

<div class="post-metadata">

**Author:** ![jesperronn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Post date:** [December 12, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379/10 "2007-12-12T18:59:29Z")

</div>

On Dec 11, 2007 10:03 AM, Phil T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> …
> 
> Before I could do “ruby setup.rb install” I needed to do “ruby setup.rb  
> config”. 0.9.4 then installed although it seemed to install the docs for  
> 0.9.5.

Oh, I always forget about config _before_ install 😛

The 0.9.5 docs can be removed from lib/ruby/gems/1.8/doc

I hope Eric and the RubyGems team release a fix soon, removes the joy  
of using Ruby…

## – Luis L. Multimedia systems

A common mistake that people make when trying to design  
something completely foolproof is to underestimate  
the ingenuity of complete fools.  
Douglas Adams

---

<div class="post-metadata">

**Author:** ![jesperronn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Post date:** [December 21, 2007, 10:54am UTC](https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379/11 "2007-12-21T10:54:25Z")

</div>

Hi Guys,

I seem to be getting the same error… and I am on /9.4 of gems… ☹  
Any suggestions?

Thanks,  
Ashish

Luis L. wrote:

> On Dec 11, 2007 10:03 AM, Phil T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > …
> > 
> > Before I could do “ruby setup.rb install” I needed to do “ruby setup.rb  
> > config”. 0.9.4 then installed although it seemed to install the docs for  
> > 0.9.5.
> 
> Oh, I always forget about config _before_ install 😛
> 
> The 0.9.5 docs can be removed from lib/ruby/gems/1.8/doc
> 
> I hope Eric and the RubyGems team release a fix soon, removes the joy  
> of using Ruby…
> 
> ## – Luis L. Multimedia systems
> 
> A common mistake that people make when trying to design  
> something completely foolproof is to underestimate  
> the ingenuity of complete fools.  
> Douglas Adams

---

<div class="post-metadata">

**Author:** ![jesperronn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Post date:** [December 21, 2007, 2:39pm UTC](https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379/12 "2007-12-21T14:39:03Z")

</div>

Hi Phil,

Worked perfectly… Thanks

Ashish

Phil T. wrote:

> Mongrel is working with the latest Rails and Rubygems install. Rubygems  
> 1.0 has been released which addresses many of the issues that Windows  
> users have been experiencing.
> 
> gem uninstall mongrel (select all versions)  
> gem update --system  
> gem install rails  
> gem install mongrel
> 
> Rubygems should no longer ask for a platform and should install  
> automatically. Anyone using mongrel\_service though will still have  
> issues but it’s being worked on so hoping to see a fix soon.

---

<div class="post-metadata">

**Author:** ![jesperronn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Post date:** [December 21, 2007, 12:17pm UTC](https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379/13 "2007-12-21T12:17:47Z")

</div>

Mongrel is working with the latest Rails and Rubygems install. Rubygems  
1.0 has been released which addresses many of the issues that Windows  
users have been experiencing.

gem uninstall mongrel (select all versions)  
gem update --system  
gem install rails  
gem install mongrel

Rubygems should no longer ask for a platform and should install  
automatically. Anyone using mongrel\_service though will still have  
issues but it’s being worked on so hoping to see a fix soon.

---

<div class="post-metadata">

**Author:** ![jesperronn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Post date:** [June 8, 2008, 12:45pm UTC](https://www.ruby-forum.com/t/mongrel-install-crash-on-win32/121379/14 "2008-06-08T12:45:47Z")

</div>

> C:\>gem install mongrel

when you install mongrel in win32, you need :  
C:\>gem install mongrel\_service  
because, in win32 support mongrel in service to run webserver.  
And then just run mongrel\_rails to see what services
