Skip to content

Instantly share code, notes, and snippets.

@estherjk
Created November 21, 2021 18:05
Show Gist options
  • Save estherjk/6ca85b67e92b253a840135f37f6adde8 to your computer and use it in GitHub Desktop.
Save estherjk/6ca85b67e92b253a840135f37f6adde8 to your computer and use it in GitHub Desktop.
rbenv on macOS (M1 Chip)

rbenv on macOS (M1 Chip)

Installing a specific Ruby version

# Configure Ruby parameters 
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"
export RUBY_CFLAGS="-Wno-error=implicit-function-declaration"

# Install desired version
rbenv install 2.7.3

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment