gem install json -v '1.8.2' error

# gem install json -v '1.8.2'
Building native extensions. This could take a while…
ERROR: Error installing json:
ERROR: Failed to build gem native extension.json

/usr/bin/ruby extconf.rb

mkmf.rb can’t find header files for ruby at /usr/share/include/ruby.hruby

Gem files will remain installed in /usr/local/share/gems/gems/json-1.8.2 for inspection.
Results logged to /usr/local/share/gems/gems/json-1.8.2/ext/json/ext/generator/gem_make.outmarkdown

解決上述問題,須要安裝以下包。
# yum install ruby-develui

相關文章
相關標籤/搜索