Skip to content

Instantly share code, notes, and snippets.

@catharinejm
Last active December 21, 2015 19:29
Show Gist options
  • Select an option

  • Save catharinejm/6354875 to your computer and use it in GitHub Desktop.

Select an option

Save catharinejm/6354875 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/postgres
CFLAGS='-I/app/vendor/openssl/include' LDFLAGS='-L/app/vendor/openssl/lib -Wl,-rpath,/app/vendor/openssl/lib' ./configure --prefix=/app/vendor/postgres --with-openssl --with-gnu-ld
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment