Last active
October 26, 2016 13:38
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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