rbenv install 2.2.10 fails in Ubuntu 20.04 - Need OpenSSL 1.0.0, how to have multiple openssl versions? #1981
Replies: 3 comments
-
This was the solution I found, and with a small tweak it worked. then
check if the version is correct with and then
|
Beta Was this translation helpful? Give feedback.
-
Thanks @cratag for also taking the time to post your solution. That helped me a lot.
|
Beta Was this translation helpful? Give feedback.
-
Just a note for other Googlers: In Bash, this won't work— RUBY_CONFIGURE_OPTS="--with-openssl-dir='/usr/local/ssl/bin'" rbenv install 2.2.10 The single quotes are taken literally. You need: export RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/local/ssl/bin" Or if following good recommended instructions at #1940 (comment): export RUBY_CONFIGURE_OPTS="--with-openssl-dir=/opt/openssl-1.1.1o" |
Beta Was this translation helpful? Give feedback.
-
According to docs:
openssl version -v
returnsOpenSSL 1.1.1f 31 Mar 2020
I've installed 1.0.2 following this, but then I only had
OpenSSL 1.0.2l 25 May 2017
which interferes with another 3.0.0 Ruby App I have.Ubuntu has no 'brew'. I installed brew following their docs.
Then this command
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix [email protected])" rbenv install 2.2.10
returns
Error: No available formula with the name "[email protected]".
so I followed this link
and ran:
brew tap rbenv/tap
brew install rbenv/tap/[email protected]
and then
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix [email protected])" rbenv install 2.2.10
Maybe there's an easier command without brew for linux?
Beta Was this translation helpful? Give feedback.
All reactions