Installation Guide: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
m (→‎macOS: fixing section heading)
(Fix TOC hierarchy; links updated)
Line 1: Line 1:
== General ==
== General ==
:''For compilation of GRASS GIS source code, see [[Compile and Install]]''
:''Note: For compilation of GRASS GIS source code, see [[Compile and Install]]''
This page explains the installation of GRASS binaries.
This page explains the installation of GRASS binaries.


GRASS GIS requires a workstation running either some flavor of UNIX conforming to POSIX standards like Linux, Mac OS X, Solaris, IRIX, or BSD or MS-Windows. It is also possible to run GRASS in MS Windows by using UNIX translation software such as [[Cygwin]] or natively with MingGW. Ideally, you should have at least 500 Mb for data and 512 Mb RAM. The source code package needs around 270 MB uncompressed. The resulting binaries may need between 20 MB and 180 MB depending on your platform. During a full compilation you may need temporarily up to 150MB including the source code.
GRASS GIS requires a workstation running either some flavor of UNIX conforming to POSIX standards like Linux, Mac OS X, Solaris, IRIX, or BSD or MS-Windows. It is also possible to run GRASS in MS Windows by using UNIX translation software such as [[Cygwin]] or natively with MingGW. Ideally, you should have at least 500 Mb for data and 512 Mb RAM. The source code package needs around 270 MB uncompressed. The resulting binaries may need between 20 MB and 180 MB depending on your platform. During a full compilation you may need temporarily up to 150MB including the source code.


