Skip to content

Instantly share code, notes, and snippets.

@joaomarcos96
Created January 6, 2021 17:22
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 joaomarcos96/dd5c5eadeb5ba45f94361f912cecf056 to your computer and use it in GitHub Desktop.
Save joaomarcos96/dd5c5eadeb5ba45f94361f912cecf056 to your computer and use it in GitHub Desktop.

Installing Ruby 2.3.x in Arch Linux

Have openssl-1.0 and gcc installed

sudo pacman -S --needed openssl-1.0 gcc

Install Ruby 2.3.x with gcc and openssl path defined

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