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
rubyGem版本:2.4.5
谢谢!
为什么.rb在最后的宝石名称?你有没有试过** $ gem install http_parser -v'0.6.0'**? –
@Ed de Almeida我得到这个: '错误:无法在任何存储库中找到有效的gem'http_parser'(= 0.6.0) 错误:可能的选择:http-parser' –
并试过这种替代方法吗? –