The [http://grass.osgeo.org/download/ Software Download Section] of the main GRASS web site contains the latest binaries and source code for all supported platforms. That site also has general directions for installing GRASS manually. However, installation is slightly different on each operating system. Here you can find user-contributed pointers for installing GRASS on specific platforms. In particular, many operating systems have package management utilities that can greatly simplify GRASS installation.
The [https://grass.osgeo.org/download/ Software Download Section] of the main GRASS web site contains the latest binaries and source code for all supported platforms. That site also has general directions for installing GRASS manually. However, installation is slightly different on each operating system. Here you can find user-contributed pointers for installing GRASS on specific platforms. In particular, many operating systems have package management utilities that can greatly simplify GRASS installation.


== MS Windows ==
== MS Windows ==


:''The official page [http://grass.osgeo.org/download/software/ms-windows/ GRASS GIS Download for MS-Windows]''
:''The official download page [https://grass.osgeo.org/download/windows/ GRASS GIS for MS-Windows]''
 
=== winGRASS standalone installer ===


* Native winGRASS packages (including the installer) are provided [http://grass.osgeo.org/grass64/binary/mswindows/native/ here]. See also [[WinGRASS Current Status]].
* Native winGRASS packages (including the installer) are provided [http://grass.osgeo.org/grass64/binary/mswindows/native/ here]. See also [[WinGRASS Current Status]].


* winGRASS/Cygwin packages are provided [http://grass.osgeo.org/grass64/binary/mswindows/cygwin/ here] (requires [[Cygwin]] UNIX emulator, see there).
=== OSGeo4W installer ===


* QGIS including native winGRASS packages are provided [http://www.qgis.org/wiki/Download here].
* Install using [https://trac.osgeo.org/osgeo4w/ OSGeo4W installer] which installs all dependencies as well (PROJ, GDAL, GEOS, etc.)


* Install using [http://trac.osgeo.org/osgeo4w/ OSGeo4W installer] (GRASS 6 needs to be checked in the "Express" install. GRASS 7 needs to be selected in the "Advanced" installation.)
=== QGIS with winGRASS installer ===
* QGIS including native winGRASS packages are provided [https://www.qgis.org/wiki/Download here].
 
<!--
=== winGRASS/Cygwin installer ===
* winGRASS/Cygwin packages are provided [http://grass.osgeo.org/grass64/binary/mswindows/cygwin/ here] (requires [[Cygwin]] UNIX emulator, see there).
-->


== GNU/Linux ==
== GNU/Linux ==


:''The official page [http://grass.osgeo.org/download/software/linux/ GRASS GIS Download for GNU/Linux]''
:''The official page [https://grass.osgeo.org/download/linux/ GRASS GIS Download for GNU/Linux]''


=== Debian ===
=== Debian ===
Line 29: Line 37:
   apt-get install grass grass-doc
   apt-get install grass grass-doc


This is the easiest way to install GRASS on Debian. If you choose to install a binary version manually from the main web site, be sure to follow the instructions for making symlinks found as a note to the [[http://grass.osgeo.org/grass64/binary/linux/snapshot/ 6.4 weekly snapshot]] release.
This is the easiest way to install GRASS on Debian. If you choose to install a binary version manually from the main web site, be sure to follow the instructions for making symlinks found as a note to the [[http://grass.osgeo.org/grass-stable/binary/linux/snapshot/ 7.x stable weekly snapshot]] release.


==== DebianGis ====
==== DebianGIS ====


There is also the wonderful [http://wiki.debian.org/DebianGis DebianGIS] project which has a more recent GRASS version with its related packages. Read here for more [[GRASS in Debian |details]]
There is also the wonderful [https://wiki.debian.org/DebianGis DebianGIS] project which has a more recent GRASS version with its related packages. Read here for more [[GRASS in Debian |details]]


==== Compiling GRASS from source ====
==== Compiling GRASS from source ====
Line 44: Line 52:


<source lang="bash">
<source lang="bash">
  yum install grass
  sudo dnf install grass grass-gui
</source>
</source>


=== Mandriva ===
=== Mageia ===


* [http://sophie.zarb.org/srpm/cooker,ia64/grass Mandriva] provides PROJ/GDAL/GRASS RPMs. Newer versions they are in the "backports" section:
* [https://madb.mageia.org/package/show/name/grass/ Mageia] provides PROJ/GDAL/GRASS RPMs:


   urpmi grass
   urpmi grass
Line 55: Line 63:
=== openSUSE ===
=== openSUSE ===


* [http://download.opensuse.org/repositories/Application:/Geo/ openSUSE] provides GRASS and related RPM-packages.
* [https://build.opensuse.org/package/show/Application:Geo/grass openSUSE] provides GRASS and related RPM-packages:
 
'''GRASS 6:''' To install GRASS 6 release on openSUSE:
 
From terminal:
 
<source lang="bash">
sudo zypper ar http://download.opensuse.org/repositories/Application:/Geo/openSUSE_12.3/ GEO
sudo zypper refresh
sudo zypper install grass
</source>
 
Alternatively, one can use the '''One-Click installer''':
http://software.opensuse.org/package/grass
 
'''GRASS 7:''' To install the latest GRASS 7 SVN snapshot:


<source lang="bash">
<source lang="bash">
Line 78: Line 71:


Alternatively, one can use the '''One-Click installer''':
Alternatively, one can use the '''One-Click installer''':
http://software.opensuse.org/package/grass7
https://software.opensuse.org/package/grass


=== Red Hat Enterprise Linux (RHEL, CentOS and Scientific Linux) ===
=== Red Hat Enterprise Linux (RHEL, CentOS and EPEL) ===


* [http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS Enterprise Linux] offers GRASS and related binaries
* [https://src.fedoraproject.org/rpms/grass Fedora] offers GRASS and related binaries for CentOS and EPEL


<source lang="bash">
<source lang="bash">
  yum install grass
  dnf install grass
</source>
</source>


Line 98: Line 91:
To get the latest version of GRASS on Ubuntu, compile the code from source. See the [[Compile and Install]] section for a shell script that makes this easy.
To get the latest version of GRASS on Ubuntu, compile the code from source. See the [[Compile and Install]] section for a shell script that makes this easy.


=== Slackware ===
== MacOS ==


Slackware 12 packages for GRASS binary distributions and additional libraries are available from [http://repository.slacky.eu/slackware-12.2/scientific/grass The Italian Slackware Community] (release version) and [http://geni.ath.cx/grass.html#_Slackware_12_binary_distributions here] (SVN version).
Precompiled GRASS GIS 7 packages for macOS can be found [https://grass.osgeo.org/download/mac here]. These are distributed as zipped *.dmg packages. Opening the dmg prompts the user to simply drag and drop the app into the Applications folder. In fact, they '''must''' be installed into the Applications folder and may not run properly in other locations.
 
A brief introduction to how to install via [https://www.macports.org MacPorts]: [[Compiling on macOS using MacPorts]].


=== Raspberry Pi ===
== Raspberry Pi ==


:''See the main page [[Raspberry Pi]].''
:''See the main page [[Raspberry Pi]].''
=== MacOS ===
Precompiled GRASS 6 and GRASS 7 packages for macOS can be found [http://grass.osgeo.org/download/software/mac-osx/ here]. These are distributed as zipped *.dmg packages. Opening the dmg prompts the user to simply drag and drop the app into the Applications folder. In fact, they '''must''' be installed into the Applications folder and may not run properly in other locations.
A brief introduction to how to install via [https://www.macports.org MacPorts]: [[Compiling on macOS using MacPorts]].


[[Category:Documentation]]
[[Category:Documentation]]
[[Category:Installation]]
[[Category:Installation]]

Revision as of 13:31, 15 December 2020

General

Note: For compilation of GRASS GIS source code, see Compile and Install

This page explains the installation of GRASS binaries.

GRASS GIS requires a workstation running either some flavor of UNIX conforming to POSIX standards like Linux, Mac OS X, Solaris, IRIX, or BSD or MS-Windows. It is also possible to run GRASS in MS Windows by using UNIX translation software such as Cygwin or natively with MingGW. Ideally, you should have at least 500 Mb for data and 512 Mb RAM. The source code package needs around 270 MB uncompressed. The resulting binaries may need between 20 MB and 180 MB depending on your platform. During a full compilation you may need temporarily up to 150MB including the source code.

The Software Download Section of the main GRASS web site contains the latest binaries and source code for all supported platforms. That site also has general directions for installing GRASS manually. However, installation is slightly different on each operating system. Here you can find user-contributed pointers for installing GRASS on specific platforms. In particular, many operating systems have package management utilities that can greatly simplify GRASS installation.

MS Windows

The official download page GRASS GIS for MS-Windows

winGRASS standalone installer

OSGeo4W installer

  • Install using OSGeo4W installer which installs all dependencies as well (PROJ, GDAL, GEOS, etc.)

QGIS with winGRASS installer

  • QGIS including native winGRASS packages are provided here.


GNU/Linux

The official page GRASS GIS Download for GNU/Linux

Debian

A binary version of GRASS is available from the apt repository. As root type:

 apt-get install grass grass-doc

This is the easiest way to install GRASS on Debian. If you choose to install a binary version manually from the main web site, be sure to follow the instructions for making symlinks found as a note to the [7.x stable weekly snapshot] release.

DebianGIS

There is also the wonderful DebianGIS project which has a more recent GRASS version with its related packages. Read here for more details

Compiling GRASS from source

Installation on Fedora

Fedoraproject provides RPM-packages for stable releases prepared to install on Fedora systems:

 sudo dnf install grass grass-gui

Mageia

  • Mageia provides PROJ/GDAL/GRASS RPMs:
 urpmi grass

openSUSE

  • openSUSE provides GRASS and related RPM-packages:
sudo zypper refresh
sudo zypper install grass7

Alternatively, one can use the One-Click installer: https://software.opensuse.org/package/grass

Red Hat Enterprise Linux (RHEL, CentOS and EPEL)

  • Fedora offers GRASS and related binaries for CentOS and EPEL
 dnf install grass

Ubuntu

GRASS Binaries are available from apt/synaptic. From a terminal type:

 sudo apt-get install grass grass-doc

or alternatively, search for and install these packages from Synaptic. This is the easy way to get GRASS on your system. Even if you choose to install binaries from another source, you may want to install this version just so that all (most) dependencies are installed as painlessly as possible.

To get the latest version of GRASS on Ubuntu, compile the code from source. See the Compile and Install section for a shell script that makes this easy.

MacOS

Precompiled GRASS GIS 7 packages for macOS can be found here. These are distributed as zipped *.dmg packages. Opening the dmg prompts the user to simply drag and drop the app into the Applications folder. In fact, they must be installed into the Applications folder and may not run properly in other locations.

A brief introduction to how to install via MacPorts: Compiling on macOS using MacPorts.

Raspberry Pi

See the main page Raspberry Pi.