[GRASS-user] Install GRASS 7.4

Tomáš Brunclík brunclik at atlas.cz
Tue Feb 19 12:06:59 PST 2019


Now I see there are not simple instructions how to install binary 
snapshot in the directory itself, so if you are not familiar with it, 
just download grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019-install.sh 
and grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019.tar.gz (or similar 
files if the grass version or build date is updated) and run on the 
terminal:


cd <download directory>
sudo sh grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019-install.sh 
grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019.tar.gz

Replace <download directory> with the path to directory, where you 
downloaded the files. This is system-wide installation to /usr/local

And now: I tried this (although the single user variant) and after 
successful installation I got this after selecting existing grass mapset 
in the GUI dialog:

          / ____/ __ \/   | / ___/ ___/   / ____/  _/ ___/
         / / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \
        / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /
        \____/_/ |_/_/  |_/____/____/   \____/___//____/

Welcome to GRASS GIS 7.4.5svn (r74079)
GRASS GIS homepage:                      https://grass.osgeo.org
This version running through:            Bash Shell (/bin/bash)
Help is available with the command:      g.manual -i
See the licence terms with:              g.version -c
See citation options with:               g.version -x
If required, restart the GUI with:       g.gui wxpython
When ready to quit enter:                exit

Launching <wxpython> GUI in the background, please wait...
GRASS 7.4.5svn (utm33n):~ > g.list: error while loading shared 
libraries: libproj.so.0: cannot open shared object file: No such file or 
directory
Traceback (most recent call last):
   File 
"/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/wxgui.py", 
line 167, in <module>
     sys.exit(main())
   File 
"/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/wxgui.py", 
line 154, in main
     app = GMApp(workspaceFile)
   File 
"/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/wxgui.py", 
line 48, in __init__
     wx.App.__init__(self, False)
   File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 
8628, in __init__
     self._BootstrapApp()
   File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 
8196, in _BootstrapApp
     return _core_.PyApp__BootstrapApp(*args, **kwargs)
   File 
"/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/wxgui.py", 
line 101, in OnInit
     workspace=self.workspaceFile)
   File 
"/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/lmgr/frame.py", 
line 142, in __init__
     self.notebook = self._createNoteBook()
   File 
"/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/lmgr/frame.py", 
line 337, in _createNoteBook
     gcstyle=GC_PROMPT)
   File 
"/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/gui_core/goutput.py", 
line 118, in __init__
     self.cmdPrompt = GPromptSTC(parent=self, menuModel=self._menuModel)
   File 
"/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/gui_core/prompt.py", 
line 139, in __init__
     GPrompt.__init__(self, parent=parent, menuModel=menuModel)
   File 
"/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/gui_core/prompt.py", 
line 57, in __init__
     self.mapList = self._getListOfMaps()
   File 
"/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/gui/wxpython/gui_core/prompt.py", 
line 101, in _getListOfMaps
     result['raster'] = grass.list_strings('raster')
   File 
"/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/etc/python/grass/script/core.py", 
line 1226, in list_strings
     mapset=mapset).splitlines():
   File 
"/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/etc/python/grass/script/core.py", 
line 476, in read_command
     return handle_errors(returncode, stdout, args, kwargs)
   File 
"/home/tom/grass-7.4.5svn-x86_64-pc-linux-gnu-18_02_2019/etc/python/grass/script/core.py", 
line 332, in handle_errors
     returncode=returncode)
grass.exceptions.CalledModuleError: Module run None ['g.list', '--q', 
'-m', 'type=raster'] ended with error
Process ended with non-zero return code 127. See errors in the (error) 
output.
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
   File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
     func(*targs, **kargs)
PyAssertionError: C++ assertion "GetEventHandler() == this" failed at 
../src/common/wincmn.cpp(478) in ~wxWindowBase(): any pushed event 
handlers must have been removed
Error in sys.exitfunc:
Traceback (most recent call last):
   File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
     func(*targs, **kargs)
wx._core.PyAssertionError: C++ assertion "GetEventHandler() == this" 
failed at ../src/common/wincmn.cpp(478) in ~wxWindowBase(): any pushed 
event handlers must have been removed


Of course, grass gui did not start. On this machine, grass 7.2 is 
installed amd running via the packaging system (I'm on Debian stretch 
based SolydX distro), so evidently, there are unmet dependencies of the 
binary snapshot and the fact, that I have  grass 7.2 from repos running 
is not enough because of different versions of libraries required. Is 
this the type of problem you face as well? I run older version of GRASS 
7.4 on my other machines, so I was a little surprised the installation 
did not work out of the box as I expected... Sorry for recommending 
simple solution before realizing it may not be as simple as I thought. 
But maybe it can still work without these problems on your distro.
Tomas


Dne 19. 02. 19 v 19:33 Tomáš Brunclík napsal(a):
> Hello, I do not know if you refer to a method of installing an older 
> .deb package, but in this case it may be easier to install outside of 
> the packaging system, for example from a weekly binary snapshots 
> (probably easier), or from source. You can in the same time have the 
> newer and continually updated version from your apt sources alongside 
> it, thus having advantages of both versions at hand (good idea also 
> because of possible dependencies of the binary snapshot, which should 
> be met on your system if you have other version of grass already 
> installed). The binary snapshots can be installed to a directory of 
> your choice, system-wide probably under /usr/local, or even only for 
> one user under his own home directory. Version which may be good for 
> you is on https://grass.osgeo.org/grass74/binary/linux/snapshot/, 
> together wit instructions how to install.
> Regards,
> Tomas
>
> Dne 19. 02. 19 v 17:59 Ulrich Kriechbaum napsal(a):
>> Hello everyone!
>> I unfortunately made an unknown mistake, crashing Grass on my 
>> computer (Ubuntu 16.04). I now want to reinstall GRASS and the module 
>> r.avaflow (which, i believe, only works with GRASS 7.4). The problem 
>> is, i can only install GRASS 7.6, even with the method stated on the 
>> GRASS homepage for GRASS 7.4.4 (old stable). Can anyone pls help??? I 
>> have already tried quite some time but can't find a solution.
>> Best regards
>> Ulli
>>
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/grass-user
>
>
> -- 
> Tomáš Brunclík
> fotky:http://tom44.portfoliobox.me/
> mobil: (+420) 724 709 138
> skype: tomas_brunclik, jabber:tomas_iv at jabber.cz
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user


-- 
Tomáš Brunclík
fotky: http://tom44.portfoliobox.me/
mobil: (+420) 724 709 138
skype: tomas_brunclik, jabber: tomas_iv at jabber.cz

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20190219/33311a28/attachment.html>


More information about the grass-user mailing list