I\'m having problems getting thin working on my Windows 7 machine (I\'ve already installed eventmachine v0.8.1):
>
gem install thin --i
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.
I've worked around the lack of precompiled binaries by installing a compiler:
gem install thin
and amazingly it all worked!I hope this helps out some other poor Windows ruby developer! :-)
There actually are pre-built binaries for particular versions of Thin but you need to know which ones. To get the latest pre-built win32 version do the following:
gem install thin -v 1.2.11
Here are the results from my installation:
c:\>gem install thin -v 1.2.11 Successfully installed thin-1.2.11-x86-mswin32 1 gem installed Installing ri documentation for thin-1.2.11-x86-mswin32... Updating ri class cache with 3611 classes... Installing RDoc documentation for thin-1.2.11-x86-mswin32...
A binary for thin is in fact available (and apparently one has been since ver 1.2.2).
However, I couldn't install thin on Windows 7 with Ruby 1.9.2 (p290) because of its dependency on EventMachine.
Running gem install thin --ignore-dependencies
was what was needed to get thin itself installed.
Just wanted to add this note for some other ruby on Windows user.