# https://github.com/rbenv/ruby-build/discussions/2245#discussioncomment-7022979 export LDFLAGS="-L/opt/brew/Cellar/openssl@1.1/1.1.1v/lib" export CPPFLAGS="-I/opt/brew/Cellar/openssl@1.1/1.1.1v/include" export PKG_CONFIG_PATH="/opt/brew/Cellar/openssl@1.1/1.1.1v/lib/pkgconfig" ruby-install ruby 3.1.2 # $ sysctl -n machdep.cpu.brand_string # > Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz # $ sw_vers # > ProductName: macOS # > ProductVersion: 14.0 # > BuildVersion: 23A344 # $ which ruby-install # > /opt/brew/bin/ruby-install # $ ruby-install --version # > ruby-install: 0.9.0