Search code examples
rubyrbenv

rbenv install hangs at ruby-build: using readline from homebrew?


ET-C02YQH25LVCF:sc-returns aditya.verma$ rbenv install   2.0.0-p648
Downloading ruby-2.0.0-p648.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p648.tar.bz2
Installing ruby-2.0.0-p648...

WARNING: ruby-2.0.0-p648 is past its end of life and is now unsupported.
It no longer receives bug fixes or critical security updates.

ruby-build: using readline from homebrew

Thats it, it just hangs there for eternity.


Solution

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

    This worked for me, posting the answer so that one in future could save some time.