Notes on Download, Installation and building pgRouting
More information can be found in: https://wiki.postgresql.org/wiki/Apt
pgRouting on Ubuntu can be installed using packages from a PostgreSQL repository:
Using a terminal window:
The distributions are called codename-pgdg. The codename can be obtained with:
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:
Production builds are part of the Spatial Extensions/PostGIS Bundle available via Application StackBuilder
Can also get PostGIS Bundle from http://download.osgeo.org/postgis/windows/
Installing from binaries
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.
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
pgRouting can be installed via ports:
cd /usr/ports/databases/pgRouting make install clean
pkg install pgrouting
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.