rvm install ruby 2.6.3

[root@vagrant vagrant-centos-7]# yum install gcc-c++ patch readline readline-devel zlib zlib-devel \
>    libyaml-devel libffi-devel openssl-devel make \
>    bzip2 autoconf automake libtool bison iconv-devel sqlite-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.nbrc.ac.in
 * epel: ftp.riken.jp
 * extras: mirror.nbrc.ac.in
 * updates: mirror.nbrc.ac.in
base                                                            | 3.6 kB  00:00:00   
extras                                                          | 3.4 kB  00:00:00   
kubernetes/signature                                            |  454 B  00:00:00   
kubernetes/signature                                            | 1.4 kB  00:00:00 !!!
updates                                                         | 3.4 kB  00:00:00   
virtualbox/7/x86_64/signature                                   |  181 B  00:00:00   
virtualbox/7/x86_64/signature                                   | 2.9 kB  00:00:00 !!!
Package gcc-c++-4.8.5-36.el7_6.2.x86_64 already installed and latest version
Package patch-2.7.1-10.el7_5.x86_64 already installed and latest version
Package readline-6.2-10.el7.x86_64 already installed and latest version
Package zlib-1.2.7-18.el7.x86_64 already installed and latest version
Package zlib-devel-1.2.7-18.el7.x86_64 already installed and latest version
Package 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64 already installed and latest version
Package 1:make-3.82-23.el7.x86_64 already installed and latest version
Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version
Package autoconf-2.69-11.el7.noarch already installed and latest version
Package automake-1.13.4-3.el7.noarch already installed and latest version
Package libtool-2.4.2-22.el7_3.x86_64 already installed and latest version
Package bison-3.0.4-2.el7.x86_64 already installed and latest version
No package iconv-devel available.
Resolving Dependencies
--> Running transaction check
---> Package libffi-devel.x86_64 0:3.0.13-18.el7 will be installed
---> Package libyaml-devel.x86_64 0:0.1.4-11.el7_0 will be installed
---> Package readline-devel.x86_64 0:6.2-10.el7 will be installed
--> Processing Dependency: ncurses-devel for package: readline-devel-6.2-10.el7.x86_64
---> Package sqlite-devel.x86_64 0:3.7.17-8.el7 will be installed
--> Running transaction check
---> Package ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================
 Package               Arch          Version                         Repository   Size
=======================================================================================
Installing:
 libffi-devel          x86_64        3.0.13-18.el7                   base         23 k
 libyaml-devel         x86_64        0.1.4-11.el7_0                  base         82 k
 readline-devel        x86_64        6.2-10.el7                      base        138 k
 sqlite-devel          x86_64        3.7.17-8.el7                    base        104 k
Installing for dependencies:
 ncurses-devel         x86_64        5.9-14.20130511.el7_4           base        712 k

Transaction Summary
=======================================================================================
Install  4 Packages (+1 Dependent package)

Total download size: 1.0 M
Installed size: 3.7 M
Is this ok [y/d/N]: y
Downloading packages:
(1/5): libffi-devel-3.0.13-18.el7.x86_64.rpm                    |  23 kB  00:00:00   
(2/5): readline-devel-6.2-10.el7.x86_64.rpm                     | 138 kB  00:00:00   
(3/5): libyaml-devel-0.1.4-11.el7_0.x86_64.rpm                  |  82 kB  00:00:00   
(4/5): sqlite-devel-3.7.17-8.el7.x86_64.rpm                     | 104 kB  00:00:00   
(5/5): ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm           | 712 kB  00:00:00   
---------------------------------------------------------------------------------------
Total                                                     883 kB/s | 1.0 MB  00:01   
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : ncurses-devel-5.9-14.20130511.el7_4.x86_64                          1/5
  Installing : readline-devel-6.2-10.el7.x86_64                                    2/5
  Installing : sqlite-devel-3.7.17-8.el7.x86_64                                    3/5
  Installing : libffi-devel-3.0.13-18.el7.x86_64                                   4/5
  Installing : libyaml-devel-0.1.4-11.el7_0.x86_64                                 5/5
  Verifying  : readline-devel-6.2-10.el7.x86_64                                    1/5
  Verifying  : libyaml-devel-0.1.4-11.el7_0.x86_64                                 2/5
  Verifying  : libffi-devel-3.0.13-18.el7.x86_64                                   3/5
  Verifying  : ncurses-devel-5.9-14.20130511.el7_4.x86_64                          4/5
  Verifying  : sqlite-devel-3.7.17-8.el7.x86_64                                    5/5

Installed:
  libffi-devel.x86_64 0:3.0.13-18.el7       libyaml-devel.x86_64 0:0.1.4-11.el7_0   
  readline-devel.x86_64 0:6.2-10.el7        sqlite-devel.x86_64 0:3.7.17-8.el7       

Dependency Installed:
  ncurses-devel.x86_64 0:5.9-14.20130511.el7_4                                       

