[GRASS-dev] problem compiling addons
Markus Neteler
neteler at osgeo.org
Mon Apr 5 02:38:08 PDT 2021
Hi Luca, all,
On Mon, Apr 5, 2021 at 7:33 AM Luca Delucchi <lucadeluge at gmail.com> wrote:
> On Mon, 29 Mar 2021 at 14:45, Markus Neteler <neteler at osgeo.org> wrote:
...
> > > 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/
> >
>
> ok, this is solving also for me
Wild guess:
index d6730c2f4..ff56bcd33 100644
--- a/include/Make/ShScriptRules.make
+++ b/include/Make/ShScriptRules.make
@@ -9,9 +9,12 @@ $(SCRIPTDIR)/%: %.sh | $(SCRIPTDIR)
$(SCRIPTDIR)/%.sh: %.sh | $(SCRIPTDIR)
$(INSTALL) $< $@
-$(SCRIPTDIR):
+$(SCRIPTDIR): $(STRINGDIR)
$(MKDIR) $(SCRIPTDIR)
+$(STRINGDIR):
+ $(MKDIR) $(STRINGDIR)
+
$(ETCDIR)/%: % | $(ETCDIR)
$(INSTALL_DATA) $< $@
Can you try this ? (I cannot reproduce the error at time)
ciao,
Markus
More information about the grass-dev
mailing list