2.6.6 on ARM64 · Issue #1699 · rbenv/ruby-build

I've managed to install 2.7.2 and 3.0.0, but 2.6.6 fails with the following error compiling closure.c closure.c:264:14: error: implicit declaration of function 'ffi_prep_closure' is invalid in C99 ...