Complete!
[root@vagrant vagrant-centos-7]# curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
gpg: directory `/root/.gnupg' created
gpg: new configuration file `/root/.gnupg/gpg.conf' created
gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/root/.gnupg/secring.gpg' created
gpg: keyring `/root/.gnupg/pubring.gpg' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key D39DC0E3: public key "Michal Papis (RVM signing) <mpapis@gmail.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
gpg: no ultimately trusted keys found
[root@vagrant vagrant-centos-7]# curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
gpg: key 39499BDB: public key "Piotr Kuczynski <piotr.kuczynski@gmail.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
[root@vagrant vagrant-centos-7]# curl -L get.rvm.io | bash -s stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   194  100   194    0     0    259      0 --:--:-- --:--:-- --:--:--   259
100 24535  100 24535    0     0  18074      0  0:00:01  0:00:01 --:--:--  826k
Downloading https://github.com/rvm/rvm/archive/1.29.9.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.9/1.29.9.tar.gz.asc
gpg: Signature made Wed 10 Jul 2019 02:01:02 PM IST using RSA key ID 39499BDB
gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 7D2B AF1C F37B 13E2 069D  6956 105B D0E7 3949 9BDB
GPG verified '/usr/local/rvm/archives/rvm-1.29.9.tgz'
Creating group 'rvm'
Installing RVM to /usr/local/rvm/
Installation of RVM in /usr/local/rvm/ is almost complete:

  * First you need to add all users that will be using rvm to 'rvm' group,
    and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.

  * To start using RVM you need to run `source /etc/profile.d/rvm.sh`
    in all your open shell windows, in rare cases you need to reopen all shell windows.
  * Please do NOT forget to add your users to the rvm group.
     The installer no longer auto-adds root or users to the rvm group. Admins must do this.
     Also, please note that group memberships are ONLY evaluated at login time.
     This means that users must log out then back in before group membership takes effect!
Thanks for installing RVM 🙏
Please consider donating to our open collective to help us maintain RVM.

👉  Donate: https://opencollective.com/rvm/donate


[root@vagrant vagrant-centos-7]# source /etc/profile.d/rvm.sh
[root@vagrant vagrant-centos-7]# rvm reload
RVM reloaded!
[root@vagrant vagrant-centos-7]# rvm requirements run
Checking requirements for centos.
Requirements installation successful.
[root@vagrant vagrant-centos-7]# rvm list known
# MRI Rubies
[ruby-]1.8.6[-p420]
[ruby-]1.8.7[-head] # security released on head
[ruby-]1.9.1[-p431]
[ruby-]1.9.2[-p330]
[ruby-]1.9.3[-p551]
[ruby-]2.0.0[-p648]
[ruby-]2.1[.10]
[ruby-]2.2[.10]
[ruby-]2.3[.8]
[ruby-]2.4[.6]
[ruby-]2.5[.5]
[ruby-]2.6[.3]
[ruby-]2.7[.0-preview1]
ruby-head

# for forks use: rvm install ruby-head-<name> --url https://github.com/github/ruby.git --branch 2.2

# JRuby
jruby-1.6[.8]
jruby-1.7[.27]
jruby-9.1[.17.0]
jruby[-9.2.7.0]
jruby-head

# Rubinius
rbx-1[.4.3]
rbx-2.3[.0]
rbx-2.4[.1]
rbx-2[.5.8]
rbx-3[.107]
rbx-4[.3]
rbx-head

# TruffleRuby
truffleruby[-19.1.0]

# Opal
opal

# Minimalistic ruby implementation - ISO 30170:2012
mruby-1.0.0
mruby-1.1.0
mruby-1.2.0
mruby-1.3.0
mruby-1[.4.1]
mruby-2[.0.1]
mruby[-head]

# Ruby Enterprise Edition
ree-1.8.6
ree[-1.8.7][-2012.02]

# Topaz
topaz

# MagLev
maglev-1.0.0
maglev-1.1[RC1]
maglev[-1.2Alpha4]
maglev-head

# Mac OS X Snow Leopard Or Newer
macruby-0.10
macruby-0.11
macruby[-0.12]
macruby-nightly
macruby-head

# IronRuby
ironruby[-1.1.3]
ironruby-head
[root@vagrant vagrant-centos-7]# rvm list

# No rvm rubies installed yet. Try 'rvm help install'.

[root@vagrant vagrant-centos-7]# rvm use 2.6 --default
Required ruby-2.6.3 is not installed.
To install do: 'rvm install "ruby-2.6.3"'
[root@vagrant vagrant-centos-7]# rvm install "ruby-2.6.3"
Searching for binary rubies, this might take some time.
No binary rubies available for: centos/7/x86_64/ruby-2.6.3.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for centos.
Requirements installation successful.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.6.3, this may take a while depending on your cpu(s)...
ruby-2.6.3 - #downloading ruby-2.6.3, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13.8M  100 13.8M    0     0  1731k      0  0:00:08  0:00:08 --:--:-- 1922k
ruby-2.6.3 - #extracting ruby-2.6.3 to /usr/local/rvm/src/ruby-2.6.3.....
ruby-2.6.3 - #configuring.............................................................-
ruby-2.6.3 - #post-configuration..
ruby-2.6.3 - #compiling......../
ruby-2.6.3 - #installing...............................
ruby-2.6.3 - #making binaries executable..
ruby-2.6.3 - #downloading rubygems-3.0.6
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  866k  100  866k    0     0   993k      0 --:--:-- --:--:-- --:--:--  993k
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.6.3 - #extracting rubygems-3.0.6.....
ruby-2.6.3 - #removing old rubygems........
ruby-2.6.3 - #installing rubygems-3.0.6...............................................
ruby-2.6.3 - #gemset created /usr/local/rvm/gems/ruby-2.6.3@global
ruby-2.6.3 - #importing gemset /usr/local/rvm/gemsets/global.gems.....................-
ruby-2.6.3 - #generating global wrappers.......
ruby-2.6.3 - #gemset created /usr/local/rvm/gems/ruby-2.6.3
ruby-2.6.3 - #importing gemsetfile /usr/local/rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.6.3 - #generating default wrappers.......
ruby-2.6.3 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.6.3 - #complete
Ruby was built without documentation, to build it run: rvm docs generate-ri
[root@vagrant vagrant-centos-7]# ruby --version
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
[root@vagrant vagrant-centos-7]# 

Comments

Popular posts from this blog

ansible redhat cluster qorum qdevice

PE 3.9.0 on centos 6

gfs2 cluster