Skip to main content

Ubuntu 18.04 - Installing Ruby 2.2.10 & 2.5.1 thru RVM

bboy@Mc-Latitude-E7450:~$ sudo apt-get update
[sudo] password for bboy:
Hit:1 http://ph.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://ph.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]  
Get:3 https://repo.skype.com/deb stable InRelease [4,487 B]                    
Get:4 http://ph.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease                  
Get:6 http://ph.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [618 kB]
Hit:7 http://dl.google.com/linux/chrome/deb stable Release                    
Get:8 https://repo.skype.com/deb stable/main amd64 Packages [2,271 B]          
Get:10 http://ph.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [517 kB]
Hit:11 https://brave-browser-apt-release.s3.brave.com bionic InRelease        
Get:12 http://ph.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [229 kB]
Hit:13 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu bionic InRelease
Get:14 http://ph.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [937 kB]
Get:15 http://ph.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [925 kB]
Get:16 http://linux.teamviewer.com/deb stable InRelease [9,388 B]              
Get:17 http://linux.teamviewer.com/deb stable/main i386 Packages [3,372 B]    
Get:18 http://linux.teamviewer.com/deb stable/main amd64 Packages [3,647 B]    
Get:19 http://ph.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [275 kB]
Get:20 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]  
Hit:21 https://updates.signal.org/desktop/apt xenial InRelease                
Get:22 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [265 kB]
Get:23 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [353 kB]
Get:24 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [125 kB]
Get:25 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [242 kB]
Get:26 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [247 kB]
Get:27 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [140 kB]
Fetched 5,148 kB in 6s (798 kB/s)                                              
Reading package lists... Done
bboy@Mc-Latitude-E7450:~$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following package was automatically installed and is no longer required:
  python3-dateutil
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  dpkg-dev fakeroot g++ g++-7 libalgorithm-diff-perl libalgorithm-diff-xs-perl
  libalgorithm-merge-perl libfakeroot libstdc++-7-dev
Suggested packages:
  debian-keyring g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg
  libstdc++-7-doc
The following NEW packages will be installed:
  build-essential dpkg-dev fakeroot g++ g++-7 libalgorithm-diff-perl
  libalgorithm-diff-xs-perl libalgorithm-merge-perl libfakeroot
  libstdc++-7-dev
