rbenv install 2.7.1
Downloading ruby-2.7.1.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.1.tar.bz2
Installing ruby-2.7.1...
ruby-build: using readline from homebrew
BUILD FAILED (macOS 12.4 using ruby-build 20220713)
Inspect or clean up the working tree at /var/folders/nz/w0_ln67n5316yz3xv1w1qmzw0000gn/T/ruby-build.20220719165635.30141.KzutW9
Results logged to /var/folders/nz/w0_ln67n5316yz3xv1w1qmzw0000gn/T/ruby-build.20220719165635.30141.log
Last 10 log lines:
compiling ../.././ext/psych/yaml/writer.c
linking shared-object -test-/string.bundle
16 warnings generated.
linking shared-object stringio.bundle
4 warnings generated.
linking shared-object zlib.bundle
422 warnings generated.
linking shared-object date_core.bundle
linking shared-object psych.bundle
make: *** [build-ext] Error 2
CFLAGS="-Wno-error=implicit-function-declaration" rbenv install 2.7.1