Forum: Ruby on Rails twitter gem not getting installed

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D921e53e9ad4d762fd022f45cdd63da0?d=identicon&s=25 Nilesh Kumar (nilez)
on 2008-12-19 18:00
(Received via mailing list)
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
        '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
         inspection.
         Results logged to
c:/ruby/lib/ruby/gems/1.8/gems/json-1.1.3/ext/json/ext/parser/
         gem_make.out


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

Thanks.
A6edd4f937cb17126a292d4ea71cf2ad?d=identicon&s=25 SP (Guest)
on 2008-12-22 22:51
(Received via mailing list)
Hi,

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
(twitter4r-users).

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):
http://justindz.tumblr.com/post/63305648/the-battl...

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.

HTH,
Susan
04952a6ee948f345e9c3727850d09a1b?d=identicon&s=25 Dejan Dimic (Guest)
on 2008-12-22 23: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.
D921e53e9ad4d762fd022f45cdd63da0?d=identicon&s=25 Nilesh Kumar (nilez)
on 2008-12-23 04:47
(Received via mailing list)
Thanks for reply.
This topic is locked and can not be replied to.