You can install it with default yum install -y ruby ruby-devel rubygems

Other way is to compile it by yourself

Ruby

wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p302.tar.gz
tar -zxvf ruby-1.8.7-p302.tar.gz
cd ruby-1.8.7-p302
./configure --with-openssl-dir=/usr/lib/openssl
make
make install

Rubygems

wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
tar -zxvf rubygems-1.3.7.tgz
cd rubygems-1.3.7
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install

Check if installed

ruby -v
gem -v

相关文章:

  • 2022-12-23
  • 2022-03-02
  • 2021-08-13
  • 2022-02-09
  • 2021-09-25
  • 2021-06-11
  • 2021-04-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-13
  • 2021-04-02
  • 2021-09-12
  • 2021-07-15
  • 2021-09-22
  • 2022-02-26
相关资源
相似解决方案