2015-02-09 58 views
0

我按照步驟正確安裝了httparty,包括安裝dev套件。但我仍然收到以下錯誤。安裝httparty時出錯

C:\Ruby193>gem install httparty 
Temporarily enhancing PATH to include DevKit... 
Building native extensions. This could take a while... 
ERROR: Error installing httparty: 
     ERROR: Failed to build gem native extension. 

     C:/Ruby193/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:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8. 
2 for inspection. 
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.2/ext/json/ext/ge 
nerator/gem_make.out 

我沒有很多的經驗與紅寶石

+0

你有安裝make,並存在你的路徑? – user1929959 2015-02-09 20:42:43

+0

我不這麼認爲。 – 2015-02-09 21:40:01

回答

-2

嘗試更新RubyGems的舊版本rvm install rubygems 1.8.29,然後嘗試重新安裝httparty。它看起來像可能工作...但我也是Ruby的新手,所以我有點在這裏猜測哈哈!

+0

httparty的一個要求是Ruby 1.9.3或更新。 – 2015-02-09 21:37:07

+0

這篇文章在GitHub上與我們在這裏討論的文章類似嗎? https://github.com/rubygems/rubygems/issues/977 – Tmanx125 2015-02-09 22:15:38

0

我正在使用Ruby 1.8.9 Httparty 0.11.0與我的ruby版本兼容。