2016-02-17 122 views
1

我是新來的這一切,但是當我嘗試使用寶石安裝http_parser我得到這個錯誤:在安裝http_parser.rb錯誤:無法建立寶石原生擴展

[email protected] ~/ava-home (master) 
$ gem install http_parser.rb -v '0.6.0' 
Building native extensions. This could take a while... 
ERROR: Error installing http_parser.rb: 
     ERROR: Failed to build gem native extension. 

    c:/Ruby22-x64/bin/ruby.exe -r ./siteconf20160217-15056-1hoiyfc.rb extconf.rb 

creating Makefile 

make "DESTDIR=" clean 

make "DESTDIR=" 
generating ruby_http_parser-x64-mingw32.def 
make: *** No rule to make target '/c/Ruby22-x64/include/ruby-2.2.0/ruby.h', need 
ed by 'ruby_http_parser.o'. Stop. 

make failed, exit code 2 

Gem files will remain installed in c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/http_p 
arser.rb-0.6.0 for inspection. 
Results logged to c:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0 
/http_parser.rb-0.6.0/gem_make.out 

紅寶石版本:2.2。 1

ruby​​Gem版本:2.4.5

謝謝!

+0

爲什麼.rb在最後的寶石名稱?你有沒有試過** $ gem install http_parser -v'0.6.0'**? –

+0

@Ed de Almeida我得到這個: '錯誤:無法在任何存儲庫中找到有效的gem'http_parser'(= 0.6.0) 錯誤:可能的選擇:http-parser' –

+0

並試過這種替代方法嗎? –

回答

相關問題