-
Notifications
You must be signed in to change notification settings - Fork 785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building Ruby 2.x on OS X Mavericks Suddenly Fails #550
Comments
2.1.1 doesn't build either:
|
I'm seeing this also. 1.9.3-p484 compiles fine. I ran several homebrew updates this morning, and I have rbenv and ruby-build themselves installed via homebrew as well, so I'm looking suspiciously towards what I updated. Here are some of the relevant logs/output:
Of mild interest is that rvm 1.25.22 can build the same two Ruby versions successfully. I don't want to use rvm and do not plan to do so, but it does suggest that it may be something specific to how ruby-build does its dependencies and compilation compared to rvm's method. |
Really bizarre failures. Does a successful |
@mislav It does not for me. |
I was having the same issue. For what it's worth installing manually from source worked fine for me. ./configure --prefix=/Users/willrax/.rbenv/versions/2.1.1/ --with-openssl-dir=/usr/local/opt/openssl |
@mislav |
I'm seeing this exact error as well with p451 and p353. I reinstalled the command line tools just to make sure but it's still giving me this error. |
Can't reproduce on Mavericks with latest Command Line tools, ruby-build and openssl from Homebrew 😿 |
I also got the same error @nikolay got for 2.1.1 on 2.0.0-p247 |
2.0.0-p353 doesn't work either. I have the latest Command Line Tools from Xcode 5.1.1 (5B008) and latest Homebrew OpenSSL 1.0.1g (linked or not - it doesn't matter). |
@Keithbsmiley I tried those yesterday, too, but with no luck similarly to you. |
Running into the exact same issue here, too. A friend and I are in the same predicament. I installed 2.1.1 and 2.1.0 a few weeks ago and it worked fine, but not today. |
@Trevoke Everything was working on Sunday. Something broke yesterday. |
It looks like the problem is readline 6.3. Looking further into it now. |
I tried to install the version of readline from homebrew 2 days ago but the source 404'd. |
Homebrew's readline got upgraded two days ago: |
I'm checking out this issue: #526 I am looking for a readline patch for 2.1.1 which I can apply. |
Here's a raw URL from before the 6.3.3 upgrade. (version 6.2.4) https://raw.githubusercontent.com/Homebrew/homebrew/0181c8a1633353affefabe257c170edbd6d7c008/Library/Formula/readline.rb |
Downgrading readline to the version @Keithbsmiley linked with a straightforward |
Oh readline... Hopefully someone can find and submit a patch to fix this issue with Homebrew? |
@mislav does that make this plugin unnecessary? (it looks like it does) |
@Keithbsmiley the first line of the README, "This plugin's behavior has been made standard in ruby-build, rendering it obsolete." makes me think that it is indeed the case :) |
So now the question is .. Where can we find a patch for Ruby 2.x that plays nice with readline 6.3 ? I don't understand readline well enough to do it :/ |
Haha ouch my bad, I just snagged the link from the clone in my dotfiles, haven't looked at the page in ages. |
I'm trying to set up a debian box as a rails server, coming from osx, its been a little challenge. I am also running into a readline problem, this was after an openssl problem. getting error:
There is a revision for 2.1.1 (also had error trying 2.1.0) https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/45488. I modified the file in the /tmp directory and got it to compile, but have no idea how to make install to my .rbenv directory |
For now, the solution is:
|
Note! @mislav wrote a patch for 2.1.1 which works, you can find it here: curl -fsSL https://gist.github.com/mislav/a18b9d7f0dc5b9efc162.txt | rbenv install --patch 2.1.1 |
Thanks @FeipingHunag, switching from readline 6.3.3 to 6.2.4 (using Homebrew) worked for me. (rbenv 0.4.0) |
The readline fix worked for me... |
Same issue as @mortik. Tried janson's unlink && link trick here |
...but no dice |
Nice find @Trevoke! 👍 I had the same issue, switching from readline 6.3 to 6.2 using this raw URL fixed it
|
+9001, readline fix works for me |
readline fix works for me too! |
+1 for the readline fix |
I have the same problem. On a fresh OSX installation, i can't install ruby 2.0.0-p451 because readline gives problems. Using the 2.2.x version worked at some point, but now that too fails. |
I'm in the same boat as @eitch. The readline fix does not work for me and my ruby 2.x are failing. |
Nevermind. I checked |
The weird thing now is, that if i have readline 6.2.4 installed and
But if i then again install readline 6.3.3 i don't have the problem,
Any ideas? |
same problem as @eitch here |
Downgrading to readline 6.2.4 worked for me. |
Just a note that the pinning was key. I did |
Please update latest version of ruby-build, and build latest version of Ruby. |
I fixed this problem by deleting non-system ruby files, changing my command line tools to 5.0 in Xcode > Preferences > Locations and then running Bundle Install again. Command line tools can be changed back to 5.1.1 after installation succeeds. |
I had this issue and fixed it by reinstalling openssl library |
This worked:
It replaced my readline version 3.3.3 with version 3.3.6 and allowed me to use rbenv to install 2.0.0 p147. |
thanks @nikolay the readline fixed it! |
I just feel bad you ruby-build guys have to be plagued by comments like this (even though they are amazingly helpful) when it's an upstream ruby/openssl/readline issue! Thanks for all you do. |
The text was updated successfully, but these errors were encountered: