twitter gem not getting installed

Hi guys,

   I have to update a Twiter account from my Rails application. So I am trying to install Twitter4R api.
   But I am getting error when i give following command:

   C:\>gem install twitter4r

    Building native extensions.  This could take a while...

    ERROR:  Error installing twitter4r:
    ERROR: Failed to build gem native extension.

    c:/ruby/bin/ruby.exe extconf.rb install twitter4r creating Makefile

    '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/json-1.1.3 for

     Results logged to c:/ruby/lib/ruby/gems/1.8/gems/json-1.1.3/ext/json/ext/parser/

So, what could be the problem? Do I need to install some supporting gem file? Please help me.



Unfortunately this isn't the right group to post this query, but since
I see similar questions about Twitter4R were previously asked on this
group I will give an answer and CC the Twitter4R-Users Google Group

This following blog post talks about his issues with install JSON
1.1.3 (which is what Twitter4R gem install tries to do because it
depends on the JSON gem):

The compilation error is on the JSON Ruby gem install not specifically
the Twitter4R gem install. A workaround might be to install the JSON
1.1.1 version on Windows (which I believe works) or put cl.exe's
directory in your PATH environment variable.


This is a common problem on windows platform where development tools
(compiler and linker) and libraries are not in the path.

Thanks for reply.