<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Stephen,</p>
<p>
Let's see if I can help you. I always compile GRASS from source
and in my experience whenever there is a problem the most probable
reason is that a library is lacking. Seldom is GRASS itself the
problem.</p>
<p>The instructions Vero linked work of course but these are general
and you need to change them to adapt to your system or preferred
setup. So that depends on you.</p>
I do not see what exactly you are doing or in which OS you are. It
seems that you may need to ensure that python 3 is installed with
its relevant modules. How that is done depends on your exact system.
Pay attention that the GRASS GUI needs python wxWidgets bindings.
<p>Assuming you are in Linux and that you have all the required
libraries (including dev packages) installed, this should work:</p>
<p><br>
</p>
<p>- open a terminal and log in as root user</p>
<p><br>
</p>
<p>- change dir to /usr/local/src<br>
</p>
<p><br>
</p>
<p>- get the package file</p>
<p>wget
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/grass/archive/refs/tags/7.8.5.tar.gz">https://github.com/OSGeo/grass/archive/refs/tags/7.8.5.tar.gz</a><br>
</p>
<p><br>
</p>
<p>- untar and uncompress the package file</p>
<p>tar -xvf 7.8.5.tar.gz</p>
<p><br>
</p>
<p>- change dir to grass-7.8.5</p>
<p>cd grass-7.8.5 (or whatever is called)<br>
</p>
<p><br>
</p>
<p>- configure, this depends on what exactly you have and what you
want to do. The following is the line I use often. You need to
edit this to suit your system and needs:<br>
</p>
<p><code>./configure --enable-shared --with-odbc --with-fftw
--with-readline --with-curses
--with-proj-share=/usr/local/share/proj --enable-largefile
--with-motif --with-freetype
--with-freetype-includes=/usr/include/freetype2 --with-sqlite
--enable-64bit --with-geos --with-python --with-netcdf
--with-blas</code><br>
<code></code></p>
<br>
<p><code>-make (use the N = number of cores in your processor to
parallelize and make it complete in less time)<br>
</code></p>
<p><code>make -j N</code><br>
<code><br>
</code></p>
<code>- install (this will put a script called grass78 in
/usr/local/bin):</code>
<p><code>make install</code></p>
<br>
<p>- as normal user, type in a terminal:</p>
<p>grass78</p>
<p><br>
</p>
<p>GRASS should then start.</p>
<p><br>
</p>
<p>Good luck</p>
<p><br>
</p>
<p>Hernán</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 2021-03-26 23:13, Stephen Kirby
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAKhKqCAb5FEUCRoAWND-xv80zoAgy_BxtC_cjUTnLO8erwjZqA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">Thanks Veronica for that good information. I've
made some progress by ensuring I had the libs it needs ready
(GDAL, etc.). Now it is giving me a Python error :
<div><br>
</div>
<div> File
"/home/me/grass/dist.x86_64-pc-linux-gnu/etc/python/grass/script/core.py",
line 305, </div>
<div>**options,</div>
<div>SyntaxError: invalid syntax</div>
<div><br>
</div>
<div>I am not a Python user so this is throwing me. I assume
I need to install a Python (Python3?) module, via "pip
install ..." I suppose. Can someone tell me which module
can fix this? </div>
<div><br>
</div>
<div>For reference, the whole Python block of code containing
the offending line, from core.py is:</div>
<div>def make_command(</div>
<div> prog,</div>
<div> flags="",</div>
<div> overwrite=False,</div>
<div> quiet=False,</div>
<div> verbose=False,</div>
<div> superquiet=False,</div>
<div> errors=None,</div>
<div> **options,</div>
<div>);</div>
<div><br>
</div>
<div>Thanks for any ideas.</div>
<div><br>
</div>
<div>Best,</div>
<div>Steve</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Mar 26, 2021 at 12:25
PM Veronica Andreo <<a href="mailto:veroandreo@gmail.com"
moz-do-not-send="true">veroandreo@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>Hi Steve, <br>
</div>
<div><br>
</div>
<div>I'm no expert in compiling at all, but I always run
configure in the source code directory. Have you tried? <br>
</div>
<div>Once configure runs without errors, just run make, if
no errors at the end, you are good to go</div>
<div><br>
</div>
<div>Here's a wiki with instructions for diverse linux
platforms: <a
href="https://grasswiki.osgeo.org/wiki/Compile_and_Install"
target="_blank" moz-do-not-send="true">https://grasswiki.osgeo.org/wiki/Compile_and_Install</a></div>
<div><br>
</div>
<div>hth, <br>
</div>
<div>Vero<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">El vie, 26 mar 2021 a las
18:07, Stephen Kirby (<<a
href="mailto:thinjogger@gmail.com" target="_blank"
moz-do-not-send="true">thinjogger@gmail.com</a>>)
escribió:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I am trying to build the version of GRASS listed in
the subject line. However, when I run configure, it
does not produce a "Makefile" even though configure
appears to complete without error. The closest thing
I see to a Makefile is this file:
include/Make/Platform.make. I am not running
configure in the source code directory as one is
always told this is a bad idea (for ex., when building
gcc). I am running configure in a separate directory
("/build-grass"). Let me know what I should try next
as I am excited to get GRASS running!</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Steve</div>
</div>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org"
target="_blank" moz-do-not-send="true">grass-user@lists.osgeo.org</a><br>
<a
href="https://lists.osgeo.org/mailman/listinfo/grass-user"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote>
</div>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a>
</pre>
</blockquote>
</body>
</html>