<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, hi!<div><br></div><div>Thanks so much for responding while I know that you're busy. </div><div><br></div><div>Yeah, if I could use Ports or Homebrew with some of the other things that I need to do, I totally would, believe me. On my Ubuntu machine, I'm all apt, all the time.</div><div><br></div><div>Thanks for correcting the error on my R listing. That was a typo in my ~/.bash_profile that's now been fixed.</div><div><br></div><div>What I was saying about pgk-config was that I am unsure of what went wrong.  I compiled according to the instructions I linked to here (<a href="http://cairographics.org/end_to_end_build_for_mac_os_x/">http://cairographics.org/end_to_end_build_for_mac_os_x/</a>) and added PKG_CONFIG to my $PATH, but I still get this confusing output:</div><div><br></div><div><div><i>GENESISARK:~ dheerajchand$ which pgk-config</i></div><div><i>GENESISARK:~ dheerajchand$ echo $PATH</i></div><div><i>/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</i></div><div><i>GENESISARK:~ dheerajchand$ echo $PKG_CONFIG</i></div><div><i>/Users/dheerajchand/Projects/src/pkgthings/bin/pkg-config</i></div><div><i>GENESISARK:~ dheerajchand$ ls $PKG_CONFIG</i></div><div><i>328 -rwxr-xr-x  1 staff  164356 Mar 13 13:33 /Users/dheerajchand/Projects/src/pkgthings/bin/pkg-config</i></div><div><i>GENESISARK:~ dheerajchand$ </i></div><div><br></div></div><div>Also, if you scroll down further in the original append, you'll see that I did run it as sudo, so I am very confused. My thought is that I must have done something wrong with pkg-config.</div><div><br></div><div>-dx</div><div><br></div><div> </div><div><br></div><div><div><div><div>On Mar 13, 2012, at 6:36 PM, Puneet Kishor wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Dheeraj,<br><br>Since you don't use Macports, I will be completely guessing as to the source of the problem. I have not used the Kyngchaos installers at all. My problem is the other way around -- I need way too much stuff, and I'd rather have a single overarching mechanism for installing software. So, I either hand roll everything or let someone else do it... Macports comes the closest to filling my need. Also, if I occasionally do have to install something by hand (case in point being PL/R), it seems to work ok with Macports.<br><br>Anyway -- I am assuming you have R installed correctly, although I do see a mysterious double slash in the path to R components, for example, /Library/Frameworks/R.framework/Resources//include and /Library/Frameworks/R.framework/Resources//lib<br><br>Second issue, `make install` won't work without `sudo` because you are trying to install in /usr/local/ which requires correct permissions. That is why you get "mkdir: /usr/local/pgsql-9.1/share/doc/extension: Permission denied"<br><br>Third, do you have `pkg-config` installed or not? Here is what I have<br><br><span class="Apple-tab-span" style="white-space:pre">  </span>$which pkg-config<br><span class="Apple-tab-span" style="white-space:pre"> </span>/opt/local/bin/pkg-config<br><span class="Apple-tab-span" style="white-space:pre"> </span>$pkg-config --version<br><span class="Apple-tab-span" style="white-space:pre">     </span>0.26<br><br><br>The pkg-config web site is <a href="http://www.freedesktop.org/wiki/Software/pkg-config">http://www.freedesktop.org/wiki/Software/pkg-config</a><br><br>Hope the above gives you a few ideas.<br><br><br>On Mar 13, 2012, at 6:05 PM, Dheeraj Chand wrote:<br><br><blockquote type="cite">Thanks!<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I don't use MacPorts or Homebrew for a long series of reasons that I'd rather not get into at the moment...So I had to use the Kyng Chaos installers and periodically compile from source when there's something that I need that doesn't have a binary installer.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">When I downloaded Jon Conway's source, this was the error that I got, which was that it needed pkg-config.  I suspect that Ports gave it to you already. So I tried installing pkg-config, and this is what I got...<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm absolutely stymied!<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-dx<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Mar 13, 2012, at 3:41 PM, Puneet Kishor wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Dheeraj,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I did get your message re. problems with installing PL/R. I might be able to help you, but I am tied up in knots with another problem I am trying to solve right now, which I have to attend to right away.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Also, note that I didn't use pkg-config (I have no idea what that is). I simply downloaded the PL/R code from Joe Conway's web site and compiled it. There were a few errors mainly to do with wrong paths, and I went about fixing those as those were encountered (only 3 or 4, if I recall correctly). After that it compiled easily. Also, I use macports for my R, Postgres and PostGIS needs, so everything was in /opt/local/.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Soon as I get a moment free, I will try to dig up where all I made edits in the PL/R source, and put it up on my web site.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">On Mar 13, 2012, at 3:23 PM, Dheeraj Chand wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Hi,<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I'm trying to install on Mac Lion, and getting an error with pkg-config (appended).<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I'm following the instructions for pkg-config from here: <a href="http://cairographics.org/end_to_end_build_for_mac_os_x/">http://cairographics.org/end_to_end_build_for_mac_os_x/</a><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Anyone able to help me figure out what's going on?<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">-dx<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">GENESISARK:plr dheerajchand$ USE_PGXS=1 make clean<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">rm -f plr.so   libplr.a <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">rm -f plr.sql<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">rm -f plr.o pg_conversion.o pg_backend_support.o pg_userfuncs.o pg_rsupport.o<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">rm -f doc/html/* doc/plr-US.aux doc/plr-*.log doc/plr-*.out doc/plr-*.pdf doc/plr-*.tex-pdf<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">rm -rf results/ regression.diffs regression.out tmp_check/ log/<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">GENESISARK:plr dheerajchand$ USE_PGXS=1 make<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">sed 's,MODULE_PATHNAME,$libdir/plr,g' plr.sql.in >plr.sql<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">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<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">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<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">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<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">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<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">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<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">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<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">GENESISARK:plr dheerajchand$ USE_PGXS=1 make install<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">/bin/sh /usr/local/pgsql-9.1/lib/pgxs/src/makefiles/../../config/install-sh -c -d '/usr/local/pgsql-9.1/lib'<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">/bin/sh /usr/local/pgsql-9.1/lib/pgxs/src/makefiles/../../config/install-sh -c -d '/usr/local/pgsql-9.1/share/extension'<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">/bin/sh /usr/local/pgsql-9.1/lib/pgxs/src/makefiles/../../config/install-sh -c -d '/usr/local/pgsql-9.1/share/doc/extension'<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">mkdir: /usr/local/pgsql-9.1/share/doc/extension: Permission denied<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">make: *** [installdirs] Error 1<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">GENESISARK:plr dheerajchand$ sudo USE_PGXS=1 make install<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Password:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">make: pkg-config: Command not found<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">make: pkg-config: Command not found<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">make: pkg-config: Command not found<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">make: pkg-config: Command not found<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">make: pkg-config: Command not found<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">make: *** No rule to make target `install'.  Stop.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">GENESISARK:plr dheerajchand$ echo $PATH<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">/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<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">..<br></blockquote></blockquote></blockquote><br>_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>http://postgis.refractions.net/mailman/listinfo/postgis-users<br></div></blockquote></div><br></div></div></body></html>