Problems installing thin on Windows

I am trying to install Thin on Windows (ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]) but I get an error:

C:> gem install thin Build a native extension. This can result in while ... ERROR: Error installing thin: ERROR: Could not create custom gem extension.

C: /rails/ruby/bin/ruby.exe extconf.rb check for main () in c.lib ... no create Makefile

NMAKE

Microsoft (R) Utility Version 1.50 Software Support Copyright (c) Microsoft Corp 1988-94. All rights reserved.

    cl -nologo -I. -I. -IC:/rails/ruby/lib/ruby/1.8/i386-mswin32

      

-I. -MD -Zi -O2b2xg- -G6 -c -Tcparser.c 'cl' is not recognized as an internal or external command, operative program, or batch file. NMAKE: fatal error U1077: 'C: \ WINDOWS \ system32 \ cmd.exe': return code '0x1' Stop.

Gem files will be installed in C: /rails/ruby/lib/ruby/gems/1.8/gems/thin-1.2.5 for verification. Results recorded in C: /rails/ruby/lib/ruby/gems/1.8/gems/thin-1.2.5/ext/thin_parser/gem_make.out

Google doesn't seem to be helping me. Does anyone know what's going on?

thanks

+1


a source to share


1 answer


Slim needs to compile the C extension it uses. While it seems that you have it nmake

, it seems that you don't have the complete Visual C ++ 6.0 you need to build it (the missing one cl

is the C compiler).

I would recommend that you use a MinGW-based Ruby build called RubyInstaller, which is the successor to the One-Click installer.

Thin provides precompiled binaries for this version of Ruby. Also, by adding the Development Kit as described in the Tutorials , you will be able to compile other gems that the Windows binaries are missing.



See the RubyInstaller website for details and download information

Also, if you have further questions, read the FAQ section of the wiki.

Hope it helps.

+6


a source







All Articles