[GRASS-user] Adding v.vi from the repository
Rebecca Bennett
rabennett at ymail.com
Thu Feb 18 12:34:19 EST 2010
Hello,
A quick question about compiling GRASS add-ons which I have been having some trouble with despite hours pouring over the instructions!
I am running 6.4 on Ubuntu Hardy and the package I need is i.vi for vegetation indices https://svn.osgeo.org/grass/grass/trunk/imagery/i.vi/. (I notice that there is also a version of this under the gipe repository here: https://svn.osgeo.org/grass/grass-addons/gipe/ but am not sure if this is the same as it mentions no speed ups (?) on the wiki page http://grass.osgeo.org/wiki/GRASS_AddOns#GIPE)
I have read the instructions at http://grass.osgeo.org/wiki/Compile_and_Install#Addons but being a bit of a noob I don't really understand what I need to do to compile the add-on.
I
have tried saving all the files in the i.vi directory to my
usr/src/grass source directory then following the Wiki instructions
compiling the file from there, but this just gave me an error message
(I have included the terminal output below this message so you can see what I did).
I'm probably just missing something obvious but I'm afraid don't have enough
understanding to make it work - any help would be much appreciated!
Thanks
Rebecca
rebecca at horizon:~/src/grass$ ls
arvi.c evi.c gemi.c ipvi.c main.c msavi2.c ndvi.c savi.c vari.c
dvi.c gari.c gvi.c i.vi.html Makefile msavi.c pvi.c sr.c wdvi.c
rebecca at horizon:~/src/grass$ make MODULE_TOPDIR=/path/to/grass64/
Makefile:8: /path/to/grass64//include/Make/Module.make: No such file or directory
make: *** No rule to make target `/path/to/grass64//include/Make/Module.make'. Stop.
rebecca at horizon:~/src/grass$ make MODULE_TOPDIR=/path/to/grass64/
Makefile:8: /path/to/grass64//include/Make/Module.make: No such file or directory
make: *** No rule to make target `/path/to/grass64//include/Make/Module.make'. Stop.
rebecca at horizon:~/src/grass$ make Makefile=/usr/bin/grass64/
Makefile:8: ../../include/Make/Module.make: No such file or directory
make: *** No rule to make target `../../include/Make/Module.make'. Stop.
rebecca at horizon:~/src/grass$ sudo make Makefile=/usr/bin/grass64/
[sudo] password for rebecca:
Makefile:8: ../../include/Make/Module.make: No such file or directory
make: *** No rule to make target `../../include/Make/Module.make'. Stop.
rebecca at horizon:~/src/grass$ alias gmake64='make Makefile=/usr/bin/grass64/'
rebecca at horizon:~/src/grass$ make Makefile=/usr/bin/grass64/ install
Makefile:8: ../../include/Make/Module.make: No such file or directory
make: *** No rule to make target `../../include/Make/Module.make'. Stop.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20100218/1fc8bea6/attachment.html
More information about the grass-user
mailing list