Skip to content

Instantly share code, notes, and snippets.

@jmoody
Last active October 26, 2016 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmoody/02871f14147f1297f769bfd4d96742b7 to your computer and use it in GitHub Desktop.
Save jmoody/02871f14147f1297f769bfd4d96742b7 to your computer and use it in GitHub Desktop.
Script for compiling a ruby with readline and OpenSSL support using rbenv and homebrew
#!/usr/bin/env bash
# Do not name this file 'rbenv-install' - that is an rbenv terminal command.
# Put this file in your PATH (e.g. ~/bin/)
#
# Usage:
# rbenv-install-with-options.sh 2.3.1
RUBY_CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline) --with-openssl-dir=$(brew --prefix openssl)" \
rbenv install "${1}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment