[GRASS-dev] unable to install my grass module from the GitHub repository

Hi all!
I’m trying to install my module i.sentinel.mask from the GitHub repository [0] using g.extension but I get the following error:

g.extension extension=i.sentinel.mask operation=add url=https://github.com/RobiFag/GRASS_clouds_and_shadows

Fetching <i.sentinel.mask> from <https://github.com/RobiFag/GRASS_clouds_and_shadows/archive/master.zip> (be patient)…
Compiling…
Installing…
make: *** No rule to make target `install’. Stop.
WARNING: Installation failed, sorry. Please check above error messages.

any suggestion?

Thanks in advance!
Roberta

[0] https://github.com/RobiFag/GRASS_clouds_and_shadows

Am 5. Juni 2018 14:38:49 MESZ schrieb Roberta Fagandini <robifagandini@gmail.com>:

Hi all!
I'm trying to install my module i.sentinel.mask from the GitHub
repository
[0] using g.extension but I get the following error:

g.extension extension=i.sentinel.mask operation=add url=
https://github.com/RobiFag/GRASS_clouds_and_shadows

I think you have to point it to the directory of your add-on, i.e.

https://github.com/RobiFag/GRASS_clouds_and_shadows/i.sentinel.mask

But am in a train and can't test right now.

Moritz

Hi Roberta,

On Tue, Jun 5, 2018 at 2:38 PM, Roberta Fagandini <robifagandini@gmail.com> wrote:

Hi all!
I’m trying to install my module i.sentinel.mask from the GitHub repository [0] using g.extension but I get the following error:

g.extension extension=i.sentinel.mask operation=add url=https://github.com/RobiFag/GRASS_clouds_and_shadows

Fetching <i.sentinel.mask> from <https://github.com/RobiFag/GRASS_clouds_and_shadows/archive/master.zip> (be patient)…
Compiling…
Installing…
make: *** No rule to make target `install’. Stop.
WARNING: Installation failed, sorry. Please check above error messages.

any suggestion?

One error was

Compiling…
make[1]: *** No rule to make target /tmp/grass7-roberta-701 4/tmpe7QEso/i.sentinel.mask/scripts/i.sentinel.mask', needed by script’. Stop.
/bin/sh: 1: cannot create /usr/lib/grass74/error.log:
Permission denied

i.e. this is a system-wide installation of GRASS 7.4

Can you try again with GRASS 7.5 compiled from source, without installing? That should avoid the “Permission denied” error.

The GRASS start script is in the source tree in bin.x86_64-pc-linux-gnu

Markus M

Thanks in advance!
Roberta

[0] https://github.com/RobiFag/GRASS_clouds_and_shadows


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Hi Markus!

···

2018-06-05 14:49 GMT+02:00 Markus Metz <markus.metz.giswork@gmail.com>:

Hi Roberta,

On Tue, Jun 5, 2018 at 2:38 PM, Roberta Fagandini <robifagandini@gmail.com> wrote:

Hi all!
I’m trying to install my module i.sentinel.mask from the GitHub repository [0] using g.extension but I get the following error:

g.extension extension=i.sentinel.mask operation=add url=https://github.com/RobiFag/GRASS_clouds_and_shadows

Fetching <i.sentinel.mask> from <https://github.com/RobiFag/GRASS_clouds_and_shadows/archive/master.zip> (be patient)…
Compiling…
Installing…
make: *** No rule to make target `install’. Stop.
WARNING: Installation failed, sorry. Please check above error messages.

any suggestion?

One error was

Compiling…
make[1]: *** No rule to make target /tmp/grass7-roberta-701 4/tmpe7QEso/i.sentinel.mask/scripts/i.sentinel.mask', needed by script’. Stop.
/bin/sh: 1: cannot create /usr/lib/grass74/error.log:
Permission denied

i.e. this is a system-wide installation of GRASS 7.4

Can you try again with GRASS 7.5 compiled from source, without installing? That should avoid the “Permission denied” error.

The GRASS start script is in the source tree in bin.x86_64-pc-linux-gnu

I tried with GRASS 7.5 and I got the error message

Fetching <i.sentinel.mask> from <https://github.com/RobiFag/GRASS_clouds_and_shadows/archive/master.zip> (be patient)…
Compiling…
Installing…
make: *** No rule to make target `install’. Stop.
WARNING: Installation failed, sorry. Please check above error messages.

While if I point it to the directory of the add-on (https://github.com/RobiFag/GRASS_clouds_and_shadows/i.sentinel.mask) I get another error:

Fetching <i.sentinel.mask> from <https://github.com/RobiFag/GRASS_clouds_and_shadows/i.sentinel.mask/archive/master.zip> (be patient)…
ERROR: Extension <i.sentinel.mask> not found

Roberta

Markus M

Thanks in advance!
Roberta

[0] https://github.com/RobiFag/GRASS_clouds_and_shadows


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

On Tue, Jun 5, 2018 at 8:49 AM, Moritz Lennert <mlennert@club.worldonline.be

wrote:

Am 5. Juni 2018 14:38:49 MESZ schrieb Roberta Fagandini <
robifagandini@gmail.com>:
>Hi all!
>I'm trying to install my module i.sentinel.mask from the GitHub
>repository
>[0] using g.extension but I get the following error:
>
>g.extension extension=i.sentinel.mask operation=add url=
>https://github.com/RobiFag/GRASS_clouds_and_shadows

I think you have to point it to the directory of your add-on, i.e.

https://github.com/RobiFag/GRASS_clouds_and_shadows/i.sentinel.mask

But am in a train and can't test right now.

Unfortunately, g.extension GitHub/GitLab/... repository downloads currently
support only module (Makefile to be exact) at the top level. You need to
download the repo (e.g. a snapshot in the ZIP file) and point g.extension
to the right (sub)directory (with Makefile) or just add couple of functions
to g.extension to find that directory.

Vaclav

Thank you, Vaclav!
I moved the module at the top level and now it works!!

Roberta

···

2018-06-05 15:31 GMT+02:00 Vaclav Petras <wenzeslaus@gmail.com>:

On Tue, Jun 5, 2018 at 8:49 AM, Moritz Lennert <mlennert@club.worldonline.be> wrote:

Am 5. Juni 2018 14:38:49 MESZ schrieb Roberta Fagandini <robifagandini@gmail.com>:

Hi all!
I’m trying to install my module i.sentinel.mask from the GitHub
repository
[0] using g.extension but I get the following error:

g.extension extension=i.sentinel.mask operation=add url=
https://github.com/RobiFag/GRASS_clouds_and_shadows

I think you have to point it to the directory of your add-on, i.e.

https://github.com/RobiFag/GRASS_clouds_and_shadows/i.sentinel.mask

But am in a train and can’t test right now.

Unfortunately, g.extension GitHub/GitLab/… repository downloads currently support only module (Makefile to be exact) at the top level. You need to download the repo (e.g. a snapshot in the ZIP file) and point g.extension to the right (sub)directory (with Makefile) or just add couple of functions to g.extension to find that directory.

Vaclav