0 upgraded, 10 newly installed, 0 to remove and 3 not upgraded.
Need to get 9,815 kB of archives.
After this operation, 43.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ph.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libstdc++-7-dev amd64 7.4.0-1ubuntu1~18.04 [1,467 kB]
Get:2 http://ph.archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++-7 amd64 7.4.0-1ubuntu1~18.04 [7,575 kB]
Get:3 http://ph.archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++ amd64 4:7.4.0-1ubuntu2.2 [1,568 B]
Get:4 http://ph.archive.ubuntu.com/ubuntu bionic-updates/main amd64 dpkg-dev all 1.19.0.5ubuntu2.1 [608 kB]
Get:5 http://ph.archive.ubuntu.com/ubuntu bionic/main amd64 build-essential amd64 12.4ubuntu1 [4,758 B]
Get:6 http://ph.archive.ubuntu.com/ubuntu bionic/main amd64 libfakeroot amd64 1.22-2ubuntu1 [25.9 kB]
Get:7 http://ph.archive.ubuntu.com/ubuntu bionic/main amd64 fakeroot amd64 1.22-2ubuntu1 [62.3 kB]
Get:8 http://ph.archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-diff-perl all 1.19.03-1 [47.6 kB]
Get:9 http://ph.archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-diff-xs-perl amd64 0.04-5 [11.1 kB]
Get:10 http://ph.archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
Fetched 9,815 kB in 6s (1,547 kB/s)                                            
Selecting previously unselected package libstdc++-7-dev:amd64.
(Reading database ... 171597 files and directories currently installed.)
Preparing to unpack .../0-libstdc++-7-dev_7.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libstdc++-7-dev:amd64 (7.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package g++-7.
Preparing to unpack .../1-g++-7_7.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking g++-7 (7.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package g++.
Preparing to unpack .../2-g++_4%3a7.4.0-1ubuntu2.2_amd64.deb ...
Unpacking g++ (4:7.4.0-1ubuntu2.2) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../3-dpkg-dev_1.19.0.5ubuntu2.1_all.deb ...
Unpacking dpkg-dev (1.19.0.5ubuntu2.1) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../4-build-essential_12.4ubuntu1_amd64.deb ...
Unpacking build-essential (12.4ubuntu1) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../5-libfakeroot_1.22-2ubuntu1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.22-2ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../6-fakeroot_1.22-2ubuntu1_amd64.deb ...
Unpacking fakeroot (1.22-2ubuntu1) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../7-libalgorithm-diff-perl_1.19.03-1_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.03-1) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../8-libalgorithm-diff-xs-perl_0.04-5_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-5) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../9-libalgorithm-merge-perl_0.08-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-3) ...
Setting up libstdc++-7-dev:amd64 (7.4.0-1ubuntu1~18.04) ...
Setting up dpkg-dev (1.19.0.5ubuntu2.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libfakeroot:amd64 (1.22-2ubuntu1) ...
Setting up libalgorithm-diff-perl (1.19.03-1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up g++-7 (7.4.0-1ubuntu1~18.04) ...
Setting up fakeroot (1.22-2ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up libalgorithm-diff-xs-perl (0.04-5) ...
Setting up g++ (4:7.4.0-1ubuntu2.2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.4ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
bboy@Mc-Latitude-E7450:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  python3-dateutil
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
After this operation, 267 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 172723 files and directories currently installed.)
Removing python3-dateutil (2.6.1-1) ...
bboy@Mc-Latitude-E7450:~$ sudo apt-get install curl
Reading package lists... Done
Building dependency tree      
Reading state information... Done
curl is already the newest version (7.58.0-2ubuntu3.7).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
bboy@Mc-Latitude-E7450:~$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
gpg: key 105BD0E739499BDB: 5 signatures not checked due to missing keys
gpg: key 105BD0E739499BDB: public key "Piotr Kuczynski <piotr.kuczynski@gmail.com>" imported
gpg: key 3804BB82D39DC0E3: 103 signatures not checked due to missing keys
gpg: key 3804BB82D39DC0E3: public key "Michal Papis (RVM signing) <mpapis@gmail.com>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 2
gpg:               imported: 2
bboy@Mc-Latitude-E7450:~$ \curl -sSL https://get.rvm.io | bash -s stable
Downloading https://github.com/rvm/rvm/archive/1.29.8.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.8/1.29.8.tar.gz.asc
gpg: Signature made Wednesday, 08 May, 2019 10:14:49 PM PST
gpg:                using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown]
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 '/home/bboy/.rvm/archives/rvm-1.29.8.tgz'
Installing RVM to /home/bboy/.rvm/
    Adding rvm PATH line to /home/bboy/.profile /home/bboy/.mkshrc /home/bboy/.bashrc /home/bboy/.zshrc.
    Adding rvm loading line to /home/bboy/.profile /home/bboy/.bash_profile /home/bboy/.zlogin.
Installation of RVM in /home/bboy/.rvm/ is almost complete:

  * To start using RVM you need to run `source /home/bboy/.rvm/scripts/rvm`
    in all your open shell windows, in rare cases you need to reopen all shell windows.
Thanks for installing RVM 🙏
Please consider donating to our open collective to help us maintain RVM.

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


bboy@Mc-Latitude-E7450:~$ source /home/bboy/.rvm/scripts/rvm
bboy@Mc-Latitude-E7450:~$ rvm
Ruby enVironment Manager 1.29.8 (latest) (c) 2009-2017 Michal Papis, Piotr Kuczynski, Wayne E. Seguin

Usage:
 
    rvm [--debug][--trace][--nice] <command> <options>

  for example:

    rvm list                # list installed interpreters
    rvm list known          # list available interpreters
    rvm install <version>   # install ruby interpreter
    rvm use <version>       # switch to specified ruby interpreter
    rvm remove <version>    # remove ruby interpreter
    rvm get <version>       # upgrade rvm: stable, master

Available commands:

  rvm has a number of common commands, listed below. Additional information about any command
  can be found by executing `rvm help <command>`.

  ruby installation
      fetch                   # download binary or sources for selected ruby version
      install                 # install ruby interpreter
      list                    # show currently installed ruby interpreters
      list known              # list available interpreters
      mount                   # install ruby from external locations
      patchset                # tools related to managing ruby patchsets
      pkg                     # install a dependency package
      reinstall               # reinstall ruby and run gem pristine on all gems
      remove                  # remove ruby and downloaded sources
      requirements            # installs dependencies for building ruby
      uninstall               # uninstall ruby, keeping it's sources
      upgrade                 # upgrade to another ruby version, migrating gems

  running different ruby versions
      current                 # print current ruby version and name of used gemsets
      do                      # runs a command against specified and/or all rubies
      gemdir                  # display path to current gem directory ($GEM_HOME)
      use <version>           # switch to given (and already installed) ruby version
      use default             # switch to default ruby, or system if none is set
      use system              # switch to system ruby
      wrapper                 # creates wrapper executables for a given ruby & gemset

  managing gemsets
      gemset                  # manage gemsets
      migrate                 # migrate all gemsets from one ruby to another

  rvm configuration
      alias                   # define aliases for `rvm use`
      autolibs                # tweak settings for installing dependencies automatically
      group                   # tools for managing groups in multiuser installations
      rvmrc                   # tools related to managing .rvmrc trust & loading gemsets

  rvm maintenance
      implode                 # removes the rvm installation completely
      cleanup                 # remove stale source files & data associated with rvm
      cron                    # manage setup for using ruby in cron
      docs                    # tools to make installing ri and rdoc docs easier
      get                     # upgrades RVM to latest head, stable or branched version
      osx-ssl-certs           # helps update OpenSSL certs installed by rvm on OS X
      reload                  # reload rvm source itself
      reset                   # remove all default and system settings
      snapshot                # backup/restore rvm installation

  troubleshooting
      config-get              # display values for RbConfig::CONFIG variables
      debug                   # additional information helping to discover issues
      export                  # set temporary env variable in the current shell
      fix-permissions         # repairs broken permissions
      repair                  # lets you repair parts of your environment, such as
                              # wrappers, env files and similar (general maintenance)
      rubygems                # switches version of rubygems for the current ruby
      tools                   # general information about the ruby env
      unexport                # undo changes made to the environment by `rvm export`
      user                    # tools for managing RVM mixed mode in multiuser installs

   information and documentation
      info                    # show the environment information for current ruby
      disk-usage              # display disk space occupied by rvm
      notes                   # display notes with operating system specifics
      version                 # display rvm version (equal to `rvm -v`)

   additional global options
      --debug                 # toggle debug mode on for very verbose output
      --trace                 # toggle trace mode on to see EVERYTHING rvm is doing
      --nice                  # process niceness (increase the value on slow computers, default 0)

For additional documentation please visit https://rvm.io

bboy@Mc-Latitude-E7450:~$ rvm --version
rvm 1.29.8 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
bboy@Mc-Latitude-E7450:~$ 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-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[.0]
rbx-head

# TruffleRuby
truffleruby[-1.0.0-rc16]

# 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
bboy@Mc-Latitude-E7450:~$ rvm install 2.6.3
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/18.04/x86_64/ruby-2.6.3.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system....
Installing required packages: gawk, autoconf, automake, bison, libffi-dev, libgdbm-dev, libncurses5-dev, libsqlite3-dev, libtool, libyaml-dev, pkg-config, sqlite3, zlib1g-dev, libgmp-dev, libreadline-dev, libssl-dev.................
Requirements installation successful.
ruby-2.6.3 - #configure
ruby-2.6.3 - #download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 18.4M  100 18.4M    0     0  2010k      0  0:00:09  0:00:09 --:--:-- 2362k
ruby-2.6.3 - #validate archive
ruby-2.6.3 - #extract
ruby-2.6.3 - #validate binary
Libraries missing for ruby-2.6.3: /home/bboy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/x86_64-linux/openssl.so:. Refer to your system manual for installing libraries
Mounting remote ruby failed with status 10, trying to compile.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /home/bboy/.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  1765k      0  0:00:08  0:00:08 --:--:-- 2329k
ruby-2.6.3 - #extracting ruby-2.6.3 to /home/bboy/.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..
Rubygems 3.0.3 already available in installed ruby, skipping installation, use --force to reinstall.
ruby-2.6.3 - #gemset created /home/bboy/.rvm/gems/ruby-2.6.3@global
ruby-2.6.3 - #importing gemset /home/bboy/.rvm/gemsets/global.gems.............-
ruby-2.6.3 - #generating global wrappers.......
ruby-2.6.3 - #gemset created /home/bboy/.rvm/gems/ruby-2.6.3
ruby-2.6.3 - #importing gemsetfile /home/bboy/.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
bboy@Mc-Latitude-E7450:~$ ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
bboy@Mc-Latitude-E7450:~$ rvm install 2.2.10
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/18.04/x86_64/ruby-2.2.10.tar.bz2
Checking requirements for ubuntu.
Removing undesired packages: libssl-dev....
Installing requirements for ubuntu.
Updating system....
Installing required packages: libssl1.0-dev....
Requirements installation successful.
ruby-2.2.10 - #configure
ruby-2.2.10 - #download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 24.5M  100 24.5M    0     0  1778k      0  0:00:14  0:00:14 --:--:-- 2366k
ruby-2.2.10 - #validate archive
ruby-2.2.10 - #extract
ruby-2.2.10 - #validate binary
ruby-2.2.10 - #setup
ruby-2.2.10 - #gemset created /home/bboy/.rvm/gems/ruby-2.2.10@global
ruby-2.2.10 - #importing gemset /home/bboy/.rvm/gemsets/global.gems.............
ruby-2.2.10 - #generating global wrappers.......
ruby-2.2.10 - #gemset created /home/bboy/.rvm/gems/ruby-2.2.10
ruby-2.2.10 - #importing gemsetfile /home/bboy/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.2.10 - #generating default wrappers.......
bboy@Mc-Latitude-E7450:~$ rvm use 2.2.10 --default
Using /home/bboy/.rvm/gems/ruby-2.2.10
bboy@Mc-Latitude-E7450:~$ ruby -v
ruby 2.2.10p489 (2018-03-28 revision 63023) [x86_64-linux]
bboy@Mc-Latitude-E7450:~$ 

Comments

Popular posts from this blog

Ubuntu 16.04 LT - Installing Chromium browser

> Type these commands about this PPA : $ sudo add-apt-repository ppa:canonical-chromium-builds/stage $ sudo apt-get update $ sudo apt-get install chromium-browser > Terminal: mccrazy@Lenovo-N22:~$ sudo add-apt-repository ppa:canonical-chromium-builds/stage [sudo] password for mccrazy:  Testing site just before upload to Ubuntu main. Things here are either broken and not ready to use, or landing in the distro anyway very soon. You shouldn't use this.  More info: https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage Press [ENTER] to continue or ctrl-c to cancel adding it gpg: keyring `/tmp/tmp6cfppy_r/secring.gpg' created gpg: keyring `/tmp/tmp6cfppy_r/pubring.gpg' created gpg: requesting key 5B393194 from hkp server keyserver.ubuntu.com gpg: /tmp/tmp6cfppy_r/trustdb.gpg: trustdb created gpg: key 5B393194: public key "Launchpad PPA for Canonical Chromium Build Team" imported gpg: Total number processed: 1 gpg:               imported: 1  (RSA

Moodlerooms Webservice - How to insert a user using function core_user_create_users

https://our-sandbox.mrooms.net/webservice/rest/server.php?wstoken=OUT_TOKEN_HERE&wsfunction=core_user_create_users&moodlewsrestformat=xml&users [0][username]= biboyatienza@gmail.com &users[0][password]=00.00.0000&users[0][firstname]=biboy&users[0][lastname]=atienza&users[0][email]= biboyatienza@gmail.com &users[0][city]=Manila&users[0][country]=Philippines &users[0][customfields][0][type]= customer &users[0][customfields][0][value]=Customer1 &users[0][customfields][1][type]= customeremail &users[0][customfields][1][value]= customer@email.com &users[0][customfields][2][type]= customerphone &users[0][customfields][2][value]=+6325217788