<div dir="ltr"><div><div>Hi Markus,<br><br></div>I am running Ubuntu 12.10. I am not sure what that means, g.extension being used outside of a GRASS session?<br><br></div>I could perhaps also be related to how I installed grass? Below my set of .configure - make - make install and some further details (not sure they are useful info, but adding just in case).<br>
<div>






<p>
./configure --enable-64bit  --prefix=/usr/local/grass6.4.current --with-sqlite --with-postgres  --with-postgres-libs=/usr/include/postgresql/libpq --with-postgres-includes=/usr/include/postgresql --with-odbc --with-geos --with-cairo --with-cxx=yes --with-gdal=/usr/local/gdal1.9/bin/gdal-config --with-libs=/lib64 --with-python=yes --with-wxwidgets=/usr/bin/wx-config --with-tcltk-includes=/usr/include/tcl8.5 --with-readline --with-freetype --with-freetype-includes=/usr/include/freetype2 --enable-largefile --with-motif --with-motif-includes=/usr/include  --with-proj-share=/usr/share/proj <br>

</p>










<p>
make<br>
sudo make install</p><p>I also created a shortcut in the /usr/bin: sudo ln -s /usr/local/grass6.4.current/bin/grass64 /usr/bin/grass6.4 + Added a configuration file in /etc/ld.so with the following line: /usr/local/grass6.4.current/grass-6.4.3svn/lib.<br>
</p></div><div>Your help is much appreciated. I am happy it all runs, so this isn't a major issue, but it would obviously be good if I could solve this.<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sun, Jan 27, 2013 at 9:16 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sun, Jan 27, 2013 at 2:23 PM, Paulo van Breugel<br>
<<a href="mailto:p.vanbreugel@gmail.com">p.vanbreugel@gmail.com</a>> wrote:<br>
> Hi Markus,<br>
><br>
> Thanks for looking into this. It didn't work in first instance, but after a<br>
> completely clean install it works,<br>
<br>
</div>(yes, g.extension in GRASS 6 doesn't handle properly the case of<br>
reinstallation)<br>
<div class="im"><br>
> with one caveat. The help file shows now,<br>
> but without the parameter info (which supposedly should be extracted from<br>
> the script?).<br>
<br>
</div>Yes, caused by the error below:<br>
<div class="im"><br>
> I am also getting the following error message:<br>
><br>
> Fetching <r.mess> from GRASS-Addons SVN (be patient)...<br>
> Compiling...<br>
> /usr/local/grass6.4.current/grass-6.4.3svn/include/Make/Script.make:47:<br>
> warning: overriding commands for target `install'<br>
</div>...<br>
<div class="im">> ERROR: G_getenv(): Variable LOCATION_NAME not set<br>
<br>
</div>To me it looks like g.extension being used outside of a GRASS session.<br>
<br>
...<br>
<div class="im">> I tried a few other extensions, and the same happens, so this does not seem<br>
> to be something specific to r.mess<br>
<br>
</div>On Fedora 17 no problem, it installs properly.<br>
<div class="im"><br>
> (but I don't know if it is something specific to my system?).<br>
<br>
</div>Apparently yes: which OS is it?<br>
<span class="HOEnZb"><font color="#888888"><br>
Markus<br>
</font></span></blockquote></div><br></div>