[GRASS-user] r.univar.zonal not installing
Markus Metz
markus.metz.giswork at googlemail.com
Wed Oct 6 04:00:22 EDT 2010
On Tue, Oct 5, 2010 at 9:17 PM, Markus Neteler <neteler at osgeo.org> wrote:
> On Mon, Aug 9, 2010 at 5:41 PM, Laura Poggio <laura.poggio at gmail.com> wrote:
>> Dear all,
>> since a while, I am trying to compile the r.univar.zonal addon on a Fedora11
>> 64 bit machine and using GRASS 6.5
>>
>> I used:
>> svn co https://svn.osgeo.org/grass/grass-addons/raster/r.univar2.zonal
>> cd r.univar2.zonal/
>> make MODULE_TOPDIR=~/bin/grass65/grass6_devel/
>>
>> No errors were detected, but when I try:
>> make MODULE_TOPDIR=/home/myuser/bin/grass65/grass6_devel install
>>
>> I am getting:
>> ------------------------------------
>> if [ "" != "" ] ; then \
>> for dir in ; do \
>> make -C $dir install ; \
>> done ; \
>> fi
>> -----------------------------------
>>
>> Various other addons were installed using these steps, then I think I am
>> missing something here ... Thank you in advance for any hints!
>
> Perhaps that comes from the directory name which I find slightly confusing:
>
> GRASS 6.4.1svn (nc_spm_08):~ > ls -la grass-addons/raster/r.univar2.zonal/
> total 76
> drwxr-xr-x 3 neteler neteler 4096 2010-02-18 21:40 ./
> drwxr-xr-x 53 neteler neteler 4096 2010-09-23 12:04 ../
> -rw-r--r-- 1 neteler neteler 1806 2010-02-18 21:36 globals.h
> -rw-r--r-- 1 neteler neteler 624 2009-04-09 10:44 Makefile
> -rw-r--r-- 1 neteler neteler 8426 2010-02-18 21:36 r3.univar_main.c
> -rw-r--r-- 1 neteler neteler 2286 2010-02-18 21:36 r3.univar.zonal.html
> -rw-r--r-- 1 neteler neteler 9829 2010-02-18 21:36 r.univar_main.c
> -rw-r--r-- 1 neteler neteler 4411 2009-04-09 10:44 r.univar.zonal.html
> -rw-r--r-- 1 neteler neteler 3358 2009-02-24 08:27 sort.c
> -rw-r--r-- 1 neteler neteler 15223 2010-02-18 21:36 stats.c
> drwxr-xr-x 6 neteler neteler 4096 2010-09-22 09:25 .svn/
>
>
> GRASS 6.4.1svn (nc_spm_08):~ > grep univ
> grass-addons/raster/r.univar2.zonal/Makefile
> PROGRAMS = r.univar.zonal r3.univar.zonal
> R3UNIVAR = $(BIN)/r3.univar.zonal$(EXE)
> RUNIVAR = $(BIN)/r.univar.zonal$(EXE)
> $(RUNIVAR): $(OBJDIR)/r.univar_main.o $(OBJDIR)/sort.o $(OBJDIR)/stats.o
> $(R3UNIVAR): $(OBJDIR)/r3.univar_main.o $(OBJDIR)/sort.o $(OBJDIR)/stats.o
>
> -> PROGRAMS that does not reflect the directory name.
Because it is based on r.univar which lives in raster/r.univar2, the
directory has been renamed to r.univar only in grass7.
I have renamed the grass-addons directory r.univar2.zonal to
r.univar.zonal in r43802.
Markus M
>
> GRASS 6.4.1svn (nc_spm_08):~ > g.extension r.univar.zonal
> WARNING: GRASS_ADDON_PATH is not defined, installing to ~/.grass6/addons/
> Fetching <r.univar.zonal> from GRASS-Addons SVN (be patient)...
> svn: URL 'https://svn.osgeo.org/grass/grass-addons/raster/r.univar.zonal'
> doesn't exist
> ERROR: GRASS Add-on r.univar.zonal not found in repository or no network
> connection or another problem
>
> But like this it works:
>
> GRASS 6.4.1svn (nc_spm_08):~ > grep univ
> grass-addons/raster/r.univar2.zonal/Makefile
> PROGRAMS = r.univar.zonal r3.univar.zonal
> R3UNIVAR = $(BIN)/r3.univar.zonal$(EXE)
> RUNIVAR = $(BIN)/r.univar.zonal$(EXE)
> $(RUNIVAR): $(OBJDIR)/r.univar_main.o $(OBJDIR)/sort.o $(OBJDIR)/stats.o
> $(R3UNIVAR): $(OBJDIR)/r3.univar_main.o $(OBJDIR)/sort.o $(OBJDIR)/stats.o
> GRASS 6.4.1svn (nc_spm_08):~ > g.extension r.univar2.zonal
> WARNING: GRASS_ADDON_PATH is not defined, installing to ~/.grass6/addons/
> Fetching <r.univar2.zonal> from GRASS-Addons SVN (be patient)...
> A r.univar2.zonal/stats.c
> A r.univar2.zonal/sort.c
> A r.univar2.zonal/globals.h
> A r.univar2.zonal/r.univar.zonal.html
> A r.univar2.zonal/r.univar_main.c
> A r.univar2.zonal/r3.univar.zonal.html
> A r.univar2.zonal/r3.univar_main.c
> A r.univar2.zonal/Makefile
> U r.univar2.zonal
> Checked out revision 43799.
> Compiling <r.univar2.zonal>...
> test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p OBJ.x86_64-unknown-linux-gnu
> gcc -I/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/include -g
> -Wall -fno-common -fexceptions -mtune=nocona -m64
> -minline-all-stringops -DPACKAGE=\""grassmods"\"
> -I/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/include -o
> OBJ.x86_64-unknown-linux-gnu/r.univar_main.o -c r.univar_main.c
> ...
>
>
> Proposals
> @authors: rename directory to first program name
>
> @Laura: please try g.extension
>
> best,
> Markus
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
More information about the grass-user
mailing list