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

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.



Solution 1:[1]

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

Solution 2:[2]

  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

Solution 3:[3]

run

sudo apt-get install ruby-dev

then try the install

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 spirito_libero
Solution 2 Mayur Kambariya
Solution 3 ochi