Error Building Gem

Posted by Joel M. on Stack Overflow See other posts from Stack Overflow or by Joel M.
Published on 2010-04-02T18:53:37Z Indexed on 2010/04/02 19:03 UTC
Read the original article Hit count: 497

Filed under:
|
|

I tried to install the following gem:

http://github.com/maxjustus/sinatra-authentication

on Windows 7 running Ruby 1.9 from the One-Click Installer.

I got the following error:

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Joel>gem install sinatra-authentication
Building native extensions.  This could take a while...
ERROR:  Error installing sinatra-authentication:
        ERROR: Failed to build gem native extension.

C:/Ruby19/bin/ruby.exe extconf.rb
creating Makefile

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


Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/yajl-ruby-
0.7.5 for inspection.
Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/yajl-ruby-0.7.5/ext/gem_mak
e.out

I looked everywehere online, tried to install earlier versions, and attempted a manual install without success (it gave me a stack too deep error).

I suspect there are problems with the yajl-ruby gem (http://github.com/brianmario/yajl-ruby), a dependency? (I think)

The logs in gem_make.out show:

C:/Ruby19/bin/ruby.exe extconf.rb
creating Makefile

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

Do you have any idea as to how to solve this? Thanks!

© Stack Overflow or respective owner

Related posts about ruby

Related posts about rubygems