在你说之前yum -y install ruby193
......我做到了。
请注意,我不是 Ruby 开发人员,但需要将此程序作为其他开发人员通过 Web 服务工作的一部分。(他不在。)任何帮助将不胜感激。
我尝试按照说明安装库并得到:
[root@ctbroker console]# gem install json -v '1.8.0'
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension. /opt/rh/ruby193/root/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /opt/rh/ruby193/root/usr/share/include/ruby.h
Gem files will remain installed in /opt/rh/ruby193/root/usr/local/share/gems/gems/json-1.8.0 for inspection.
Results logged to /opt/rh/ruby193/root/usr/local/share/gems/gems/json-1.8.0/ext/json/ext/generator/gem_make.out
我注意到这ruby.h
仅在机器上/usr/lib64/ruby/1.8/x86_64-linux/ruby.h
。
我错过了什么?