[postgis-users] Voronoi in PostGIS

Dheeraj Chand dheeraj at dheerajchand.com
Tue Mar 13 13:23:36 PDT 2012


Hi,

I'm trying to install on Mac Lion, and getting an error with pkg-config (appended).

I'm following the instructions for pkg-config from here: http://cairographics.org/end_to_end_build_for_mac_os_x/

Anyone able to help me figure out what's going on?

-dx



GENESISARK:plr dheerajchand$ USE_PGXS=1 make clean
rm -f plr.so   libplr.a 
rm -f plr.sql
rm -f plr.o pg_conversion.o pg_backend_support.o pg_userfuncs.o pg_rsupport.o
rm -f doc/html/* doc/plr-US.aux doc/plr-*.log doc/plr-*.out doc/plr-*.pdf doc/plr-*.tex-pdf
rm -rf results/ regression.diffs regression.out tmp_check/ log/
GENESISARK:plr dheerajchand$ USE_PGXS=1 make
sed 's,MODULE_PATHNAME,$libdir/plr,g' plr.sql.in >plr.sql
gcc -Os -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv  -I"." -I"/Library/Frameworks/R.framework/Resources//include" -I/Library/Frameworks/R.framework/Resources//include -I. -I. -I/usr/local/pgsql-9.1/include/server -I/usr/local/pgsql-9.1/include/internal -I/usr/include/libxml2 -DPKGLIBDIR=\"/usr/local/pgsql-9.1/lib\" -DDLSUFFIX=\".so\" -DR_HOME_DEFAULT=\"/Library/Frameworks/R.framework/Resources/\"  -c -o plr.o plr.c
gcc -Os -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv  -I"." -I"/Library/Frameworks/R.framework/Resources//include" -I/Library/Frameworks/R.framework/Resources//include -I. -I. -I/usr/local/pgsql-9.1/include/server -I/usr/local/pgsql-9.1/include/internal -I/usr/include/libxml2 -DPKGLIBDIR=\"/usr/local/pgsql-9.1/lib\" -DDLSUFFIX=\".so\" -DR_HOME_DEFAULT=\"/Library/Frameworks/R.framework/Resources/\"  -c -o pg_conversion.o pg_conversion.c
gcc -Os -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv  -I"." -I"/Library/Frameworks/R.framework/Resources//include" -I/Library/Frameworks/R.framework/Resources//include -I. -I. -I/usr/local/pgsql-9.1/include/server -I/usr/local/pgsql-9.1/include/internal -I/usr/include/libxml2 -DPKGLIBDIR=\"/usr/local/pgsql-9.1/lib\" -DDLSUFFIX=\".so\" -DR_HOME_DEFAULT=\"/Library/Frameworks/R.framework/Resources/\"  -c -o pg_backend_support.o pg_backend_support.c
gcc -Os -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv  -I"." -I"/Library/Frameworks/R.framework/Resources//include" -I/Library/Frameworks/R.framework/Resources//include -I. -I. -I/usr/local/pgsql-9.1/include/server -I/usr/local/pgsql-9.1/include/internal -I/usr/include/libxml2 -DPKGLIBDIR=\"/usr/local/pgsql-9.1/lib\" -DDLSUFFIX=\".so\" -DR_HOME_DEFAULT=\"/Library/Frameworks/R.framework/Resources/\"  -c -o pg_userfuncs.o pg_userfuncs.c
gcc -Os -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv  -I"." -I"/Library/Frameworks/R.framework/Resources//include" -I/Library/Frameworks/R.framework/Resources//include -I. -I. -I/usr/local/pgsql-9.1/include/server -I/usr/local/pgsql-9.1/include/internal -I/usr/include/libxml2 -DPKGLIBDIR=\"/usr/local/pgsql-9.1/lib\" -DDLSUFFIX=\".so\" -DR_HOME_DEFAULT=\"/Library/Frameworks/R.framework/Resources/\"  -c -o pg_rsupport.o pg_rsupport.c
gcc -Os -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv  -bundle -multiply_defined suppress -o plr.so plr.o pg_conversion.o pg_backend_support.o pg_userfuncs.o pg_rsupport.o -L/usr/local/pgsql-9.1/lib -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -Wl,-dead_strip_dylibs   -L/Library/Frameworks/R.framework/Resources//bin -L/Library/Frameworks/R.framework/Resources//lib -lR -bundle_loader /usr/local/pgsql-9.1/bin/postgres
GENESISARK:plr dheerajchand$ USE_PGXS=1 make install
/bin/sh /usr/local/pgsql-9.1/lib/pgxs/src/makefiles/../../config/install-sh -c -d '/usr/local/pgsql-9.1/lib'
/bin/sh /usr/local/pgsql-9.1/lib/pgxs/src/makefiles/../../config/install-sh -c -d '/usr/local/pgsql-9.1/share/extension'
/bin/sh /usr/local/pgsql-9.1/lib/pgxs/src/makefiles/../../config/install-sh -c -d '/usr/local/pgsql-9.1/share/doc/extension'
mkdir: /usr/local/pgsql-9.1/share/doc/extension: Permission denied
make: *** [installdirs] Error 1
GENESISARK:plr dheerajchand$ sudo USE_PGXS=1 make install
Password:
make: pkg-config: Command not found
make: pkg-config: Command not found
make: pkg-config: Command not found
make: pkg-config: Command not found
make: pkg-config: Command not found
make: *** No rule to make target `install'.  Stop.
GENESISARK:plr dheerajchand$ echo $PATH
/Users/dheerajchand/pear/bin/:/Applications/ImageMagick-6.7.2/bin:/Users/dheerajchand/Projects/src/pkgthings/bin/pkg-config:/usr/local/pgsql-9.1/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/opt/local/bin:/usr/local/mysql/bin


On Mar 9, 2012, at 6:57 PM, pcreso at pcreso.com wrote:

> See the tutorials here:
> 
> http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgresql_plr_tut01
> http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgresql_plr_tut02
> http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgresql_plr_tut03
> 
> They may be of some help.
> 
> Cheers,
> 
>   Brent Wood
> 
> 
> --- On Sat, 3/10/12, Dheeraj Chand <dheeraj at dheerajchand.com> wrote:
> 
> From: Dheeraj Chand <dheeraj at dheerajchand.com>
> Subject: Re: [postgis-users] Voronoi in PostGIS
> To: "PostGIS Users Discussion" <postgis-users at postgis.refractions.net>
> Date: Saturday, March 10, 2012, 1:22 PM
> 
> Oh, gotcha.  I'm actually very good with R, so that's a relief. Umm, I used the installers from Kyng Chaos for PostGIS and all the libraries, and I'm not exactly the best at command line interactions, sorry.
> 
> Can someone give me completely idiot-proof directions to installing PL/R on OS X Lion, assuming the Kyng Chaos versions of GDAL, etc. ?
> 
> -dx
> On Mar 9, 2012, at 3:27 PM, Puneet Kishor wrote:
> 
> > 
> > On Mar 9, 2012, at 3:22 PM, Dheeraj Chand wrote:
> > 
> >> That was one that I'd bookmarked, but I don't have PL/R installed. I'm on a Mac. I have Python and PHP handy, though! I also don't know PL/R, but I could try to learn it!
> >> 
> > 
> > 
> > All my work is on a Mac. You don't have to "learn" PL/R, but you do have to install it. Installing it via Macports is the easiest, but you can also easily compile it yourself.
> > 
> > 
> > Once you get PL/R installed, it is just a matter of copying the code I have provided. Then, over time you can learn R. PL/R simply lets you right Postgres functions in R.
> > 
> > 
> > 
> > 
> >> 
> >> On Mar 9, 2012, at 3:19 PM, Puneet Kishor wrote:
> >> 
> >>> 
> >>> On Mar 9, 2012, at 3:12 PM, Dheeraj Chand wrote:
> >>> 
> >>>> Hi,
> >>>> 
> >>>> I've been looking online to find some documentation on how to undertake this in PostGIS.  Has anyone done it successfully, and if so, further willing to share code?
> >>>> 
> >>> 
> >>> 
> >>> did you see http://punkish.org/Voronoi-Diagrams-In-PostGIS
> >>> 
> >>> 
> >>> 
> >>> 
> >>> --
> >>> Puneet Kishor
> >>> 
> > 
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users at postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-users
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20120313/9f479553/attachment.html>


More information about the postgis-users mailing list