Can't install ruby 2.6.6 via rvm, error running '__rvm_make -10' on macbook pro m1

14.2k Views Asked by At

While installing the ruby 2.6.6 I'm getting this error:

Error running '__rvm_make -10'
please read /home/.rvm/log/1642694273_ruby-2.6.6/make.log

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

I've tried to reinstall rvm but this changes nothing.

Other ruby versions are installed just fine.

7

There are 7 best solutions below

5
spirito_libero On BEST ANSWER

rvm install 2.6.6 --with-out-ext=fiddle worked for me

3
Mayur Kambariya On
  1. Right click Terminal from the Application/Utilities folder, Get Info, tick the "Open using Rosetta" box.

  2. Uninstall Homebrew
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
    rm -rf /opt/homebrew/*
    sudo rm -rf /opt/homebrew

  3. Reinstall Homebrew
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  4. Restart terminal

  5. Check Homebrew is working fine: brew doctor

  6. Reinstall openssl: brew install openssl

  7. Install Ruby: rvm install 2.5.3 Or any version

1
ochi On

downgrade libssl-dev with:

sudo apt install libssl-dev=1.1.1l-1ubuntu1.4

check the solution in this issue: https://github.com/rvm/rvm/issues/5209#issuecomment-1134927685

0
Jason On

In case this helps anyone, none of the posted solutions worked on my intel MacBook Pro. brew doctor however did warn my developer tools were out of date. Uninstalling and reinstalling those allowed me to return to using RVM as normal:

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
0
Murat Rahmi KURTUL On

Try this:

RUBY_CFLAGS=-DUSE_FFI_CLOSURE_ALLOC rbenv install "your version"
1
user1937739 On

MacOS 13.3.1 try this:

export rvm_configure_flags="--with-openssl-dir=/usr/local/Cellar/[email protected]/1.1.1v/bin/"
export PKG_CONFIG_PATH="/usr/local/Cellar/[email protected]/1.1.1v/lib/pkgconfig"

then install again

rvm install 2.7.2
0
Yurii Holenko On

Mac M2 Pro, Ventura 13.4 works for -j10, all other methods didn't work

brew uninstall --ignore-dependencies openssl@3

rvm install 3.0.2

brew install --ignore-dependencies openssl@3