export optflags="-Wno-error=implicit-function-declaration";
export LDFLAGS="-L/opt/homebrew/opt/libffi/lib";
export CPPFLAGS="-I/opt/homebrew/opt/libffi/include";
export PKG_CONFIG_PATH="/opt/homebrew/opt/libffi/lib/pkgconfig";
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl) --without-tcl --without-tk --with-readline-dir=$(brew --prefix readline)"
rbenv install 2.6.6
Source: rbenv/ruby-build#1699 (comment)
Adapted to make it work with the NextPoint project.
- Josias Schneider on an M2 Macbook Pro on MacOS Ventura 13.3.1 using
rbenv
.