Skip to content

Instantly share code, notes, and snippets.

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 ntamvl/eb46263b618773aab9f36b51df20ba9c to your computer and use it in GitHub Desktop.
Save ntamvl/eb46263b618773aab9f36b51df20ba9c to your computer and use it in GitHub Desktop.
On macOS Mojave, rbenv install 2.6.1 hangs at "use realline from homebrew"

On macOS Mojave, rbenv install 2.6.1 hangs at "use realline from homebrew"

First install readline from homebrew

brew install readline
brew link --force readline

This fixed it for me:

RUBY_CONFIGURE_OPTS=--with-readline-dir="$(brew --prefix readline)" rbenv install 2.6.1

OR

Identify location readline and run command export env LDFLAGS like this example

example on my macbook:

export LDFLAGS="-L/Users/tamnguyen/.rbenv/versions/2.6.1/lib -L/usr/local/lib -L/usr/local/Cellar/readline/8.0.0/lib"

Enjoy :D

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