Required ruby-2.7.2 is not installed. To install do: ‘rvm install “ruby-2.7.2″‘” MacOS

Problem

While trying to run a ruby app, I got an error

Required ruby-2.7.2 is not installed. To install do: 'rvm install "ruby-2.7.2"'" MacOS 

Tried to run the command: rvm install "ruby-2.7.2" but it always fail.

Reason

 I installed opensll@3 default into mac so that one is not supporting old ruby versions anymore

Solution

  • Make sure that you have openssl@1 installed through:
brew install openssl@1
  • Use openssl@1 to install ruby-2.7.2 using this command:
rvm install 2.7.2 -- --with-openssl-dir=$(brew --prefix [email protected])

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Select your currency
USD United States (US) dollar