build PgModeler from source

pgmodeler_logo

PGModeler (http://www.pgmodeler.com.br) is a nice tool to design your (PostgreSQL) database. It supports import from and export to a databases. Ubuntu 15.10 comes with a quite recent version but e.g. Debian does not provide it in the repository. In this post I explain howto build the application on Linux (tested on Debian 8) from source.

Installing needed libraries

To be able compile pgmodeler from source, the following libraries need to be installed:

You can also install the same libraries with the following command in one line:

Both commands will install a bunch of addtional libraries they depend on.

Getting the source

Once the system is prepared, you need to download the source code. You can either download a prepackaged zip archive from https://github.com/pgmodeler/pgmodeler/releases or download the source from the repository hosted on https://github.com/pgmodeler/pgmodeler.git.

To get the files from github, you needed to execute the following commands:

Build the application

Once everything is prepared, you can compile and install pgmodeler using the following commands

The binary will be available in /usr/local/bin/

Tested with

The above build and install guide has been tested with v0.8.1 and v0.8.2-beta and v0.8.2

Update 2016-07-09 / v0.8.2

For v0.8.2 an addtional library needs to installed: