Skip to content

Instantly share code, notes, and snippets.

@mdesantis
Created February 29, 2020 15:45
  • Select an option

Select an option

Revisions

  1. mdesantis revised this gist Feb 29, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ruby-2-3-install.sh
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@

    set -exuo pipefail

    sudo apt install libreadline-dev
    wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz
    tar -xzf openssl-1.0.2u.tar.gz
    cd openssl-1.0.2u
  2. mdesantis created this gist Feb 29, 2020.
    18 changes: 18 additions & 0 deletions ruby-2-3-install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    #!/bin/bash

    # It assumes [asdf](https://github.com/asdf-vm/asdf) to be installed
    # and asdf plugin for Ruby to be added

    set -exuo pipefail

    wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz
    tar -xzf openssl-1.0.2u.tar.gz
    cd openssl-1.0.2u
    ./config --prefix=/opt/openssl-1.0.2u --shared
    make
    make test
    sudo make install
    RUBY_BUILD_CACHE_PATH=$HOME/.ruby-build-cache \
    RUBY_CONFIGURE_OPTS=--with-openssl-dir=/opt/openssl-1.0.2u \
    PKG_CONFIG_PATH=/opt/openssl-1.0.2u/lib/pkgconfig \
    asdf install ruby 2.3.8