Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ruby

rbenv

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.

like image 220
Aditya Verma Avatar asked Sep 05 '25 03:09

Aditya Verma


2 Answers

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.

like image 119
Aditya Verma Avatar answered Sep 07 '25 21:09

Aditya Verma


I thought it had stuck when in fact I had to wait just a little bit. The process shows no sign of any activity and my CPU was not very busy for quite some time. Get a coffee before searching for a solution, installation took almost 5 minutes in my case.

like image 36
Martin Braun Avatar answered Sep 07 '25 22:09

Martin Braun