1.x/MakeDebPackage

Making debian package

If you need only shortest path functionality, you can make pgRouting-core Debian package.

1. Install required packages

sudo apt-get install build-essential subversion cmake debhelper fakeroot
sudo apt-get install libboost-graph-dev
sudo apt-get install postgresql-8.2-postgis postgresql-server-dev-8.2 

2. Making package

Currently debian files are included in only trunk.

svn checkout http://pgrouting.postlbs.org/svn/pgrouting/trunk pgrouting

cd pgrouting/
dpkg-buildpackage -b -rfakeroot -uc -us

-uc and -us option means to unsign package, it is ok if you need not distribute package.

3. Create routing database

createdb -U postgres routing
createlang -U postgres plpgsql routing

# Add PostGIS functions
psql -U postgres -f /usr/share/postgresql-8.2-postgis/lwpostgis.sql routing
psql -U postgres -f /usr/share/postgresql-8.2-postgis/spatial_ref_sys.sql routing

# Add pgRouting functions
psql -U postgres -f /usr/share/postlbs/routing_core.sql routing
psql -U postgres -f /usr/share/postlbs/routing_core_wrappers.sql routing