Last active
May 6, 2022 20:33
-
-
Save jjb/6928376 to your computer and use it in GitHub Desktop.
Installing ruby on MacOS with rbenv / ruby-build using readline from macports
This file contains 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
sudo port -v selfupdate | |
sudo port install rbenv | |
sudo port install ruby-build | |
sudo port install readline | |
RUBY_CONFIGURE_OPTS="--with-readline-dir=/opt/local" rbenv install 2.7.1 | |
# this gist previously also specified the openssl dir, | |
# but these days ruby-build downloads and builds its own openssl for you | |
# --with-openssl-dir=/opt/local | |
# if ruby is using readline, `Readline.emacs_editing_mode` will return nil | |
# if ruby is using libedit, `Readline.emacs_editing_mode` will raise NotImplementedError |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment