This page describes how to install prebuilt packages (this is normally recommended for everybody on the supported distributions). If you want to build your own packages, read on here.
Add these entries to /etc/apt/sources.list:
Debian 7 Wheezy:
deb http://moblock-deb.sourceforge.net/debian wheezy main
deb-src http://moblock-deb.sourceforge.net/debian wheezy main
Debian 8 Jessie:
deb http://moblock-deb.sourceforge.net/debian jessie main
deb-src http://moblock-deb.sourceforge.net/debian jessie main
Debian Stretch (testing):
deb http://moblock-deb.sourceforge.net/debian stretch main
deb-src http://moblock-deb.sourceforge.net/debian stretch main
Debian sid (unstable):
deb http://moblock-deb.sourceforge.net/debian sid main
deb-src http://moblock-deb.sourceforge.net/debian sid main
Ubuntu:
sudo add-apt-repository ppa:jre-phoenix/ppa
Debian:
Packages at moblock-deb.sourceforge.net are signed with my gpg key. To verify the integrity of the packages you have to add my gpg key to the apt keyring. (Otherwise your package manager will warn you about UNTRUSTED sources. By adding the gpg key, you tell your package manager that you trust me.) My old gpg keys 9072870B and 58712F29 expired, use the new one C0145138 instead:
gpg --keyserver keyserver.ubuntu.com --recv-keys C0145138
gpg --export --armor C0145138 | sudo apt-key add -
This step can be omitted on Ubuntu since you used add-apt-repository.
Run this command (on command line) to update the list of available packages:
sudo apt-get update
Either from within your package manager or from the command line:
sudo apt-get install pgld pglcmd pglgui