wiki:programmersguide/debianpackage

Version 11 (modified by jano.simas, 9 years ago) (diff)

--

Generating and installing TerraMA2 Debian package

Generating a package

To generate the Debian package foolow the instructions to compile the TerraMA2.

Once everything is installed go to the folder:

./packages/debian-package

and run the script deb-terrama2.sh

You'll find the Debian package in the folder build-package at the same path level of your codebase folder.

Installing the Debian package

The Debian package has 3 dependencies, TerraLib, NodeJs and Postgres/PostGIS. To install the TerraLib got to this page: ToDo?.

NodeJs can be installed with the commands:

  curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
  sudo apt-get install -y nodejs

You can have the version of your preference of Postgresql-9 and PostGIS-2, the versions in the Ubuntu 14.04 (trusty) repository can be installed with the command:

Ubuntu 14.04

sudo apt-get install postgresql-9.3-postgis-2.1

Ubuntu 16.04

sudo apt-get install postgresql-9.5-postgis-2.2

and finally install the TerraMA2 package with the commands:

Ubuntu 14.04

sudo dpkg -i TerraMA2-4.0.0-beta2-linux-x64-Ubuntu-14.04.deb
sudo apt-get install -f -y

Ubuntu 16.04

sudo dpkg -i TerraMA2-4.0.0-beta2-linux-x64-Ubuntu-16.04.deb
sudo apt-get install -f -y

Configuring TerraMA2

Go to the page Configuring TerraMA2