Skip to content

Instantly share code, notes, and snippets.

@rs-ehyde
Last active March 3, 2021 20:28
Show Gist options
  • Save rs-ehyde/1653d947eaf8fde2f5987c03564f1ab3 to your computer and use it in GitHub Desktop.
Save rs-ehyde/1653d947eaf8fde2f5987c03564f1ab3 to your computer and use it in GitHub Desktop.
RVM: Ruby installation errors on Catalina and above

The following error is encountered in OSX Catalina (and presumably newer versions):

ruby-2.7.2 - #extracting ruby-2.7.2 to /Users/ehyde/.rvm/src/ruby-2.7.2 - please wait
ruby-2.7.2 - #configuring - please wait
ruby-2.7.2 - #post-configuration - please wait
ruby-2.7.2 - #compiling - please wait
Error running '__rvm_make -j12',
please read /Users/ehyde/.rvm/log/1614189092_ruby-2.7.2/make.log

There has been an error while running make. Halting the installation.

This particular instance says it failed with flag -j12, but any __rvm_make failure can be resolved or at least further investigated with the following steps.

In the event that you encounter this, complete the following steps to resolve (replacing version with whatever version of ruby you're trying to install.)

In the first line, a dir is mentioned (/Users/ehyde/.rvm/src/ruby-2.7.2). Execute:

cd /Users/ehyde/.rvm/src/ruby-2.7.2
make 
make install
cd ~
rvm use 2.7.2 --create

With your user folder in place of ehyde. If successful, you should see:

ruby-2.7.2 - #gemset created /Users/ehyde/.rvm/gems/ruby-2.7.2
ruby-2.7.2 - #importing gemsetfile /Users/ehyde/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.7.2 - #generating default wrappers - please wait
Using /Users/ehyde/.rvm/gems/ruby-2.7.2

Navigate back to your project directory and perform gem install bundler as per usual. bundle install should work as expected now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment