Skip to content

Instantly share code, notes, and snippets.

@jczaplew
Created August 7, 2014 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jczaplew/b428e9c09ba6dbee966d to your computer and use it in GitHub Desktop.
Save jczaplew/b428e9c09ba6dbee966d to your computer and use it in GitHub Desktop.
Macports Postgres + PL/R

Macports Postgres + PL/R

  1. Install Postgres with Macports
  2. sudo port install pkgconfig
  3. sudo port install R
  4. download this http://www.joeconway.com/plr/plr-8.3.0.15.tar.gz
  5. uncompress it
  6. sudo mv /path/to/plr /opt/local/share/postgresql93/contrib
  7. cd /opt/local/share/postgresql93/contrib/plr
  8. R_HOME="/Library/Frameworks/R.framework/Resources" USE_PGXS=1 PG_CONFIG="/opt/local/lib/postgresql93/bin/pg_config" make
  9. sudo R_HOME="/Library/Frameworks/R.framework/Resources" USE_PGXS=1 PG_CONFIG="/opt/local/lib/postgresql93/bin/pg_config" make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment