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])
AHMED ELKHAYYAT
https://elkhayyat.me

I am a very keen individual that enjoys developing Python Programming Language. I have always loved computers and technology, ever since childhood. A team player who loves to work with other people on innovative projects and to take on challenges as an opportunity to grow as an individual in both a professional and personal capacity.

Leave a Reply

Select your currency
USD United States (US) dollar