File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Building Ruby Against OpenSSL 1.1 on Arch Linux
3
+ description : >-
4
+ How to build Ruby 2.4 on Arch Linux with RVM.
5
+ summary : >-
6
+ Example of building Ruby >= 2.4.x against OpenSSL 1.1 in Arch Linux with
7
+ RVM.
8
+ anchor : Building Ruby with OpenSSL 1.1 in Arch Linux
9
+ uri : building-ruby-old-openssl-arch
10
+ heading : Build Ruby with OpenSSL 1.1 in Arch via RVM
11
+ image :
12
+ src : images/blog/systemd-arch-docker.png
13
+ caption : ruby arch
14
+ tags :
15
+ - ruby
16
+ - arch linux
17
+ - rvm
18
+ date : " 2023-05-21"
19
+ jsonld :
20
+ headline : " How to build older Ruby versions in Arch Linux"
21
+ datePublished : " 2023-05-21"
22
+ dateCreated : " 2023-05-21"
23
+ dateModified : " 2023-05-21"
24
+ ---
25
+
26
+ Example for compiling Ruby versions dependent on OpenSSL 1.1 via
27
+ [ RVM] [ rvm ] .
28
+
29
+ Ruby 2.4.x - 2.7.x require OpenSSL 1.1 which has been superseded
30
+ on most operating systems.
31
+
32
+
33
+ ## Ruby >= 2.4.x (OpenSSL 1.1)
34
+
35
+ Install the OpenSSL 1.1 dependency:
36
+
37
+ ``` bash
38
+ pacman -Sy openssl-1.1
39
+ ```
40
+
41
+ Build with RVM:
42
+
43
+ ``` bash
44
+ CFLAGS+=" -I/usr/include/openssl-1.1" \
45
+ LDFLAGS+=" -L/usr/lib/openssl-1.1 -lssl" \
46
+ PKG_CONFIG_PATH=/usr/lib/openssl-1.1/pkgconfig \
47
+ rvm install 2.7.7
48
+ ```
49
+
50
+ [ rvm ] : < https://rvm.io/ > " Ruby Version Manager (RVM) "
You can’t perform that action at this time.
0 commit comments