Skip to content

Instantly share code, notes, and snippets.

@iangow
Created April 27, 2017 18:40
Show Gist options
  • Save iangow/1b93feb047722d52e20e42051a437d51 to your computer and use it in GitHub Desktop.
Save iangow/1b93feb047722d52e20e42051a437d51 to your computer and use it in GitHub Desktop.
Script to install PL/R from GitHub
#!/usr/bin/env bash
cd ~/git
git clone [email protected]:postgres-plr/plr.git
cd plr
R_HOME="/Library/Frameworks/R.framework/Resources" USE_PGXS=1 PG_CONFIG="/opt/local/lib/postgresql96/bin/pg_config" make
sudo R_HOME="/Library/Frameworks/R.framework/Resources" USE_PGXS=1 PG_CONFIG="/opt/local/lib/postgresql96/bin/pg_config" make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment