Forum: Ruby on Rails twitter gem not getting installed

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Nilesh K. (Guest)
on 2008-12-19 19:00
(Received via mailing list)
Hi guys,

       I have to update a Twiter account from my Rails application. So I
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
        '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

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

SP (Guest)
on 2008-12-22 23:51
(Received via mailing list)

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.

Dejan D. (Guest)
on 2008-12-23 00:55
(Received via mailing list)
This is a common problem on windows platform where development tools
(compiler and linker) and libraries are not in the path.
Nilesh K. (Guest)
on 2008-12-23 05:47
(Received via mailing list)
Thanks for reply.
This topic is locked and can not be replied to.