-
Notifications
You must be signed in to change notification settings - Fork 133
Ruby Installation Problems
Fran Casas edited this page Jul 7, 2017
·
3 revisions
I've been trying to use asdf
to manage my rubies on arch linux for some time and I couldn't because the installation failed no matter what I tried. After some research I managed to get it working by installing gcc5
and openssl-1.0
on Arch Linux and then using using:
CC=gcc-5 PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig RUBY_EXTRA_CONFIGURE_OPTIONS="--with-openssl-dir=/usr/lib/openssl-1.0" asdf install ruby 2.3.3
That solves 2 problems:
- Ruby 2.3 not being compatible with openssl 1.1 (which is the default one on arch linux)
- Ruby 2.3 not compiling with gcc 7.1.1 on arch for some other different reason and causing a segfault (as explained here https://bugs.ruby-lang.org/issues/13635#change-65299)