Problems installing Thin on windows 7 x86
I am having problems getting thin working on my windows 7 machine (I already installed eventmachine v0.8.1):
>
gem install thin --ignore-dependencies
check on main () in -lc ... no
create Makefilemake
"make" not recognized as an internal or external command, operating program, or batch file.
Shouldn't there be precompiled binaries available for thin?
a source to share
Apparently there are no binaries ready.
You will need a C compiler. If you installed Ruby via RubyInstaller it will be very easy, if you used the One-Click Install installer it should be PITA.
See also: Problems Installing Thin on Windows , which contains an answer with a supporting RubyInstaller and One-Click Installer.
a source to share
I worked on missing precompiled binaries by installing the compiler:
- I installed MinGW to C: \ MinGW (see here for installation instructions)
- Then I installed MSYS to C: \ msys \ 1.0
- Then I added c: \ MinGW \ bin and C: \ msys \ 1.0 \ bin to my% PATH%
- Finally, I ran
gem install thin
and, surprisingly, it all worked!
I hope this helps some other bad Windows Ruby developer! :-)
a source to share
There are actually pre-built binaries for certain Thin versions, but you need to know which ones. To get the latest built-in win32, follow these steps:
- Go to RubyGems Thin Page
- See the Versions section for the x86-mswin32 version to the right of it. (As of today, versions 1.2.11, 1.2.10 etc. have win32 binaries)
- Run the following "gem install" command with the Thin version included in the "-v" flag:
gem install thin -v 1.2.11
Here are the results from my setup:
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 source to share
The binary for thin is actually available (and apparently it has been since 1.2.2).
However, I was unable to install thin on Windows 7 with Ruby 1.9.2 (p290) due to its dependency on EventMachine.
Launching gem install thin --ignore-dependencies
is what it takes to install the thinnest.
Just wanted to add this note for another ruby per windows user.
a source to share