Wiki I know almost nothing about 'building' but after some searching, time (& tears) I have been able to build plr (I think it's working) on Snow Leopard. I'm posting this to hopefully help those who are struggling to get it, so it is in one place.
$ cd /usr/local/pgsql/share/contrib
# sudo curl -O [http://www.joeconway.com/plr/plr-8.3.0.10.tar.gz] Password:
sh-3.2# tar -xzf plr-8.3.0.10.tar.gz
sh-3.2# cd plr
(actually, I've now put these into ~/.profile or /etc/profile)
sh-3.2# export USE_PGXS=1 sh-3.2# export R_HOME="/Library/Frameworks/R.framework/Resources" sh-3.2# export CUSTOM_COPT="-arch x86_64"
sh-3.2# make sh-3.2# make install
sh-3.2# su postgres
Password:
sh-3.2$ pg_ctl -D /usr/local/pgsql/data stop
waiting for server to shut down.... done
server stopped
sh-3.2$ export R_HOME="/Library/Frameworks/R.framework/Resources"
sh-3.2$ pg_ctl -D /usr/local/pgsql/data start
server starting
sh-3.2$ exit
From the command line:
$ psql -d mydatabase -U myowner -f /usr/local/pgsql/share/contrib/plr.sql
or reading the file into the database:
$ psql mydatabase mydatabase=# \i /usr/local/pgsql/share/contrib/plr.sql
Average (0 Votes) ![]() ![]() ![]() ![]() |