Skip to content

Compiling Ruby3 on AL2023 with OpenSSL 3.0.8 (or LibreSSL)

0

I'm trying to build Ruby 3.0.5 on AL2023 but it's failing with an OpenSSL error:

OpenSSL >= 1.0.1, < 3.0.0 or LibreSSL >= 2.5.0 is required

AL2023 currently ships with OpenSSL 3.0.8, which is not on the list of "approved" versions of OpenSSL for Ruby 3. I don't think I want to downgrade OpenSSL as there are other things on the system that are built around that version.

My question is, can I install LibreSSL or an older version of OpenSSL 1.1 somewhere and use that to compile Ruby3? What other options do I have?

asked 3 years ago976 views
1 Answer
0

You are able to use the ruby-build command-line tool.

They give clear guidance on how to handle OpenSSL version compatibility here.

The relevant section is where they describe on how to use a shared library of the corresponding version (including link where to download):

If an OpenSSL 1.0 package no longer exists for your distro, you can install a shared library from source by downloading a 1.0.x version of the source, unarchiving the files, then running the following from a terminal:

AWS
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.