How to build pgRouting from source on Ubuntu 13.10

pgRouting pgRouting extends the PostGIS/PostgreSQL geospatial database to provide geospatial routing and other network analysis functionality.

To begin download and install the dependencies dev libraries

apt-get install libcgal-dev libboost-thread-dev libboost-system-dev libboost1.53-dev libboost1.53-tools-dev libboost-dev  

Clone repro from github

git clone git://github.com/pgRouting/pgrouting.git  
cd pgrouting  
mkdir build  
cd build  
cmake  ..  
make  
sudo make install  

Make sure you get the following output

-- Install configuration: ""
-- Installing: /usr/lib/postgresql/9.1/lib/librouting_bd.so
-- Installing: /usr/lib/postgresql/9.1/lib/librouting.so
-- Installing: /usr/share/postgresql/9.1/extension/pgrouting--2.0.0.sql
-- Installing: /usr/share/postgresql/9.1/extension/pgrouting.control
-- Installing: /usr/share/postgresql/9.1/extension/pgrouting_legacy.sql
-- Installing: /usr/share/postgresql/9.1/contrib/pgrouting-2.0/pgrouting.sql
-- Installing: /usr/share/postgresql/9.1/contrib/pgrouting-2.0/pgrouting.control
-- Installing: /usr/share/postgresql/9.1/contrib/pgrouting-2.0/pgrouting_legacy.sql
-- Installing: /usr/share/postgresql/9.1/extension/pgrouting_dd_legacy.sql
-- Installing: /usr/share/postgresql/9.1/contrib/pgrouting-2.0/pgrouting_dd_legacy.sql
-- Installing: /usr/lib/postgresql/9.1/lib/librouting_tsp.so
-- Installing: /usr/lib/postgresql/9.1/lib/librouting_ksp.so
-- Installing: /usr/lib/postgresql/9.1/lib/librouting_dd.so

For more detailed please refer to pgRouting wesite.

Good Luck!

Hassan El-Masri

Network Consultant Engineer

comments powered by Disqus