Did I install Ruby 1.9.3 correctly on RHEL?

匆匆过客 提交于 2019-12-04 06:42:00

I was able to to fix this problem on my system by running:

sudo yum install ruby193-ruby-devel.x86_64

RHELyum install scl-utils scl-utils-build

CENTOSyum install centos-release-SCL -y

yum install ruby193 ruby193-ruby-devel augeas-devel libxml2-devel -y
scl enable ruby193 "ruby -v"
scl enable ruby193 "bash"
gem install json -v '1.8.0'
Krishna Sharma

Step 1: Run below command on your terminal:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

Step 2: Install RVM Development version on your system:

\curl -sSL https://get.rvm.io | bash

For Latest version of Ruby i.e. 2.2.1 follow below steps:

\curl -sSL https://get.rvm.io | bash -s stable --ruby

After this step you should see a message like: To start using RVM you need to run source /home/user_name/.rvm/scripts/rvm in all your open shell windows, in rare cases you need to reopen all shell windows.

Step 3: Activate ruby using the message

Source /home/user_name/.rvm/scripts/rvm

Step 4: Check Ruby version

ruby --version

Step 5: Say thanks if it works ;)

Jeffrey Ye

You may need to install following packages first:

yum install ruby-devel.x86_64 libxslt-devel libxml2-devel
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!