Hi Luca,

On Mon, Mar 29, 2021 at 8:47 AM Luca Delucchi <lucadel...@gmail.com> wrote:
>
> Hi devs,
>
> I'm trying to compile addons against my local GRASS installation. On
> my machine Python2 doesn't exist so I don't have python command, so I
> cannot compile because It cannot find python
>
> if [ "/home/lucadelu/installati/grass78/scripts/t.rast.what.aggr" !=
...
> /home/lucadelu/installati/grass78/scripts/t.rast.what.aggr
> --html-description < /dev/null | grep -v '</body>\|</html>' >
> t.rast.what.aggr.tmp.html ; fi
> /usr/bin/env: 'python': No such file or directory

Did you try (Ubuntu/Debian/...):

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
?

...
> If add create python command a symbol link of python3 I have another problem
>
> gmake78
> if [ "/home/lucadelu/installati/grass78/scripts/t.rast.what.aggr" !=
...
> GISBASE=/home/lucadelu/installati/grass78
> PATH="/home/lucadelu/installati/grass78/bin:/home/lucadelu/installati/grass78/bin:/home/lucadelu/installati/grass78/scripts:$PATH"
> PYTHONPATH="/home/lucadelu/installati/grass78/etc/python:/home/lucadelu/installati/grass78/gui/wxpython:$PYTHONPATH"
> LD_LIBRARY_PATH="/home/lucadelu/installati/grass78/bin:/home/lucadelu/installati/grass78/bin:/home/lucadelu/installati/grass78/scripts:/home/lucadelu/installati/grass78/lib:/home/lucadelu/installati/grass78/lib:"
> LC_ALL=C LANG=C LANGUAGE=C g.parser -t t.rast.what.aggr.py | sed
> s/\"/\\\\\"/g | sed 's/.*/_("&")/' >
> /home/lucadelu/installati/grass78/locale/scriptstrings/t.rast.what.aggr_to_translate.c
> /bin/sh: 1: cannot create
> /home/lucadelu/installati/grass78/locale/scriptstrings/t.rast.what.aggr_to_translate.c:
> Directory nonexistent

Confirmed, I had the same issue here.

...
> I cannot understand what is doing,

It is needed for gettext extraction.

> the problem seems related to
> `scriptstrings` directory doesn't exist in locale directory

Yes, I had to create it, so it would be

mkdir -p /home/lucadelu/installati/grass78/locale/scriptstrings/

Not sure why this happens occasionally. Perhaps you have configured
the source code --without-nls? Maybe then the subdir is not generated
but better to always have it present?

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

Reply via email to