Undefined symbols for architecture x86_64
Question
macOS Monterey Version 12.6.2
sudo ruby-install ruby 3.1.3
[...]
linking miniruby
Undefined symbols for architecture x86_64:
"_coroutine_transfer", referenced from:
\_fiber_setcontext in cont.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [miniruby] Error 1
!!! Compiling ruby 3.1.3 failed!
Answer
brew install binutils