Skip to content

Instantly share code, notes, and snippets.

@sigu
Created March 19, 2018 08:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sigu/c0cd7554c74eefee03b37f06b4d623c2 to your computer and use it in GitHub Desktop.
Save sigu/c0cd7554c74eefee03b37f06b4d623c2 to your computer and use it in GitHub Desktop.
Installing ruby 2.3.1 using asdf on arch linux
#make sure rvm is installed then
rvm pkg install openssl
CC=gcc-6 RUBY_EXTRA_CONFIGURE_OPTIONS="--with-openssl-dir=$HOME/.rvm/usr" asdf install ruby 2.3.1
@joaomarcos96
Copy link

joaomarcos96 commented Jan 6, 2021

Actually, you don't need rvm for that.

Have openssl-1.0 and gcc installed then run the following command:

CC=gcc \
PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig \
RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/lib/openssl-1.0" \
RUBY_EXTRA_CONFIGURE_OPTIONS="--with-openssl-dir=/usr/lib/openssl-1.0" \
CONFIGURE_OPTS="--with-openssl-dir=/usr/lib/openssl-1.0" \
asdf install ruby 2.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment