The Ruby openssl extension was not compiled. Missing the OpenSSL lib? #1882
-
I had no problem installing 1.9.3-p448. Using ruby-build 20130628 via Homebrew. |
Beta Was this translation helpful? Give feedback.
Replies: 86 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:
|
Beta Was this translation helpful? Give feedback.
-
@kelan That's odd. I don't have a |
Beta Was this translation helpful? Give feedback.
-
@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. |
Beta Was this translation helpful? Give feedback.
-
@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. |
Beta Was this translation helpful? Give feedback.
-
This is what I'm seeing:
|
Beta Was this translation helpful? Give feedback.
-
Very weird. The above (running ruby-build directly) failed, but this works: |
Beta Was this translation helpful? Give feedback.
-
@joevandyk Yeah, I wouldn't image that rbenv plugin would affect calling That said, I'm not sure why |
Beta Was this translation helpful? Give feedback.
-
My guess is that |
Beta Was this translation helpful? Give feedback.
-
I just updated Versions installed
Error message:
|
Beta Was this translation helpful? Give feedback.
-
@perfectionist Same experience here. Did you use homebrew to install both rbenv and ruby-build? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
To install rbenv and ruby-install I used git. |
Beta Was this translation helpful? Give feedback.
-
Good question. p247 appears to use the same version as p195, and the later installs fine. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
@danielb2 I got the same error with |
Beta Was this translation helpful? Give feedback.
-
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 ... |
Beta Was this translation helpful? Give feedback.
-
macOS 10.13 High Sierra Beta 2 |
Beta Was this translation helpful? Give feedback.
-
Will try your solution as well, I encountered same error during installation as well. And It works! ;) Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi, for Debian Stretch and ruby 2.2.3 install: apt-get install libssl1.0-dev not libssl-dev, then apply this: |
Beta Was this translation helpful? Give feedback.
-
For macports, this worked for me...
|
Beta Was this translation helpful? Give feedback.
-
Followed that with |
Beta Was this translation helpful? Give feedback.
-
when I installed rbenv through brew, I got this message
have you tried adding these flags to rbenv install? |
Beta Was this translation helpful? Give feedback.
-
using |
Beta Was this translation helpful? Give feedback.
-
Works for me. macOS 10.14.6 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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.
|
Beta Was this translation helpful? Give feedback.
-
I had this issue and official rbenv documentation as well as installation of a new version of ruby (2.7.1) solved it. |
Beta Was this translation helpful? Give feedback.
-
Had the same issue trying to install ruby 3.2.2 on Ubuntu 22.04.2. Fixed it by adding:
|
Beta Was this translation helpful? Give feedback.
I had this issue and official rbenv documentation as well as installation of a new version of ruby (2.7.1) solved it.
https://github.com/rbenv/ruby-build/wiki#updating-ruby-build