Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.