Skip to content

Instantly share code, notes, and snippets.

@jc00ke
Last active June 28, 2019 22:21
Show Gist options
  • Save jc00ke/d696299b4cb74772dde356cc23273bce to your computer and use it in GitHub Desktop.
Save jc00ke/d696299b4cb74772dde356cc23273bce to your computer and use it in GitHub Desktop.
Install Ruby 2.3.1 on Manjaro Linux
$> sudo pacman -S gcc5 openssl-1.0
$> CC=gcc-5 CXX=g++-5 PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig/:/usr/lib/pkgconfig/RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr
/lib/openssl-1.0/ asdf install ruby 2.3.1

Detailed steps

$> bash
$> sudo pacman -S gcc5 openssl-1.0
$> CC=gcc-5 CXX=g++-5 PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig/:/usr/lib/pkgconfig/RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr
/lib/openssl-1.0/ asdf install ruby 2.3.5
@jc00ke
Copy link
Author

jc00ke commented Jun 28, 2018

@jc00ke
Copy link
Author

jc00ke commented Jul 6, 2018

> ruby-install --install-dir ~/.asdf/installs/ruby/2.3.1/ ruby 2.3.1 -- CC=gcc-6 --with-openssl-dir=$HOME/opt/libressl/

Download the correct version of LibreSSL then follow directions to install.
This won't actually install OpenSSL module successfully, so then go download the .gem file from Rubygems and install locally

> gem install -l ~/Downloads/openssl-2.1.1.gem -- --with-openssl-dir=$HOME/opt/libressl/lib/

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