How to Install Ruby, Ruby Gems, and Rails on CentOS 7


Researcher's Blog

To install Ruby:

[root@localhost ~]# sudo yum install ruby

Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
* base: mirror.nbrc.ac.in
* extras: mirror.nbrc.ac.in
* rpmforge: mirror.nl.leaseweb.net
* updates: centosh5.centos.org
base                                                     | 3.7 kB     00:00
http://192.168.19.130/centos/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 – “couldn’t connect to host”
Trying other mirror.
extras                                                   | 3.4 kB     00:00
extras/primary_db                                        |  30 kB     00:00
http://packages.openqrm.com/centos/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404”
Trying other mirror.
rpmforge                                                 | 1.9 kB     00:00
updates                                                  | 3.4 kB     00:00
updates/primary_db                                                                             | 1.5 MB     00:28
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package ruby.x86_64 0:1.8.7.374-3.el6_6 will be installed
–> Processing Dependency: ruby-libs = 1.8.7.374-3.el6_6 for package: ruby-1.8.7.374-3.el6_6.x86_64
–> Processing Dependency: libruby.so.1.8()(64bit) for package: ruby-1.8.7.374-3.el6_6.x86_64
–> Running transaction check
—> Package ruby-libs.x86_64 0:1.8.7.374-3.el6_6 will be installed
–> Processing Dependency: libreadline.so.5()(64bit) for package: ruby-libs-1.8.7.374-3.el6_6.x86_64
–> Running transaction check
—> Package compat-readline5.x86_64 0:5.2-17.1.el6 will be…

View original post 759 more words