Issues with Installing Ruby 2.0.0 on MACos Catalina

Unable to update Ruby on macOS Catalina version 10.15.3

First you need add gpg key.

gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB

Then install rvm via CURL. If you don't have CURL, install it via Homebrew brew install curl

curl -sSL https://get.rvm.io | bash

then rvm list to get installed version of ruby.

then rvm list known to get the available version.

then rvm install 2.7.0 to install ruby 2.7.0.

then rvm --default use 2.7.0 to use it.

Why is ruby -v still showing version 2.0.0 even after successfully installing ruby 2.5.3?

I suggest you install RVM: https://rvm.io/

The install instruction is on the site.

After you're done installing RVM do.

rvm install 2.5.3

Then test with ruby -v to check if you have the version you want (2.5.3). If not we can help you from that point.

OpenSSL error installing ruby 2.0.0-p195 on Mac with rbenv

Try adding OpenSSL to the config options using the --with-openssl-dir option:

$ CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`" rbenv install 2.0.0-p195

If you're using Homebrew, you'll need to install OpenSSL before running the above by running:

$ brew install openssl

UPDATE (see @JarkkoLaine 's comment below):

Just for the record, you should not need to use the config opts
anymore with ruby-build and homebrew. However, I had to reinstall
openssl with homebrew to make it work: brew uninstall openssl; brew
upgrade; brew install openssl; rbenv install 2.0.0-p247. See this for
more info.

How to fix RVM installation error on Mac OS Catalina 10.15.4

Try to install the Apple Developers Toolkit (XCode) from the Mac App Store (it's free) first (if it's not installed yet), then you need to install the CLI command line utilities by running:

xcode-select --install

Then try your install again.

If it will not helped, try to:

  1. Install rvm master with rvm get master;
  2. Reinstall rvm:

    rvm implode
    \curl -sSL https://get.rvm.io | bash
    rvm pkg install openssl
    rvm install 2.3.1 --with-openssl-dir=$HOME/.rvm/usr


Related Topics



Leave a reply



Submit