Skip to content

Commit

Permalink
Merge pull request #22 from gibbs/post-ruby-2-build-arch
Browse files Browse the repository at this point in the history
Post for building Ruby 2.7 with OpenSSL 1.1
  • Loading branch information
gibbs authored Jan 14, 2024
2 parents 5dd1619 + 5b187d0 commit 6ede0ab
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions content/blog/0007-building-ruby-old-openssl-arch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: Building Ruby Against OpenSSL 1.1 on Arch Linux
description: >-
How to build Ruby 2.4 on Arch Linux with RVM.
summary: >-
Example of building Ruby >= 2.4.x against OpenSSL 1.1 in Arch Linux with
RVM.
anchor: Building Ruby with OpenSSL 1.1 in Arch Linux
uri: building-ruby-old-openssl-arch
heading: Build Ruby with OpenSSL 1.1 in Arch via RVM
image:
src: images/blog/systemd-arch-docker.png
caption: ruby arch
tags:
- ruby
- arch linux
- rvm
date: "2023-05-21"
jsonld:
headline: "How to build older Ruby versions in Arch Linux"
datePublished: "2023-05-21"
dateCreated: "2023-05-21"
dateModified: "2023-05-21"
---

Example for compiling Ruby versions dependent on OpenSSL 1.1 via
[RVM][rvm].

Ruby 2.4.x - 2.7.x require OpenSSL 1.1 which has been superseded
on most operating systems.


## Ruby >= 2.4.x (OpenSSL 1.1)

Install the OpenSSL 1.1 dependency:

```bash
pacman -Sy openssl-1.1
```

Build with RVM:

```bash
CFLAGS+=" -I/usr/include/openssl-1.1" \
LDFLAGS+=" -L/usr/lib/openssl-1.1 -lssl" \
PKG_CONFIG_PATH=/usr/lib/openssl-1.1/pkgconfig \
rvm install 2.7.7
```

[rvm]: <https://rvm.io/> "Ruby Version Manager (RVM)"

0 comments on commit 6ede0ab

Please sign in to comment.