Example of Error response:
TTRAN-YK0WK9W9PM:virtual_terminal tuantran$ rvm install 2.7.6
ruby-2.7.6 - #removing src/ruby-2.7.6..
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/12.3/arm64/ruby-2.7.6.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates bundle '/usr/local/etc/[email protected]/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/tuantran/.rvm/rubies/ruby-2.7.6, this may take a while depending on your cpu(s)...
ruby-2.7.6 - #downloading ruby-2.7.6, this may take a while depending on your connection...
ruby-2.7.6 - #extracting ruby-2.7.6 to /Users/tuantran/.rvm/src/ruby-2.7.6.....
ruby-2.7.6 - #configuring.........................................................................
ruby-2.7.6 - #post-configuration.
ruby-2.7.6 - #compiling......................................................
Error running '__rvm_make -j10',
please read /Users/tuantran/.rvm/log/1658248808_ruby-2.7.6/make.log
There has been an error while running make. Halting the installation.
Solution: https://github.com/rvm/rvm/issues/5153
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
rm -rf /opt/homebrew/*
sudo rm -rf /opt/homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew doctorbrew install opensslrvm install 2.7 Or any versionThe following worked for me ruby version 3.3.0 -
You can check the path of the ssl directory in your system with the command given below.
brew --prefix openssl@3

After that run the below command with the SSL directory path
rvm reinstall 3.3.0 --with-openssl-dir=your ssl directory path
rvm reinstall 3.3.0 --with-openssl-dir=/opt/homebrew/opt/openssl@3
I faced similar issue while installing 2.7.2. How I was able to resolve it was changing the current version of openssl.
First find out what is the current version of openssl
openssl version
ruby 2.7.2 is compatible with [email protected].
So first install it using brew
arch -arm64 brew install [email protected]
To switch to [email protected] open up editor
nano ~/.zshrc or nano ~/.bash
Add these lines
export LDFLAGS="-L$(brew --prefix [email protected])/lib"
export CPPFLAGS="-I$(brew --prefix [email protected])/include"
export PKG_CONFIG_PATH="$(brew --prefix [email protected])/lib/pkgconfig"
export PATH="$(brew --prefix [email protected])/bin:$PATH"
Save and exit. Restart the terminal.
Confirm if the openssl version is now set to 1.1 or not.
Then finally
arch -arm64 rvm install 2.7.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With