On Mac Sierra Beta, rbenv install 2.4.0 hangs at "use readline from homebrew" #1885
Replies: 34 comments
-
I had the same problem. It was resolved by reinstalling rbenv |
Beta Was this translation helpful? Give feedback.
-
Also having this problem. Reinstalling rbenv did not fix it for me. $ rbenv install 2.4.0
ruby-build: use openssl from homebrew
Downloading ruby-2.4.0.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0.tar.bz2
Installing ruby-2.4.0...
ruby-build: use readline from homebrew
^C
BUILD FAILED (OS X 10.12.3 using ruby-build 20170201)
Inspect or clean up the working tree at /var/folders/x2/s07g1lr11tn49rk_6d8dyyhc0000gn/T/ruby-build.20170320094952.21849
Results logged to /var/folders/x2/s07g1lr11tn49rk_6d8dyyhc0000gn/T/ruby-build.20170320094952.21849.log
Last 10 log lines:
checking for dladdr... yes
checking for dup... yes
checking for dup3... no
checking for eaccess... no
checking for endgrent... yes
checking for fchmod... yes
checking for fchown... yes
checking for fcntl... yes
checking for fdatasync... (cached) no
checking for fgetattrlist... make: *** No targets specified and no makefile found. Stop. |
Beta Was this translation helpful? Give feedback.
-
If you used to use rvm, make sure that you removed it completely. |
Beta Was this translation helpful? Give feedback.
-
Patience |
Beta Was this translation helpful? Give feedback.
-
This fixed it for me: RUBY_CONFIGURE_OPTS=--with-readline-dir="$(brew --prefix readline)" rbenv install 2.4.0 |
Beta Was this translation helpful? Give feedback.
-
@lowderdev You have made my day, hour wasted - IOU a beer! |
Beta Was this translation helpful? Give feedback.
-
This works for me too, tks @lowderl ! |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing the workaround, @lowderl. It's strange that this step should fix the installation because I don't run macOS beta so I can't look into this yet, but if anyone is willing to look more closely into this, I would be grateful. Two things could be of use:
|
Beta Was this translation helpful? Give feedback.
-
I thought I was having this problem, but I tailed the logs and cannot reproduce the issue. I think that it just takes a long time to install and without the output feedback I was assuming it was hanging. |
Beta Was this translation helpful? Give feedback.
-
@paniclater I encountered the same thing. Without feedback, it does appear to hang, but after about 3-4 minutes, the install completes successfully. |
Beta Was this translation helpful? Give feedback.
-
Had to wait a few minutes, it worked. |
Beta Was this translation helpful? Give feedback.
-
Same. Just had to give it few more mins... |
Beta Was this translation helpful? Give feedback.
-
While we're collecting data: I gave it several hours. It did not work. |
Beta Was this translation helpful? Give feedback.
-
It took several minutes for me, but it did eventually succeed. |
Beta Was this translation helpful? Give feedback.
-
To get better visibility on what's going on in the build process, I recommend running builds with |
Beta Was this translation helpful? Give feedback.
-
OSX 10.12.6 I'm having this problem and have let installations go for ~1 hour without success. So far I've tried uninstalling/reinstalling rbenv a couple times (using homebrew and git clone). When I use
|
Beta Was this translation helpful? Give feedback.
-
Still having this problem, though it seems to happen regardless of whether readline is installed via homebrew (in this case I had re-installed homebrew and not installed readline). The processes are all just sleeping indefinitely until I send the kill signal. @mislav Here are the logs:
|
Beta Was this translation helpful? Give feedback.
-
I met the same situation. It hanged there for a few minutes, but did complete. |
Beta Was this translation helpful? Give feedback.
-
@lowderl 's workaround worked for me when nothing else did. |
Beta Was this translation helpful? Give feedback.
-
My install seems to be failing at the
Any advice for a workaround would be appreciated! |
Beta Was this translation helpful? Give feedback.
-
Same issue trying to install version 2.5.1
adding -v to the command like so |
Beta Was this translation helpful? Give feedback.
-
@lowderl thanks! it's worked... |
Beta Was this translation helpful? Give feedback.
-
Closing since most people have reported that the build process is in fact just taking a longer time, but not completely hanging. Please reopen and provide extra info if you're experiencing hanged builds for newer versions of Ruby + newer macOS. |
Beta Was this translation helpful? Give feedback.
-
In my case it helped to deactivate the antivirus software Avira. |
Beta Was this translation helpful? Give feedback.
-
Took a few minutes for me, patience everyone. |
Beta Was this translation helpful? Give feedback.
-
Indeed, that's what it was for me, too. Might be a UI enhancement to include some kind of progress indicator, determinate or indeterminate, just to provide transparency and alleviate these issues. |
Beta Was this translation helpful? Give feedback.
-
How much patience? For me, 6 minutes. Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
After 5 minutes and it finished. Unbelievable, actually. |
Beta Was this translation helpful? Give feedback.
-
adding |
Beta Was this translation helpful? Give feedback.
-
@mislav please change the default behaviour to verbose mode, or fix the existing UI! No program should ever do anything that takes several seconds, let alone minutes, without telling the user why they have to wait and and trying to approximate the time remaining! In this thread alone, hundreds of probably very reasonable and smart people have been confused by this. |
Beta Was this translation helpful? Give feedback.
-
I googled like crazy, reinstalled new brew versions of readline, openssl libyaml and libffi. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions