Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Can't install a new version of Ruby using rbenv after upgrade of readline to 6.3.3 #28651

Closed
jcapron opened this issue Apr 23, 2014 · 1 comment

Comments

@jcapron
Copy link

jcapron commented Apr 23, 2014

Overview

I use rbenv to manage my different versions of ruby. I already had several versions installed (1.9.3 and 2.1.1) and I needed to install 2.0.0. Here is what I got:

$ rbenv install 2.0.0-p451 
Downloading ruby-2.0.0-p451.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/9227787a9636551f1749ee8394b5ffe5
Installing ruby-2.0.0-p451...

BUILD FAILED

Inspect or clean up the working tree at /var/folders/td/fq_jt_dd78v1dzsr_xk7xfvr0000gq/T/ruby-build.20140423140638.61844
Results logged to /var/folders/td/fq_jt_dd78v1dzsr_xk7xfvr0000gq/T/ruby-build.20140423140638.61844.log

Last 10 log lines:
compiling ossl_x509ext.c
1 warning generated.
compiling ossl_x509name.c
compiling ossl_x509req.c
compiling ossl_x509revoked.c
compiling ossl_x509store.c
installing default openssl libraries
linking shared-object openssl.bundle
ld: warning: directory not found for option '-L/Users/julien/.rbenv/versions/2.0.0-p451/lib'
make: *** [build-ext] Error 2
$ 

Cause

After some research I found this issue was mentioned here.
As explained in the thread, it turns out that the issue was from the latest upgrade of readline from 6.2.4 to 6.3.3.

Solution for now

The solution for now is to downgrade from readline 6.3.3 to 6.2.4 using this raw URL.

$ brew uninstall readline && brew install https://raw.githubusercontent.com/Homebrew/homebrew/0181c8a1633353affefabe257c170edbd6d7c008/Library/Formula/readline.rb
@jcapron jcapron changed the title Can't install a new version of Ruby using rbenv after upgrade of readline Can't install a new version of Ruby using rbenv after upgrade of readline to 6.3.3 Apr 23, 2014
@jacknagel
Copy link
Contributor

This is a problem in ruby that has been fixed upstream, but not released yet. Homebrew's ruby formula is using the upstream patch to work around it.

readline 6.3 was released two months ago, but we didn't update until 10 days ago, in part to give third parties time to sort out issues like this. rbenv has been aware of it since at least rbenv/ruby-build#526. It's up to them to address it.

Closing because there's not any action for Homebrew to take here.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants