tags:

views:

311

answers:

2

I'm having problems getting thin working on my Windows 7 machine (I've already installed eventmachine v0.8.1):

>gem install thin --ignore-dependencies
checking for main() in -lc... no
creating Makefile

make
'make' is not recognized as an internal or external command, operable program or batch file.

Are there not meant to be precompiled binaries available for thin?

A: 

Apparently, there aren't any pre-built binaries.

You will need a C compiler installed. If you installed Ruby via the RubyInstaller, that is going to be really easy, if you used the One-Click Installer, it's goint to be a PITA.

See also: problems installing thin on Windows, which contains an answer by the RubyInstaller and One-Click Installer maintainer.

Jörg W Mittag
this answer is right: you need a compiler available which is the same compiler used to build ruby (which is made easier with the devkit)...or you could ask the thin gem developers to release binary extensions for their gem.
rogerdpack
+1  A: 

I've worked around the lack of precompiled binaries by installing a compiler:

  1. I iInstalled MinGW to C:\MinGW (see here for installation instructions)
  2. I then installed MSYS to C:\msys\1.0
  3. I then added c:\MinGW\bin and C:\msys\1.0\bin to my %PATAH%
  4. Finally I ran gem install thin and amazingly it all worked!

I hope this helps out some other poor Windows ruby developer! :-)

Kragen