wiki:programmersguide/debianpackage

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

--

Generating and installing TerraMA2 Debian package

Generating a package

To generate the Debian package from a fresh git clone you'll need:

  • cmake
  • build-essential
  • libcurl3-dev
  • libpython2.7-dev
  • libquazip0-dev
  • libproj-dev
  • libgeos++-dev
  • libxerces-c-dev

All can be installed with the command:

Ubuntu 14.04

sudo apt-get install cmake build-essential libcurl3-dev libpython2.7-dev libquazip0-dev libproj-dev libgeos++-dev libxerces-c-dev

Ubuntu 16.04

sudo apt-get install cmake build-essential libcurl3-dev libpython2.7-dev libquazip-dev libproj-dev libgeos++-dev libxerces-c-dev

We also need the vmime library, as the ubuntu version is outdated we should use the Terrama2 or git version. To install use:

sudo dpkg -i terrama2-vmime_1.0.0_amd64.deb
sudo apt-get install -f -y

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.

Developer's environment

To fully compile the Terrama2 you may also need the GMock library.

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