Giter Site home page Giter Site logo

Comments (4)

rhenium avatar rhenium commented on June 12, 2024 1

Installing openssl gem by default searches the same paths used when your Ruby was installed. Your Ruby 3.0.3 seems to be using the OpenSSL 1.0.1i (which is a very, very old release with known vulnerabilities - I'd upgrade it now), which is no longer supported by the latest openssl gem release, hence the first error.

Fedora's OpenSSL 3.0.9 is in /usr. Does gem install openssl -- --with-openssl-dir=/usr work?

from openssl.

junaruga avatar junaruga commented on June 12, 2024 1

In your case, I assume that you installed Ruby 3.0.3 via RVM when the openssl-devel RPM veresion was 1.0.1i in the past, then you upgraded Fedora to new versions, and now the openssl-devel RPM version is 3.0.9. That means perhaps you don't need the --with-openssl-dir option now.

from openssl.

sergioro9 avatar sergioro9 commented on June 12, 2024 1

Solved the issue by installing Ruby 3.2.3 which supports OpenSSL 3, which is the OpenSSL version installed in my Fedora 38 server.

I used this command to install ruby:

rvm install 3.2.3

The problem was that Ruby versions below 3.1 do not support OpenSSL 3 according to rbenv/ruby-build#1940 (comment)

from openssl.

sergioro9 avatar sergioro9 commented on June 12, 2024

Found out a similar issue #686. It seems that the header files of my rvm ruby installation are OpenSSL 1.0.1 which is different from my system-wide OpenSSL version.

$ grep OPENSSL_VERSION /home/deploy/.rvm/usr/include/openssl/opensslv.h
#define OPENSSL_VERSION_NUMBER	0x1000109fL
#define OPENSSL_VERSION_TEXT	"OpenSSL 1.0.1i-fips 6 Aug 2014"
#define OPENSSL_VERSION_TEXT	"OpenSSL 1.0.1i 6 Aug 2014"
#define OPENSSL_VERSION_PTEXT	" part of " OPENSSL_VERSION_TEXT

$ grep OPENSSL_VERSION /usr/include/openssl/opensslv.h
# define OPENSSL_VERSION_MAJOR  3
# define OPENSSL_VERSION_MINOR  0
# define OPENSSL_VERSION_PATCH  9
...

It seems that I need to reinstall ruby with something like rvm reinstall 3.0.3 --with-openssl-dir=OpenSSL3-0-9-Directory. But I am not sure what the value for --with-openssl-dir should be.

from openssl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.