我是否在RHEL上正确安装了Ruby 1.9.3? [英] Did I install Ruby 1.9.3 correctly on RHEL?
本文介绍了我是否在RHEL上正确安装了Ruby 1.9.3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在您说yum -y install ruby193
...我做到了.
Before you say yum -y install ruby193
... I did that.
请注意,我不是Ruby开发人员,但需要此程序作为通过Web服务的其他开发人员工作的一部分. (他不在家.)任何帮助将不胜感激.
Please note that I am not a Ruby developer, but need this program as part of another developer's work via web services. (He is not available.) Any help would be greatly appreciated.
我尝试按照说明安装库并得到:
I attempted to install a library per instructions and got:
[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
上的计算机上.
I noticed that ruby.h
is only on the machine at /usr/lib64/ruby/1.8/x86_64-linux/ruby.h
.
我想念什么?
推荐答案
我能够通过运行以下命令在系统上解决此问题:
I was able to to fix this problem on my system by running:
sudo yum install ruby193-ruby-devel.x86_64
这篇关于我是否在RHEL上正确安装了Ruby 1.9.3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文