Skip to content

Instantly share code, notes, and snippets.

@catharinejm
Last active December 20, 2015 16:59
Show Gist options
  • Save catharinejm/6165366 to your computer and use it in GitHub Desktop.
Save catharinejm/6165366 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
curl -L https://github.com/Originate/heroku-ruby200p247-openssl101e/raw/master/openssl-1.0.1e.tgz > /tmp/openssl-1.0.1e.tgz
mkdir -p /app/vendor/openssl
tar zxf /tmp/openssl-1.0.1e.tgz -C /app/vendor/openssl
mkdir -p /app/vendor/ruby
autoconf
CFLAGS='-I/app/vendor/openssl/include' LDFLAGS='-L/app/vendor/openssl/lib' ./configure --prefix=/app/vendor/ruby --enable-shared --with-opt-dir=/app/vendor/openssl --disable-install-doc --disable-install-rdoc
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment