Skip to content

Notes on Download, Installation and building pgRouting

mangecoeur edited this page Jan 30, 2020 · 26 revisions

Linux

More information can be found in: https://wiki.postgresql.org/wiki/Apt

pgRouting on Ubuntu can be installed using packages in the main archive (Ubuntu 18.04). Using a terminal window:

sudo apt install postgres-10-pgrouting

pgRouting on Ubuntu can also be installed using packages from a PostgreSQL repository, which gives access to newer versions.

Using a terminal window:

The distributions are called codename-pgdg. The codename can be obtained with:

$(lsb_release -cs)

Create /etc/apt/sources.list.d/pgdg.list.

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
  • Import the repository key, update the package lists

sudo apt install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update
  • Install pgrouting based on your postgres Installation: for this example is 9.3
sudo apt install postgresql-9.3-pgrouting

This will also install all required packages such as PostgreSQL and PostGIS if not installed yet.

  • To be up-to-date with changes and improvements
sudo apt-get update & sudo apt-get upgrade

Winnie Bot Builds:

http://postgis.net/windows_downloads/

Production Builds:

Experimental binaries are available via PostGIS windows build bot - http://postgis.net/windows_downloads Production builds are available via EDB Stackbuilder - PostGIS bundle and get installed when you install PostGIS.

  • Issues

For PostgreSQL 64-bit VC++ builds, there is an issue with trsp giving the wrong answer. This issue doesn't seem to exist with the 32-bit builds. Refer to https://github.com/pgRouting/pgrouting/issues/339 for details

  • Building from source

To get the dependencies, you can use the following script: makepgRoutingDependencies.sh

RedHat Fedora Centos

Use the following link to see the pgRouting version available on Fedora: https://koji.fedoraproject.org/koji/packageinfo?packageID=11212

FreeBSD

pgRouting can be installed via ports:

cd /usr/ports/databases/pgRouting
make install clean

or package:

pkg install pgrouting

OS X

Homebrew

brew install pgrouting

The installation command in is pretty much all one needs to do on macOS if homebrew is installed. The requirements can be installed via brew as well and are configured here: https://github.com/Homebrew/homebrew-core/blob/master/Formula/pgrouting.rb. Specific versions for pgrouting can't be chosen at the moment. The version defined in the formulas file will be installed. If specific versions are need to be, there is https://github.com/Homebrew/homebrew-versions.

Clone this wiki locally