views:

289

answers:

2

Hi,

I was trying to run an OpenSource project which requires ferret to be installed. While installing it using gem install ferret, it's giving this error ->

Building native extensions. This could take a while... ERROR: Error installing ferret: ERROR: Failed to build gem native extension.

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

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

Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/ferret-0.11.6 for inspection. Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/ferret-0.11.6/ext/gem_make.out

So, I tried installing nmake (nmake15.exe), but the one I could find. It does not installs on Windows 7.Please help. How can I install ferret ? Thanks so much.

A: 

nmake is similiar to the make Unix tool used for compiling C and other languages. Some Ruby extensions that use C code need to be compiled.

nmake comes with Visual Studio (C++, C#, and VB). Alternatively, download nmake.exe by itself. Install either and your problem should clear up.

mcandre
A: 

Execute Below command and its works

gem install ferret --platform=mswin32

Amit