Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

On Windows, https://rubyinstaller.org/ is the most used distribution. It’s based on https://www.msys2.org/ and contains the Ruby Interpreter, precompiled gems (i.e. packages) and a toolchain to compile other gems.

Status

For now, ruby Ruby installer is only available for windows-x64. Emulated version currently fails on Windows 11 arm64 due to this bug: https://github.com/oneclick/rubyinstaller2/issues/308. It’s supposed to be fixed on Windows 11 arm64 insider, but we could not test it at this time.

We are now working on this to implement implemented the same mechanism (__pioinfo pointer) on windows-arm64 (https://github.com/ruby/ruby/pull/8995 ). This will allow allows to have build a native version.

MSYS2 is integrating this work to re-enable clangarm64 package.

Having a RubyInstaller ready after that will be the next step.

Build

You need to install MSYS2 and open a clangarm64 shell. Ruby can be compiled and tested using:

Code Block
# dependencies
pacman -S --noconfirm ruby
pacman -S --noconfirm ${MINGW_PACKAGE_PREFIX}-libyaml
pacman -S --noconfirm ${MINGW_PACKAGE_PREFIX}-openssl

autoreconf -fi
./configure --with-baseruby=$(which ruby)
make
make test

...