On Tue, Jul 27, 2010 at 12:58 PM, LeeDaniel <lee.daniel.1...@gmail.com> wrote: > > Thanks for the replies! I've tried it out and here are my responses to the > suggestions: > > @ Markus - Downloaded the script and put it in my scripts folder, made it > executable and made it assigned rights to myself.
[the next release will include it] > Just as a test I tried > opening it as a GUI and, lo and behold, it worked. However, it couldn't find > my add-on path, Yes, by default it is undefined which is bad IMHO. I'll fix that to $GISBASE with a parameter to change it optionally. > of course, when I tried to add r.area. So I went to the > terminal and entered: > > export GRASS_ADDON_PATH?$GISBASE ? -> = > g.extension r.area > > Now things looked good. It did the following: > > Fetching <r.area> from GRASS-Addons SVN (be patient)... > A r.area/main.c > A r.area/description.html > A r.area/Makefile > Checked out revision 42910. > - Great, got the files needed. Then it started compiling: > Compiling <r.area>... > mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/bin.i686-pc-linux-gnu > mkdir -p > /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include/grass > mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/lib > mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/bin > mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/etc > mkdir -p > /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/driver > mkdir -p > /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/driver/db > mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/fonts > test -d OBJ.i686-pc-linux-gnu || mkdir -p OBJ.i686-pc-linux-gnu > gcc -I/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include > -O2 -DPACKAGE=\""grassmods"\" > -I/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include -o > OBJ.i686-pc-linux-gnu/main.o -c main.c > main.c:19:23: fatal error: grass/gis.h: No such file or directory > compilation terminated. The include files have not been packaged which we/the packager should change. Where did you get the binaries from? I have to understand who's omission that is (GRASS itself or the packaging). > make: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1 > ERROR: Compilation failed, sorry. Please check above error messages. > - So it looks like it was able to make a bunch of directories. I checked, > they're there, new as of today. The entire directory of /usr/src/packages/ > is new. However, GRASS wasn't able to compile. I checked for > > /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include/grass/gis.h > since it seemed that it was looking for it and couldn't find it, and > discovered that the directory > /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include/grass/ > is completely empty. Could that be the problem? Yes. > I also tried using > sudo g.extension r.area > And got the usual error that I have to be in GRASS GIS to run the program. I > didn't try starting GRASS as a super user because I don't want to do > anything wrong and I also don't want it to install r.area only for super > users. sure. > But that would be a nice way of loading add-ons, because it looks like I > wouldn't have to have the source code all on my hard drive. Any idea why > it's not working? Because it has been only lightly tested.... we'll figure out! Please answer to above question (binaries). Markus _______________________________________________ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user