I got the latest version of GRASS 6.4.1svn running (from the binaries), and I have a new error message when I try to use g.extension. <div>----------------</div><div><div>GRASS 6.4.1svn (10.27):~ > g.extension i.landsat.toar</div>
<div>Fetching <i.landsat.toar> from GRASS-Addons SVN (be patient)...</div><div>A i.landsat.toar/landsat_set.c</div><div>A i.landsat.toar/local_proto.h</div><div>A i.landsat.toar/main.c</div><div>A i.landsat.toar/description.html</div>
<div>A i.landsat.toar/landsat.c</div><div>A i.landsat.toar/earth_sun.c</div><div>A i.landsat.toar/landsat.h</div><div>A i.landsat.toar/landsat_met.c</div><div>A i.landsat.toar/Makefile</div><div>A i.landsat.toar/earth_sun.h</div>
<div> U i.landsat.toar</div><div>Checked out revision 44052.</div><div>Compiling <i.landsat.toar>...</div><div>mkdir -p /home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/bin.x86_64-unknown-linux-gnu</div>
<div>mkdir -p /home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/include/grass</div><div>mkdir -p /home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/lib</div>
<div>mkdir -p /home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/bin</div><div>mkdir -p /home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/etc</div>
<div>mkdir -p /home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/driver</div><div>mkdir -p /home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/driver/db</div>
<div>mkdir -p /home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/fonts</div><div>test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p OBJ.x86_64-unknown-linux-gnu</div><div>gcc -I/home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/include -g -Wall -Werror-implicit-function-declaration -fno-common -DPACKAGE=\""grassmods"\" -I/home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/earth_sun.o -c earth_sun.c</div>
<div>gcc -I/home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/include -g -Wall -Werror-implicit-function-declaration -fno-common -DPACKAGE=\""grassmods"\" -I/home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/landsat.o -c landsat.c</div>
<div>landsat.c:4:23: error: grass/gis.h: No such file or directory</div><div>landsat.c: In function ‘lsat_bandctes’:</div><div>landsat.c:133: error: implicit declaration of function ‘G_verbose_message’</div><div>make: *** [OBJ.x86_64-unknown-linux-gnu/landsat.o] Error 1</div>
<div>ERROR: Compilation failed, sorry. Please check above error messages.</div><div>------------------</div><div><br></div><div>Do I have to install GRASS from source for g.extension to work?</div><div><br></div><div>Thanks,</div>
<div>Nick</div><div><br></div><div class="gmail_quote">On Sun, Oct 24, 2010 at 9:56 PM, Nick Jachowski <span dir="ltr"><<a href="mailto:njachowski@gmail.com">njachowski@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks for your help Markus. <br><br>I am now trying to use g.extension with GRASS 6.5.svn and GRASS 7.0.svn on Ubuntu 10.10, however when I start either versions of GRASS and try to open a new location (using the wxPython gui) I get the following error: <br>
<br>> g.proj: error while loading shared libraries: libgdal1.5.0.so.1: cannot open shared object file: No such file or directory<br><br>I searched for libgdal and found that I have libgdal1.6.0.so.1 at ./usr/lib/libgdal1.6.0.so.1<br>
<br>I don't care whether or not I get GRASS working on this OS or even what version of GRASS I get to work. I am just interested in the easiest way to use g.extension to be able to use the i.landsat.toar addon. Is there a flavour of linux that is particularly easy to use when it comes to GRASS? And would you recommend GRASS 6.4.0, 6.5, or 7.0 to get g.extension to work? <br>
<br>Any help is appreciated, thanks!<br><font color="#888888"><br>Nick</font><div><div></div><div class="h5"><br><br><br><br><br><br><br><br><div class="gmail_quote">On Fri, Oct 22, 2010 at 12:09 PM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div>On Fri, Oct 22, 2010 at 4:20 PM, Nick Jachowski <<a href="mailto:njachowski@gmail.com" target="_blank">njachowski@gmail.com</a>> wrote:<br>
><br>
> I'm trying to get the grass add-on i.landsat.toar to work using g.extension,<br>
> and I've had many problems. I had been trying it on opensuse 11.3 and I<br>
> installed various versions of grass from source, but they all had problems<br>
> and did not work.<br>
<br>
</div>You mean that GRASS (which version) did not work or that g.extension within<br>
it failed? Note that there is a known bug for g.extension usage in the Makefile<br>
system due to a wrong path which also manifests in OpenSuse.<br>
<div><br>
> I've almost given up, and now I am running grass on<br>
> poseidon linux (ubuntu base) which came preinstalled with Grass 6.4ORC5.<br>
<br>
</div>(that's fairly old...)<br>
<div><br>
> My question is: what is the easiest, most pain-free way to get g.extension to<br>
> work? What linux flavour should I be using (and is 32-bit or 64-bit<br>
> better)? Which GRASS version number? Do I need to install from source?<br>
<br>
</div>It would be needed to fix for many platforms this bug:<br>
<a href="http://trac.osgeo.org/grass/ticket/620" target="_blank">http://trac.osgeo.org/grass/ticket/620</a><br>
<br>
In general, please use 6.4.0 (or 6.4.svn).<br>
<div><br>
> If I can't get g.extension to work properly are there any workarounds such<br>
> as running it as bash script?<br>
<br>
</div>It needs to be compiled. You can manually fix the path in<br>
include/Make/Platform.make (see above ticket), then g.extension<br>
should work. Yesterday I made an attempt to also fix the<br>
system wide installation (in GRASS 6.5) which might be<br>
backported.<br>
<font color="#888888"><br>
Markus<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br></div>