[GRASS-user] Re: Installing r.area

Markus Neteler neteler at osgeo.org
Sat Jul 31 11:21:36 EDT 2010


On Thu, Jul 29, 2010 at 8:30 PM, LeeDaniel <Lee.Daniel.1986 at gmail.com> wrote:
>
> Hi everyone,
>
> Thanks for the responses. I'm really sorry that I'm struggling so much here,
> but... It just isn't working for me.

Apparently only now g.extension gets the needed testing...
It should not require code compilation but needs the include subdirectory
being present (and complete) in the binary installation directory.

...
> I ended up reinstalling GRASS with my packet manager. It works now. But I
> still don't have the extension.

You mean g.extension? It was only added recently and won't be packaged
yet for your distro. You can download it here (I made some bugfixes a few
days ago):

http://svn.osgeo.org/grass/grass/branches/releasebranch_6_4/scripts/g.extension/

You can copy it to $GISBASE/scripts/
chmod a+x $GISBASE/scripts/g.extension

Then use it in GRASS:

g.extension r.area

Again, this needs GRASS to be properly packaged. Perhaps the include/
stuff was separated out into an extra grass-devel package for your distro?

...
> *sigh* So it looks like I'm still miles away from getting this addon.

Don't give up :) We'll figure it out.

> I also tried it with g.extension. Here's the error I get:
> Fetching <r.area> from GRASS-Addons SVN (be patient)...
> A    r.area/main.c
> A    r.area/description.html
> A    r.area/Makefile
> Ausgecheckt, Revision 42949.
> 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: Datei oder Verzeichnis nicht
> gefunden

--> the include/ directory is missing from your binary installation.
Please check if grass-dev (or whatever it is called in Ubuntu) is installed.
Then retry.

Cheers
Markus


More information about the grass-user mailing list