Compile Ruby < 3.1 on Arch Linux #439
FranklinYu
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It’s well known that Ruby doesn’t support OpenSSL 3 until Ruby 3.1 (it doesn’t intend to backport the support to Ruby 3.0), and the default OpenSSL version of Arch Linux is already OpenSSL 3, so we need to configure Ruby to use the legacy OpenSSL 1.1.
I’m using the
openssl-1.1
package, which puts headers in/usr/include/openssl-1.1/
, and libraries in/usr/lib/openssl-1.1/
, so we cannot directly use--with-openssl-dir
. There are two potential workarounds:includes
andlib
being symbolic links to the right directory.--with-openssl-config=my-command
.I chose the second one. I created a shim:
I made it executable (via
chmod
), and put it on my disk (let’s say/tmp/openssl-config
). Then I built Ruby 3.0 withRuby 2.7 can be built in the same way.
Beta Was this translation helpful? Give feedback.
All reactions