-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Ruby 2.1.1 build failed on Mavericks #579
Comments
I get the same error trying to install 2.1.1 or 2.1.0 with rbenv. First it failed trying to link openssl, then I installed it manually with homebrew and now it fails on linking ripper instead. |
I don't know the cause yet 😿 |
Ditto on the error; even on a freshly installed Mavericks install no less. |
I worked around this by uninstalling my homebrew However, I got over that hurdle only to stumble into an apparent resurgence of rbenv/ruby-build#377: ruby-build isn't noticing my brew-installed copy of OpenSSL 1.0.1g. Not been a good week to install Ruby on a Mac, apparently. Anyone else run into this after working around the readline error? |
what @orospakr suggested fixed the problem. |
I've got the same error, tried to install ruby 2.1.0 via rbenv today. |
I had too many dependencies to completely uninstall the Homebrew
Edit: This is fixed in Ruby 2.1.2, use it instead! |
@aaronadamsTO thanks, it worked! |
Applying this patch its another possible workaround. |
@juanazam thank you. The patch is the best solution at this time. |
@juanazam 👍 Thanks man! |
If anyone else is using |
@andschwa Thanks for posting this; works great. |
@andschwa Thanks for the post, worked great! |
No problem! |
@aaronadamsTO Thanks it worked for me. |
@andschwa Thanks for posting this; works great! |
@andschwa. Thanks for the post - worked great. |
@aaronadamsTO worked for me, thanks! |
@aaronadamsTO Thanks it worked for me as well!! |
Note that this issue was fixed in Ruby 2.1.2. |
Can concur with @aaronadamsTO. The issue is fixed. |
+1 for readline fix |
I also try the readline fix, but for me it doesn't work :( brew uninstall readline |
Again, please note that this issue was fixed in Ruby 2.1.2 and up. The patch above is no longer necessary. |
So, it works when I install the latest version of Ruby? |
It's possible you've got multiple versions of readline installed, and that rbenv is still looking at a newer one. Try this:
|
Yes, I have execute your terminal commands, but nothing works :(
|
Also updated Ruby Build:
|
@remzicavdar You might not have a problem with readline, but with openssl. Try |
I have used the OpenSSL installer. https://github.com/remzicavdar/OpenSSL-Universal-Binary-Installer |
@remzicavdar OK, then please uninstall it. Many software on OS X like Ruby 1.9 will fail when compiled against newer openssl versions. Openssl that ships with OS X will be just fine for most software, and those Rubies that need the newer one will automatically install it through ruby-build (or re-use the one available in Homebrew) |
#!/usr/bin/env bash
set -x
trap read debug
OPENSSL_VERSION="1.0.1h"
cd /usr/local/src
curl -O http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz
tar -xvzf openssl-$OPENSSL_VERSION.tar.gz
cd openssl-$OPENSSL_VERSION
sudo ./configure darwin64-x86_64-cc --prefix=/usr/local/openssl-$OPENSSL_VERSION
sudo make
sudo make install
ln -s openssl-$OPENSSL_VERSION /usr/local/openssl
echo 'export PATH=/usr/local/openssl/bin:$PATH' >> ~/.bash_profile
echo 'export MANPATH=/usr/local/openssl/ssl/man:$MANPATH' >> ~/.bash_profile
source ~/.bash_profile
sudo security find-certificate -a -p /Library/Keychains/System.keychain > /usr/local/openssl/ssl/cert.pem
sudo security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain >> /usr/local/openssl/ssl/cert.pem
cd /usr/local/src
sudo rm openssl-$OPENSSL_VERSION.tar.gz
sudo rm -rf openssl-$OPENSSL_VERSION |
What do I need to uninstall? The latest version of OpenSSL? |
| => brew unlink openssl It was linked to my version? |
On Tue, Jul 29, 2014 at 8:59 AM, Remzi Cavdar notifications@github.com
It's just a thing to try, though. If it doesn't fix your problem, then it |
Okay, I will try it :) And if I run brew doctor I get the following warnings :(
|
Also compiling Ruby from source doesn't work either :(
I just want to install Ruby, Rails and work on a project, but know I'm really struck :( |
Something seems really broken with your development environment, @remzicavdar. You could try resolving all the issues that |
Also please reopen new issues about this in the ruby-build project, as this project (rbenv) doesn't deal directly with compiling Ruby versions. |
Hey,
I'm having trouble installing Ruby 2.1.1 on my iMac running OSX 10.9.2 (Mavericks). Can someone identify the issue from my log?
The text was updated successfully, but these errors were encountered: