-
Notifications
You must be signed in to change notification settings - Fork 788
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
The Ruby openssl extension was not compiled. Missing the OpenSSL lib? #377
Comments
@nathany I had this issue too, but it's working for me now. There were 2 things I did to try to fix it:
|
@kelan That's odd. I don't have a |
@nathany That's my point. It didn't work when I didn't have the plugin installed, but did after I installed it (as suggested on the ruby-build plugin page) by doing:
So, try that and see if it helps. |
@kelan Thanks for the tip. Since I'm not needing Ruby 2.0 for a few days, I'm going to wait-and-see if the Installing with Homebrew option is made to work. If not, then I'll try the method you described. |
This is what I'm seeing:
|
Very weird. The above (running ruby-build directly) failed, but this works: |
@joevandyk Yeah, I wouldn't image that rbenv plugin would affect calling That said, I'm not sure why |
My guess is that |
I just updated Versions installed
Error message:
|
@perfectionist Same experience here. Did you use homebrew to install both rbenv and ruby-build? |
I did not use homebrew at all. I had installed it once but was having issues so I uninstalled it several months ago. That was no easy task. I am wondering if the file |
To install rbenv and ruby-install I used git. |
Good question. p247 appears to use the same version as p195, and the later installs fine. |
Trying rbenv for the first time. Running into the same problem with openssl missing. I tried openssl was already on the system with macports. I also installed it with homebrew. No avail.
However, did solve the problem. |
@danielb2 I got the same error with |
Copying this from my comment here:
|
This did the trick (unbelievably, I hadn't installed openssl via brew, though every other version of Ruby installed fine): brew install openssl
RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/Cellar/openssl/1.0.1e rbenv install 2.0.0-p247 |
Explicitly specifying openssl did the trick for me. Thanks @nathany |
Thanks for this. Was having the same issue, but adding the options to the command worked great. Odd. |
Attempting to install Ruby 2.0.0-p247 with rbenv and getting the same issue. I have openssl installed via brew and I'm specifying it in the 'rbenv install' command like @nathany suggests. Still get the same error. |
@scottmagdalein I haven't tried p247 yet, I was installing p195 at the time. Does that work for you? |
it worked for me for 247 miguel
|
@cfurrow That doesn't work either. Same error. Full error:
|
I am having the same problem on OS X 10.7.5. I installed
|
I have now succeeded in installing Ruby 2.0.0-p247 on OS X using I found references to a library under
After that, |
Thanks for commenting here and reminding me that I need to update as well. I got Ruby 2.0.0-p247 installed, finally, after |
Got the same issue, |
Thanks @nathany, this worked for me.
|
Ditto:
|
This might help Summary:
|
for CentOS 6.4; if you've installed the openssl-1.0.1e.el6_5 rpm, ftp://ftp.pbone.net/mirror/ftp.centos.org/6.5/updates/x86_64/Packages/openssl-1.0.1e-16.el6_5.4.0.1.centos.x86_64.rpm. I had to install this package due to a dependency from another project I'm working on. When Ruby; or ruby-build/install would attempt to resolve the openssl-devel by yum installing it; it would error. You will need the openssl-devel package as well. Once I was able to get the correct devel package installed; @CoreyCole's directions worked just fine! |
@mislav I'd like to suggest a check based upon If appreciated i'd like trying to create a pull-request for that issue. |
@florianb That's a start, except it doesn't work on OS X. Pull requests welcome of course. |
|
Some basic libs are required, recommend this:
|
I had problems trying to install Ruby 2.2.2 on Fedora 22, but the following worked for me:
|
Ubuntu 14:
|
patch worked for me when installing 2.2.2 and 2.2.3 on Arch using openssl 1.0.2.g-3 |
I'm sorry to say this but on macOS 10.12 with latest ruby-build this is still an issue. I brew installed openssl and I still have a hell of a time in making it play nice with It's really unfortunate but this:
... worked ... |
macOS 10.13 High Sierra Beta 2 |
Will try your solution as well, I encountered same error during installation as well. And It works! ;) Thanks. |
Hi, for Debian Stretch and ruby 2.2.3 install: apt-get install libssl1.0-dev not libssl-dev, then apply this: |
For macports, this worked for me...
|
Followed that with |
when I installed rbenv through brew, I got this message
have you tried adding these flags to rbenv install? |
using |
New centos-7 stemcell can't properly link OpenSSL lib when compiling ruby-2.4-r4. More details at rbenv/ruby-build#377 (comment) [#158227319](https://www.pivotaltracker.com/story/show/158227319) Co-authored-by: James Myers <jmyers@pivotal.io>
Works for me. macOS 10.14.6 |
First, thank you so much. I failed at the beginning because I copied the commands above guys' . You help me out of the trouble. Here the exactly what we should do: # look into your real openssl version, as for me is `1.0.2s`
ls /usr/local/Cellar/openssl/
# then to confirm the ruby version you need, as for me is `2.3.3`
# implement the command
RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/Cellar/openssl/1.0.2s rbenv install 2.3.3 God bless you. |
I was having this issue with OSX 10.15.3. The version of openssl that homebrew installed was 1.1 and I was trying to install ruby 2.3.8, which did not work. I eventually got it to work using openssl version 1.0.2.
|
I had this issue and official rbenv documentation as well as installation of a new version of ruby (2.7.1) solved it. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
rbenv install 2.0.0-p247
fails on Mac OS X 10.8.4 with the error:I had no problem installing 1.9.3-p448.
Using ruby-build 20130628 via Homebrew.
The text was updated successfully, but these errors were encountered: