Re: [GRASS-user] add-ons installation failure
Patrick Schirmer wrote: > Thanks Markus, > > that helped and it will nearly finish installation of add-on v.vect.stats. > Had to change all rights for the folders grass64 and subfolders to allow > manipulation. But still one error (tested at home on other computer, so in > German): > > /usr/bin/install: Aufruf von stat für „/usr/lib/grass64/bin/v.vect.stats“ > nicht möglich: No such file or directory. > make: *** [install] Fehler 1 > > any idea? Yes. Because of this line: > /usr/bin/install -c /usr/lib/grass64/bin/v.vect.stats /usr/lib/grass64/bin/ it may well be possible that my suggestion below was nonsense: > > Markus Metz wrote: > > I forgot... > > > and in /usr/lib/grass64/include/Make/GRASS.make, you may need to replace > > # GRASS global directories and constants > # platform specific dirs > ARCH_DISTDIR = $(GRASS_HOME)/dist.$(ARCH) > ARCH_BINDIR = $(GRASS_HOME)/bin.$(ARCH) > ERRORLOG= $(GRASS_HOME)/error.log > > with > > ARCH_DISTDIR = $(GRASS_HOME) > ARCH_BINDIR = $(GRASS_HOME)/bin > # point ERRORLOG to somewhere at home, e.g. current dir ??? > ERRORLOG= grass64_error.log > > completely untested, just a guess > I am not familiar with the install part of the Make system because I never do make install and never use g.extension. Maybe someone else more familiar with it can help... Markus M ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] add-ons installation failure
Thanks Markus, that helped and it will nearly finish installation of add-on v.vect.stats. Had to change all rights for the folders grass64 and subfolders to allow manipulation. But still one error (tested at home on other computer, so in German): //usr/bin/install: Aufruf von stat für „/usr/lib/grass64/bin/v.vect.stats“ nicht möglich: No such file or directory. make: *** [install] Fehler 1 /any idea?/ / patrick/ / _complete log:_ GRASS 6.4.0 (swiss_wgs84_unporjected):~ > g.extension ext=v.vect.stats Fetching from GRASS-Addons SVN (be patient)... Av.vect.stats/grass7.patch Av.vect.stats/main.c Av.vect.stats/description.html Av.vect.stats/grass65.patch Av.vect.stats/Makefile U v.vect.stats Ausgecheckt, Revision 44350. Compiling ... /usr/lib/grass64/include/Make/Grass.make:426: Warnung: Die Befehle für das Ziel »/usr/lib/grass64/bin« werden überschrieben /usr/lib/grass64/include/Make/Grass.make:417: Warnung: Alte Befehle für das Ziel »/usr/lib/grass64/bin« werden ignoriert make: Für das Ziel »/usr/lib/grass64/dist.i486-pc-linux-gnu« ist nichts zu tun. Installing v.vect.stats... /usr/lib/grass64/include/Make/Grass.make:426: Warnung: Die Befehle für das Ziel »/usr/lib/grass64/bin« werden überschrieben /usr/lib/grass64/include/Make/Grass.make:417: Warnung: Alte Befehle für das Ziel »/usr/lib/grass64/bin« werden ignoriert /usr/bin/install -c /usr/lib/grass64/bin/v.vect.stats /usr/lib/grass64/bin/ /usr/bin/install: Aufruf von stat für „/usr/lib/grass64/bin/v.vect.stats“ nicht möglich: No such file or directory make: *** [install] Fehler 1 FEHLER: Installation failed, sorry. Please check above error messages. GRASS 6.4.0 (swiss_wgs84_unporjected):~ > ^C On 16.11.2010 13:41, Markus Metz wrote: I forgot... On Tue, Nov 16, 2010 at 1:26 PM, Markus Metz wrote: On Tue, Nov 16, 2010 at 12:14 PM, Patrick_schirmer wrote: Dear list, I am trying to install add-ons on GRASS (6.4.0) through g.extension, as Markus mentioned this should be possible with RC07. Had to import grass-dev package, Some of these grass-dev packages seem to have bugs introduced by the packagers: in /usr/lib/grass64/include/Make/Platform.make, replace # GRASS dirs GRASS_HOME = /build/buildd/grass-6.4.0 RUN_GISBASE = /build/buildd/grass-6.4.0/dist.i486-pc-linux-gnu with # GRASS dirs GRASS_HOME = /usr/lib/grass64 # not sure what should be here since /usr/lib/grass64/dist.i486-pc-linux-gnu does not exist: RUN_GISBASE = /usr/lib/grass64 and in /usr/lib/grass64/include/Make/GRASS.make, you may need to replace # GRASS global directories and constants # platform specific dirs ARCH_DISTDIR= $(GRASS_HOME)/dist.$(ARCH) ARCH_BINDIR = $(GRASS_HOME)/bin.$(ARCH) ERRORLOG= $(GRASS_HOME)/error.log with ARCH_DISTDIR= $(GRASS_HOME) ARCH_BINDIR = $(GRASS_HOME)/bin # point ERRORLOG to somewhere at home, e.g. current dir ??? ERRORLOG= grass64_error.log completely untested, just a guess Markus M ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] add-ons installation failure
I forgot... On Tue, Nov 16, 2010 at 1:26 PM, Markus Metz wrote: > On Tue, Nov 16, 2010 at 12:14 PM, Patrick_schirmer wrote: >> Dear list, >> >> I am trying to install add-ons on GRASS (6.4.0) through g.extension, as >> Markus mentioned this should be possible with RC07. Had to import grass-dev >> package, > > Some of these grass-dev packages seem to have bugs introduced by the > packagers: > > in /usr/lib/grass64/include/Make/Platform.make, replace > > # GRASS dirs > GRASS_HOME = /build/buildd/grass-6.4.0 > RUN_GISBASE = /build/buildd/grass-6.4.0/dist.i486-pc-linux-gnu > > with > > # GRASS dirs > GRASS_HOME = /usr/lib/grass64 > # not sure what should be here since > /usr/lib/grass64/dist.i486-pc-linux-gnu does not exist: > RUN_GISBASE = /usr/lib/grass64 > and in /usr/lib/grass64/include/Make/GRASS.make, you may need to replace # GRASS global directories and constants # platform specific dirs ARCH_DISTDIR= $(GRASS_HOME)/dist.$(ARCH) ARCH_BINDIR = $(GRASS_HOME)/bin.$(ARCH) ERRORLOG= $(GRASS_HOME)/error.log with ARCH_DISTDIR= $(GRASS_HOME) ARCH_BINDIR = $(GRASS_HOME)/bin # point ERRORLOG to somewhere at home, e.g. current dir ??? ERRORLOG= grass64_error.log completely untested, just a guess Markus M > Then it should not be necessary to... > >> create a directory "build" in directory "/" (which is not mentioned >> in wiki) and change rights to chmod -777 that it would start running. > > and... > >> When >> running g.extension extension=v.vectstats it creates following error: >> >> Compiling ... >> test -d OBJ.i486-pc-linux-gnu || mkdir -p OBJ.i486-pc-linux-gnu >> gcc -I/build/buildd/grass-6.4.0/dist.i486-pc-linux-gnu/include -Wall -g -O >> -I/usr/include/gdal -DPACKAGE=\""grassmods"\" >> -I/build/buildd/grass-6.4.0/dist.i486-pc-linux-gnu/include -o > > the non-existing path > /build/buildd/grass-6.4.0/dist.i486-pc-linux-gnu/include > should be replaced with the existing path > /usr/lib/grass64/include > > HTH, > > Markus M > > >> OBJ.i486-pc-linux-gnu/main.o -c main.c >> main.c:23:23: error: grass/gis.h: No such file or directory >> main.c:24:27: error: grass/glocale.h: No such file or directory >> main.c:25:25: error: grass/stats.h: No such file or directory >> main.c:26:24: error: grass/dbmi.h: No such file or directory >> main.c:27:24: error: grass/Vect.h: No such file or directory >> main.c:31: error: expected specifier-qualifier-list before ‘stat_func’ >> main.c:39: error: ‘c_sum’ undeclared here (not in a function) >> >> (complete log file is attached) >> >> Do I need to set some other paths before? I still try to avoid installing >> GRASS from svn. >> Wiki-link: >> http://josef.fsv.cvut.cz/WIKI/grass-osgeo/index.php/GRASS_AddOns#Building_and_installing_Addons >> >> Thanks for your kind help >> >> Patrick (Schirmer) >> >> ___ >> grass-user mailing list >> grass-user@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/grass-user >> >> > ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] add-ons installation failure
On Tue, Nov 16, 2010 at 12:14 PM, Patrick_schirmer wrote: > Dear list, > > I am trying to install add-ons on GRASS (6.4.0) through g.extension, as > Markus mentioned this should be possible with RC07. Had to import grass-dev > package, Some of these grass-dev packages seem to have bugs introduced by the packagers: in /usr/lib/grass64/include/Make/Platform.make, replace # GRASS dirs GRASS_HOME = /build/buildd/grass-6.4.0 RUN_GISBASE = /build/buildd/grass-6.4.0/dist.i486-pc-linux-gnu with # GRASS dirs GRASS_HOME = /usr/lib/grass64 # not sure what should be here since /usr/lib/grass64/dist.i486-pc-linux-gnu does not exist: RUN_GISBASE = /usr/lib/grass64 Then it should not be necessary to... > create a directory "build" in directory "/" (which is not mentioned > in wiki) and change rights to chmod -777 that it would start running. and... > When > running g.extension extension=v.vectstats it creates following error: > > Compiling ... > test -d OBJ.i486-pc-linux-gnu || mkdir -p OBJ.i486-pc-linux-gnu > gcc -I/build/buildd/grass-6.4.0/dist.i486-pc-linux-gnu/include -Wall -g -O > -I/usr/include/gdal -DPACKAGE=\""grassmods"\" > -I/build/buildd/grass-6.4.0/dist.i486-pc-linux-gnu/include -o the non-existing path /build/buildd/grass-6.4.0/dist.i486-pc-linux-gnu/include should be replaced with the existing path /usr/lib/grass64/include HTH, Markus M > OBJ.i486-pc-linux-gnu/main.o -c main.c > main.c:23:23: error: grass/gis.h: No such file or directory > main.c:24:27: error: grass/glocale.h: No such file or directory > main.c:25:25: error: grass/stats.h: No such file or directory > main.c:26:24: error: grass/dbmi.h: No such file or directory > main.c:27:24: error: grass/Vect.h: No such file or directory > main.c:31: error: expected specifier-qualifier-list before ‘stat_func’ > main.c:39: error: ‘c_sum’ undeclared here (not in a function) > > (complete log file is attached) > > Do I need to set some other paths before? I still try to avoid installing > GRASS from svn. > Wiki-link: > http://josef.fsv.cvut.cz/WIKI/grass-osgeo/index.php/GRASS_AddOns#Building_and_installing_Addons > > Thanks for your kind help > > Patrick (Schirmer) > > ___ > grass-user mailing list > grass-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-user > > ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user