[GRASS-dev] r.pi installation fails

Moritz Lennert mlennert at club.worldonline.be
Tue Apr 25 06:31:21 PDT 2017


On 07/04/17 14:05, Markus Metz wrote:
>
>
> On Fri, Apr 7, 2017 at 9:09 AM, Paulo van Breugel
> <p.vanbreugel at gmail.com <mailto:p.vanbreugel at gmail.com>> wrote:
>>
>> Hi Devs
>>
>> I am trying to install r.pi addon, but I am getting the following
> error message:
>>
>> Fetching <r.pi> from GRASS GIS Addons repository (be patient)...
>> Compiling...
>> /usr/bin/ld: cannot open output file
>> /usr/local/grass7/grass-7.3.svn/lib/libgrass_rpi.7.3.svn.so
> <http://libgrass_rpi.7.3.svn.so>:
>> Permission denied
>> collect2: error: ld returned 1 exit status
>> make[1]: *** [/usr/local/grass7/grass-7.3.svn/lib/libgrass_r
>> pi.7.3.svn.so <http://pi.7.3.svn.so>] Error 1
>> /bin/sh: 1: cannot create
>> /usr/local/grass7/grass-7.3.svn/error.log: Permission denied
>> make: *** [r.pi.library] Error 2
>> ERROR: Compilation failed, sorry. Please check above error messages.
>>
>> It seems it is not installing the plugin in the plugin folder but in
> the grass7 system folder?
>
> At least it tries to install the r.pi library in the system folder and
> not in the local addons folder. Even if the r.pi library would be
> installed to the local addons folder, the library path would need to be
> modified accordingly, not sure if g.extension handles that.
>
> If you compile GRASS from source, you can svn checkout the r.pi folder,
> manually run make and (as root) make install.

Trying this, I get two errors while compiling:

make[1] : on entre dans le répertoire 
« /data/home/mlennert/SRC/GRASS/grass-addons/grass7/raster/r.pi/r.pi.grow »
test -d OBJ.x86_64-pc-linux-gnu || mkdir -p OBJ.x86_64-pc-linux-gnu
gcc  -g -O2 
-I/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/include 
-I/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/include 
    -DPACKAGE=\""grassmods"\" 
-I/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/include 
-I/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/include 
-DRELDIR=\"/data/home/mlennert/SRC/GRASS/grass-addons/grass7/raster/r.pi/r.pi.grow\" 
-o OBJ.x86_64-pc-linux-gnu/func.o -c func.c
In file included from func.c:1:0:
local_proto.h:23:3: error: conflicting types for ‘Position’
  } Position;
    ^~~~~~~~
In file included from local_proto.h:12:0,
                  from func.c:1:
../r.pi.library/r_pi.h:25:3: note: previous declaration of ‘Position’ 
was here
  } Position;
    ^~~~~~~~
/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu//include/Make/Compile.make:32 : 
la recette pour la cible « OBJ.x86_64-pc-linux-gnu/func.o » a échouée
make[1]: *** [OBJ.x86_64-pc-linux-gnu/func.o] Erreur 1
make[1] : on quitte le répertoire 
« /data/home/mlennert/SRC/GRASS/grass-addons/grass7/raster/r.pi/r.pi.grow »

and

make[1] : on entre dans le répertoire 
« /data/home/mlennert/SRC/GRASS/grass-addons/grass7/raster/r.pi/r.pi.lm »
test -d OBJ.x86_64-pc-linux-gnu || mkdir -p OBJ.x86_64-pc-linux-gnu
gcc  -g -O2 
-I/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/include 
-I/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/include 
    -DPACKAGE=\""grassmods"\" 
-I/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/include 
-I/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/include 
-DRELDIR=\"/data/home/mlennert/SRC/GRASS/grass-addons/grass7/raster/r.pi/r.pi.lm\" 
-o OBJ.x86_64-pc-linux-gnu/frag.o -c frag.c
frag.c:6:3: error: conflicting types for ‘Position’
  } Position;
    ^~~~~~~~
In file included from local_proto.h:10:0,
                  from frag.c:1:
../r.pi.library/r_pi.h:25:3: note: previous declaration of ‘Position’ 
was here
  } Position;
    ^~~~~~~~
/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu//include/Make/Compile.make:32 : 
la recette pour la cible « OBJ.x86_64-pc-linux-gnu/frag.o » a échouée
make[1]: *** [OBJ.x86_64-pc-linux-gnu/frag.o] Erreur 1
make[1] : on quitte le répertoire 
« /data/home/mlennert/SRC/GRASS/grass-addons/grass7/raster/r.pi/r.pi.lm »

Moritz


More information about the grass-dev mailing list