Hi Laura,<br><br>Did you have to recompile an updated Grass65 from svn?<br>I am still unable to install this either from g.extension or compiling it from source..<br><br>Vishal<br><br><div class="gmail_quote">On Fri, Oct 8, 2010 at 1:43 AM, Laura Poggio <span dir="ltr"><<a href="mailto:laura.poggio@gmail.com">laura.poggio@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Dear all, <br>it worked using g.extension on an updated version of GRASS65.<br>Sorry for my late answer but in the past days I was unable to try.<br>
<br>Thank you<br><font color="#888888"><br>Laura</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On 5 October 2010 20:17, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>On Mon, Aug 9, 2010 at 5:41 PM, Laura Poggio <<a href="mailto:laura.poggio@gmail.com" target="_blank">laura.poggio@gmail.com</a>> wrote:<br>
> Dear all,<br>
> since a while, I am trying to compile the r.univar.zonal addon on a Fedora11<br>
> 64 bit machine and using GRASS 6.5<br>
><br>
> I used:<br>
> svn co <a href="https://svn.osgeo.org/grass/grass-addons/raster/r.univar2.zonal" target="_blank">https://svn.osgeo.org/grass/grass-addons/raster/r.univar2.zonal</a><br>
> cd r.univar2.zonal/<br>
> make MODULE_TOPDIR=~/bin/grass65/grass6_devel/<br>
><br>
> No errors were detected, but when I try:<br>
> make MODULE_TOPDIR=/home/myuser/bin/grass65/grass6_devel install<br>
><br>
> I am getting:<br>
> ------------------------------------<br>
> if [ "" != "" ] ; then \<br>
> for dir in ; do \<br>
> make -C $dir install ; \<br>
> done ; \<br>
> fi<br>
> -----------------------------------<br>
><br>
> Various other addons were installed using these steps, then I think I am<br>
> missing something here ... Thank you in advance for any hints!<br>
<br>
</div></div>Perhaps that comes from the directory name which I find slightly confusing:<br>
<br>
GRASS 6.4.1svn (nc_spm_08):~ > ls -la grass-addons/raster/r.univar2.zonal/<br>
total 76<br>
drwxr-xr-x 3 neteler neteler 4096 2010-02-18 21:40 ./<br>
drwxr-xr-x 53 neteler neteler 4096 2010-09-23 12:04 ../<br>
-rw-r--r-- 1 neteler neteler 1806 2010-02-18 21:36 globals.h<br>
-rw-r--r-- 1 neteler neteler 624 2009-04-09 10:44 Makefile<br>
-rw-r--r-- 1 neteler neteler 8426 2010-02-18 21:36 r3.univar_main.c<br>
-rw-r--r-- 1 neteler neteler 2286 2010-02-18 21:36 r3.univar.zonal.html<br>
-rw-r--r-- 1 neteler neteler 9829 2010-02-18 21:36 r.univar_main.c<br>
-rw-r--r-- 1 neteler neteler 4411 2009-04-09 10:44 r.univar.zonal.html<br>
-rw-r--r-- 1 neteler neteler 3358 2009-02-24 08:27 sort.c<br>
-rw-r--r-- 1 neteler neteler 15223 2010-02-18 21:36 stats.c<br>
drwxr-xr-x 6 neteler neteler 4096 2010-09-22 09:25 .svn/<br>
<br>
<br>
GRASS 6.4.1svn (nc_spm_08):~ > grep univ<br>
grass-addons/raster/r.univar2.zonal/Makefile<br>
PROGRAMS = r.univar.zonal r3.univar.zonal<br>
R3UNIVAR = $(BIN)/r3.univar.zonal$(EXE)<br>
RUNIVAR = $(BIN)/r.univar.zonal$(EXE)<br>
$(RUNIVAR): $(OBJDIR)/r.univar_main.o $(OBJDIR)/sort.o $(OBJDIR)/stats.o<br>
$(R3UNIVAR): $(OBJDIR)/r3.univar_main.o $(OBJDIR)/sort.o $(OBJDIR)/stats.o<br>
<br>
-> PROGRAMS that does not reflect the directory name.<br>
<br>
GRASS 6.4.1svn (nc_spm_08):~ > g.extension r.univar.zonal<br>
WARNING: GRASS_ADDON_PATH is not defined, installing to ~/.grass6/addons/<br>
Fetching <r.univar.zonal> from GRASS-Addons SVN (be patient)...<br>
svn: URL '<a href="https://svn.osgeo.org/grass/grass-addons/raster/r.univar.zonal" target="_blank">https://svn.osgeo.org/grass/grass-addons/raster/r.univar.zonal</a>'<br>
doesn't exist<br>
ERROR: GRASS Add-on r.univar.zonal not found in repository or no network<br>
connection or another problem<br>
<br>
But like this it works:<br>
<br>
GRASS 6.4.1svn (nc_spm_08):~ > grep univ<br>
grass-addons/raster/r.univar2.zonal/Makefile<br>
PROGRAMS = r.univar.zonal r3.univar.zonal<br>
R3UNIVAR = $(BIN)/r3.univar.zonal$(EXE)<br>
RUNIVAR = $(BIN)/r.univar.zonal$(EXE)<br>
$(RUNIVAR): $(OBJDIR)/r.univar_main.o $(OBJDIR)/sort.o $(OBJDIR)/stats.o<br>
$(R3UNIVAR): $(OBJDIR)/r3.univar_main.o $(OBJDIR)/sort.o $(OBJDIR)/stats.o<br>
GRASS 6.4.1svn (nc_spm_08):~ > g.extension r.univar2.zonal<br>
WARNING: GRASS_ADDON_PATH is not defined, installing to ~/.grass6/addons/<br>
Fetching <r.univar2.zonal> from GRASS-Addons SVN (be patient)...<br>
A r.univar2.zonal/stats.c<br>
A r.univar2.zonal/sort.c<br>
A r.univar2.zonal/globals.h<br>
A r.univar2.zonal/r.univar.zonal.html<br>
A r.univar2.zonal/r.univar_main.c<br>
A r.univar2.zonal/r3.univar.zonal.html<br>
A r.univar2.zonal/r3.univar_main.c<br>
A r.univar2.zonal/Makefile<br>
U r.univar2.zonal<br>
Checked out revision 43799.<br>
Compiling <r.univar2.zonal>...<br>
test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p OBJ.x86_64-unknown-linux-gnu<br>
gcc -I/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/include -g<br>
-Wall -fno-common -fexceptions -mtune=nocona -m64<br>
-minline-all-stringops -DPACKAGE=\""grassmods"\"<br>
-I/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/include -o<br>
OBJ.x86_64-unknown-linux-gnu/r.univar_main.o -c r.univar_main.c<br>
...<br>
<br>
<br>
Proposals<br>
@authors: rename directory to first program name<br>
<br>
@Laura: please try g.extension<br>
<br>
best,<br>
<font color="#888888">Markus<br>
</font></blockquote></div><br>
</div></div><br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Vishal K. Mehta, PhD<br>Scientist<br>Stockholm Environment Institute - US<br>133 D St Suite F<br>Davis CA 95616<br><a href="http://www.sei-us.org">www.sei-us.org</a><br>