{"id":1138,"date":"2020-03-23T00:19:59","date_gmt":"2020-03-23T00:19:59","guid":{"rendered":"http:\/\/kabiliravi.com\/?page_id=1138"},"modified":"2020-03-23T00:20:49","modified_gmt":"2020-03-23T00:20:49","slug":"install-ruby","status":"publish","type":"page","link":"http:\/\/kabiliravi.com\/index.php\/software\/programming\/ruby\/install-ruby\/","title":{"rendered":"Install Ruby"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Install on Mac using Ruby Version Manager rvm <\/h2>\n\n\n\n<p>Using&nbsp;<strong>rvm<\/strong>, install the latest version of the ruby. Using following command you find all available ruby version:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ rvm list known\nMRI Rubies\n [ruby-]1.8.6[-p420]\n [ruby-]1.8.7[-head] # security released on head\n [ruby-]1.9.1[-p431]\n [ruby-]1.9.2[-p330]\n [ruby-]1.9.3[-p551]\n [ruby-]2.0.0[-p648]\n [ruby-]2.1[.10]\n [ruby-]2.2[.10]\n [ruby-]2.3[.8]\n [ruby-]2.4[.9]\n [ruby-]2.5[.7]\n [ruby-]2.6[.5]\n [ruby-]2.7[.0]\n ruby-head\n for forks use: rvm install ruby-head- --url https:\/\/github.com\/github\/ruby.git --branch 2.2\n JRuby\n jruby-1.6[.8]\n jruby-1.7[.27]\n jruby-9.1[.17.0]\n jruby[-9.2.11.0]\n...<\/pre>\n\n\n\n<p>As you see [ruby-]2.7[.0] is the latest version, using following&nbsp;<strong>rvm<\/strong>&nbsp;command install the latest version of ruby<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ rvm install 2.7.0\nSearching for binary rubies, this might take some time.\n No binary rubies available for: osx\/10.14\/x86_64\/ruby-2.7.0.\n Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.\n Checking requirements for osx.\n Certificates bundle '\/usr\/local\/etc\/openssl@1.1\/cert.pem' is already up to date.\n Requirements installation successful.\n Installing Ruby from source to: \/Users\/nkabiliravi\/.rvm\/rubies\/ruby-2.7.0, this may take a while depending on your cpu(s)\u2026\n ruby-2.7.0 - #downloading ruby-2.7.0, this may take a while depending on your connection\u2026\n   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                  Dload  Upload   Total   Spent    Left  Speed\n 100 14.0M  100 14.0M    0     0  20.5M      0 --:--:-- --:--:-- --:--:-- 20.5M\n ruby-2.7.0 - #extracting ruby-2.7.0 to \/Users\/nkabiliravi\/.rvm\/src\/ruby-2.7.0 - please wait\n ruby-2.7.0 - #configuring - please wait\n ruby-2.7.0 - #post-configuration - please wait\n ruby-2.7.0 - #compiling - please wait\n ruby-2.7.0 - #installing - please wait\n ruby-2.7.0 - #making binaries executable - please wait\n Installed rubygems 3.1.2 is newer than 3.0.8 provided with installed ruby, skipping installation, use --force to force installation.\n ruby-2.7.0 - #gemset created \/Users\/nkabiliravi\/.rvm\/gems\/ruby-2.7.0@global\n ruby-2.7.0 - #importing gemset \/Users\/nkabiliravi\/.rvm\/gemsets\/global.gems - please wait\n ruby-2.7.0 - #generating global wrappers - please wait\n ruby-2.7.0 - #gemset created \/Users\/nkabiliravi\/.rvm\/gems\/ruby-2.7.0\n ruby-2.7.0 - #importing gemsetfile \/Users\/nkabiliravi\/.rvm\/gemsets\/default.gems evaluated to empty gem list\n ruby-2.7.0 - #generating default wrappers - please wait\n ruby-2.7.0 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).\n Install of ruby-2.7.0 - #complete\n Ruby was built without documentation, to build it run: rvm docs generate-ri <\/pre>\n\n\n\n<p>Using&nbsp;<strong>rvm list<\/strong>, check the installed ruby version using rvm<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ rvm list\n=* ruby-2.7.0 [ x86_64 ]\n =&gt; - current\n =* - current &amp;&amp; default\n * - default<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">$ ruby --version  <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Install on Mac using Ruby Version Manager rvm Using&nbsp;rvm, install the latest version of the ruby. Using following command you find all available ruby version: $ 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[.9] [ruby-]2.5[.7] [ruby-]2.6[.5] [ruby-]2.7[.0] ruby-head for forks use: rvm install [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1135,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-1138","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/pages\/1138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/comments?post=1138"}],"version-history":[{"count":2,"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/pages\/1138\/revisions"}],"predecessor-version":[{"id":1140,"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/pages\/1138\/revisions\/1140"}],"up":[{"embeddable":true,"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/pages\/1135"}],"wp:attachment":[{"href":"http:\/\/kabiliravi.com\/index.php\/wp-json\/wp\/v2\/media?parent=1138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}